https://bugs.openldap.org/show_bug.cgi?id=10555
Issue ID: 10555 Summary: When configuring from static libcrypto.a and libssl.a, it errors: can't find openssl. To fix openssl static linking, just add -lpthread to the linker. Product: OpenLDAP Version: 2.6.13 Hardware: x86_64 OS: Linux Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: build Assignee: bugs@openldap.org Reporter: bee@mailsac.com Target Milestone: ---
I am a newbie. Took 2 days to talk with ChatGPT and Gemini to analyze, configure, and config.log files.
When configuring from static libcrypto.a and libssl.a, it errors: can't find openssl.
To fix openssl static linking, just add -lpthread to the linker.
./configure \ --prefix=$HOME \ --enable-static \ --disable-shared \ --disable-debug \ --disable-dynamic \ --disable-syslog \ --disable-local \ --disable-slapd \ --enable-ipv6 \ --with-tls=openssl \ --without-cyrus-sasl \ --without-systemd \ --without-fetch \ --without-threads \ --without-yielding-select \ --without-mp \ --without-odbc \ --without-argon2 \ LIBS="-lpthread" # add -lpthread to fix openssl static linking