id summary reporter owner description type status priority milestone component version severity resolution keywords cc 1469 DCO tree on Ubuntu 20.04 does not build with OpenSSL 3.0.5 Gert Döring Antonio Quartulli "Having OpenSSL 1.1.1 in the standard system library path and OpenSSL 3.0.x in a custom path fails, because pkg-config for libnl injects {{{-L/usr/lib/x86_64-linux-gnu}}} in the link path, so {{{-lssl -lcrypto}}} finds the wrong library: {{{ ... cryptoapi.o -Wl,-rpath=/home/openssl-3.0.5/lib64 ../../src/compat/.libs/libcompat.a -L/usr/lib/x86_64-linux-gnu -lnsl -lresolv -llzo2 -L/usr/lib -llz4 -L/home/openssl-3.0.5/lib64 -lssl -lcrypto -ldl -lnl-genl-3 -lnl-3 }}} Arguably the bug is in Ubuntu's .pc file {{{ $ pkg-config --libs --print-errors ""libnl-genl-3.0 >= 3.4.0"" -L/usr/lib/x86_64-linux-gnu -lnl-genl-3 -lnl-3 }}} but I think our configure could be a bit smarter about command line placement - so if we place ""things that are not pkg-config"" in front (OPENSSL_LIBS, LZO_LIBS, ...) - assuming that those will be ""in that place, there is only this single library"" - we'd be more robust against .pc stupidity. We might want to file an ubuntu bug as well, but I think this is likely to hit us again - so if we can handle it, even better." Bug / Defect closed major release 2.6 Generic / unclassified OpenVPN git master branch (Community Ed) Not set (select this one, unless your'e a OpenVPN developer) fixed-external dco, building, ubuntu2004, libnl, pkg-config