https://bugs.openldap.org/show_bug.cgi?id=9255
Bug ID: 9255 Summary: make fails in 2.4.50 due to missing Debug1/Debug3 symbols Product: OpenLDAP Version: 2.4.50 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: --- Component: libraries Assignee: bugs@openldap.org Reporter: marcosbd@vmware.com Target Milestone: ---
We're finding an issue building OpenLDAP due to missing Debug1/Debug3 symbols:
Entering subdirectory libldap make[2]: Entering directory '/bitnami/blacksmith-sandox/openldap-2.4.50/libraries/libldap' /bin/sh ../../libtool --mode=link gcc -Wl,-z,relro,-z,now,--as-needed -DLDAP_CONNECTIONLESS -DLDAP_USE_NON_BLOCKING_TLS -Wl,-rpath=/opt/bitnami/openldap/lib -L/opt/bitnami/openldap/lib -o apitest apitest.o libldap.la ../../libraries/liblber/liblber.la ../../libraries/liblutil/liblutil.a -lsasl2 -lssl -lcrypto -lcrypt -lresolv gcc -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed -DLDAP_CONNECTIONLESS -DLDAP_USE_NON_BLOCKING_TLS -Wl,-rpath=/opt/bitnami/openldap/lib -o .libs/apitest apitest.o -L/opt/bitnami/openldap/lib ./.libs/libldap.so /bitnami/blacksmith-sandox/openldap-2.4.50/libraries/liblber/.libs/liblber.so ../../libraries/liblber/.libs/liblber.so ../../libraries/liblutil/liblutil.a -lsasl2 -lssl -lcrypto -lcrypt -lresolv -Wl,--rpath -Wl,/opt/bitnami/openldap/lib /usr/bin/ld: ./.libs/libldap.so: undefined reference to `Debug1' /usr/bin/ld: ./.libs/libldap.so: undefined reference to `Debug3' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:309: apitest] Error 1 make[2]: Leaving directory '/bitnami/blacksmith-sandox/openldap-2.4.50/libraries/libldap' make[1]: *** [Makefile:296: all-common] Error 1 make[1]: Leaving directory '/bitnami/blacksmith-sandox/openldap-2.4.50/libraries' make: *** [Makefile:312: all-common] Error 1
We see that in master there are a lot of references to those symbols, but in the OPENLDAP_REL_ENG_2_4_50 tag of the repo it only appears in two places.
It looks like this issue was caused by commit 7cf7aa3141 in ITS#8650.