Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure --enable-all forcibly disables oldnames #2744

Closed
bagder opened this issue Jan 16, 2020 · 2 comments
Closed

configure --enable-all forcibly disables oldnames #2744

bagder opened this issue Jan 16, 2020 · 2 comments
Assignees

Comments

@bagder
Copy link

bagder commented Jan 16, 2020

I build curl with wolfSSL every now and then. Today I updated wolfSSL from git master and tried this again and the curl build failed.

It failed because RNG doesn't exist in the wolfssl headers (anymore). Not sure when this change happened but I've built wolfSSL the same way many times over the years and used that lib to build curl with.

I run the wolfssl configure script like this:

./configure --prefix=[path] --enable-harden --enable-ssh --enable-all

RNG doesn't exist because the wolfssl configure summary says:

 * Old Names:                  no

Why does it say no? configure --help says --enable-oldnames are by default enabled.

The reason (@danielinux helped me debug), is that --enable-all executes line 1903:

enable_oldnames=no

... which magically turns off enable oldnames even if I explicitly add --enable-oldnames on the command line.

I had to edit configure.ac, remove that line and then run configure again to fix the build. Then curl builds fine again with the resulting header files and wolfssl build.

(I presume I should also rather fix the curl end and replace RNG with WC_RNG to avoid future issues like this?)

@bagder bagder changed the title --enable-all forcibly disables oldnames configure --enable-all forcibly disables oldnames Jan 16, 2020
@dgarske
Copy link
Contributor

dgarske commented Jan 16, 2020

Hi @bagder

The history here is we originally added --enable-distro for builds on Linux and I suspect this option was there for the Linux distros. Later we added the --enable-all and moved features into "all" to simply some testing. We may want to move the the disable old names option into disto, but we'll need to review the history to confirm.

For now I recommend using WC_RNG if possible.

Thanks,
David Garske, wolfSSL

@dgarske dgarske self-assigned this Jan 16, 2020
@bagder
Copy link
Author

bagder commented Jan 16, 2020

Roger that. No big deal at all for me. Will switch over.

bagder added a commit to curl/curl that referenced this issue Jan 16, 2020
The symbols without wc_ prefix are not provided.

Ref: wolfSSL/wolfssl#2744
bagder added a commit to curl/curl that referenced this issue Jan 16, 2020
The symbols without wc_ prefix are not always provided.

Ref: wolfSSL/wolfssl#2744

Closes #4827
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants