Bug #2430
closedCompile 1.4 against openssl built with libz
Description
The configure script in 1.4.31 is unable to build BIO_f_base64 test if your libopenssl is linked with libz. The problem is that all openssl-related tests are missing '-lz' flag.
A possible workaround is to patch configure script (the patch included), but I suppose a generic solution could be proposed.
Files
Updated by stbuehler over 12 years ago
hm, strange.
usually you only need to link the libraries you are using directly (assuming dynamic linking), it shouldn't matter what ssl is using internally.
enforcing -lz doesn't sound like a good idea, as lighttpd should build without libz too - so you need some detection.
also you should modify configure.ac and run ./autogen.sh, don't modify "configure" directly :)
Updated by kir over 12 years ago
Sure, that's why I said that it is not a generic solution.
Regarding autogen - yes, it should definitely be a proper way to do it.
P.S. Why do we need this BIO_f_base64 test at all if (as I can see) lighttpd is never calling BIO_f_base64?
Updated by stbuehler over 12 years ago
- Status changed from New to Invalid
BIO_f_base64 is just a function that the crypto lib is exporting (we probably need other functions in it).
I think this is a bug in your crypo library (build) - if it uses libz but wasn't linked against it it isn't our fault.
Also available in: Atom