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
https://bugs.openldap.org/show_bug.cgi?id=10555
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Keywords|needs_review | Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Quanah Gibson-Mount quanah@openldap.org --- Hello,
It is already noted in the INSTALL file that ships with the software that you may need to set the LIBS variable according to the needs of your build environment.
2. Type:
% ./configure --help
to list available configuration options.
The configure script also looks for compiler/linker options on the command line and in the environment. These include:
Variable Description Example CC C compiler gcc CFLAGS C flags -O -g CPPFLAGS cpp flags -I/path/include -D__FOO__=42 LDFLAGS ld flags -L/usr/local/lib LIBS libraries -llib PATH command path /usr/local/bin:/usr/bin:/bin
See doc/install/configure for generic configure documentation.
https://bugs.openldap.org/show_bug.cgi?id=10555
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED