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
linking curl fails with ../lib/.libs/libcurl.so: undefined reference to Curl_base64_encode #5937
Comments
This would be easier for us if you could tell us the exact command line you used with configure so that we can try to reproduce it! |
Also, you didn't mention which curl version or what platform. |
Right, I forgot about the version. I had the problem originally with
Note that I'm cross-compiling here, so you'll still need to modify this. I looked at master but I didn't see any relevant changes, so I didn't test that. |
The oauth2 support is used with SMTP and it uses base64 functions. Reported-by: Michael Olbrich Fixes #5937
The fix in #5938 made the build succeed for me. |
Still fails with:
or
This is mostly the same as above but with So I guess something like this should be added as well:
|
It's not still when you changed the condition. You found another glitch it seems. Rare build combinations... |
I tried to compile curl with
--disable-http-auth --disable-ldap --disable-doh
and all ssl and ssh related options disabled. Basically all options to ensure that the#if ...
at the beginning oflib/base64.c
is false.No building fails with
../lib/.libs/libcurl.so: undefined reference to Curl_base64_encode
becauseCurl_base64_encode
is not built but it is still used inlib/vauth/oauth2.c
andlib/vauth/cleartext.c
.I'm not quite sure what the correct solution is, but I think
Curl_base64_encode
is always used inlib/vauth/cleartext.c
so it should probably build unconditionally. But I'm not sure if I understand the build-system correctly.The text was updated successfully, but these errors were encountered: