Summary: | net-nds/openldap-2.6.8 fails test - [gcc-15] emake failed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo LDAP project <ldap-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | toralf, zhixu.liu |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
emerge-history.txt.xz environment etc.clang.tar.xz etc.portage.tar.xz logs.tar.xz net-nds:openldap-2.6.8:20241224-130516.log.xz qlist-info.txt.xz |
Description
Toralf Förster
![]() Created attachment 915045 [details]
emerge-info.txt
Created attachment 915046 [details]
emerge-history.txt.xz
Created attachment 915047 [details]
environment
Created attachment 915048 [details]
etc.clang.tar.xz
Created attachment 915049 [details]
etc.portage.tar.xz
Created attachment 915050 [details]
logs.tar.xz
Created attachment 915051 [details]
net-nds:openldap-2.6.8:20241224-130516.log.xz
Created attachment 915052 [details]
qlist-info.txt.xz
toralf, is this reproducible, or is it flaky? (just fails on some tries)? (In reply to Sam James from comment #9) > toralf, is this reproducible, or is it flaky? (just fails on some tries)? I retried it 7 times at the same image - failed every time. Then I tried with -j1, failed too. What about if you use GCC 14? CC=gcc-14 CXX=g++-14 emerge ... (don't use sudo) (In reply to Sam James from comment #11) > What about if you use GCC 14? > > CC=gcc-14 CXX=g++-14 emerge ... (don't use sudo) reproducied w/ gcc 14, to be inverstigating ... The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74f7ab1af81e3ce05117cd8b801d68c2bac10357 commit 74f7ab1af81e3ce05117cd8b801d68c2bac10357 Author: Z. Liu <zhixu.liu@gmail.com> AuthorDate: 2024-12-26 08:21:25 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-12-28 18:02:24 +0000 net-nds/openldap: fix build issue with llvm profile and a test failure 1. building with llvm profile causes many error messagees like the one bellow: ld.lld: error: version script assignment of OPENLDAP_2.200 to symbol ... failed: symbol not defined This is caused by lld enable option "--no-undefined-version" by default (see 'https://reviews.llvm.org/D135402'). OpenLDAP define all dynamic symbols in libraries/{liblber/lber,libldap/ldap}.map, but some symbols are only available when specific configuration option are enabled. We've identified the options like HAVE_TLS, HAVE_CYRUS_SASL and LDAP_CONNECTIONLESS will cause build failures. There are two workarounds: 1. Remove the symbol from .map file if the corresponding configuration option is not set. 2. Add the linker option "-Wl,--undefined-version" to restore the default behavior that undefined symbols in shared libraries are allowed. Option 1 requires identifying all symbols controlled by different options, and using sed to remove them based on the configuration. Option 2 is much simpler and has no known side effects. We choose option 2. 2. In patch 'openldap-2.6.1-fix-missing-mapping.patch', 'ber_sockbuf_io_udp' was added to lber.map, but it's not completed. This symbol is part an unsupported feature (cldap or ldap over udp) and is only built when the unsupported LDAP_CONNECTIONLESS flag is defined. All the user of 'ber_sockbuf_io_udp' are enclosed by #ifdef guards, it make no sense to not enclose it by #ifdef too. Another patch for ldap.map form Fedora is included too. Patch is updated to v2. 3. USE="debug" is required for USE="test", otherwise "test065-proxyauthz" will failed: must compile with LDAP_DEBUG for debugging unrecognized log level "pcache" (deferred) Upstream Issue: https://bugs.openldap.org/show_bug.cgi?id=9739 FreeBSD Bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277585 Closes: https://bugs.gentoo.org/923334 Closes: https://bugs.gentoo.org/938553 Closes: https://bugs.gentoo.org/946816 Closes: https://bugs.gentoo.org/946975 Signed-off-by: Z. Liu <zhixu.liu@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/39844 Signed-off-by: Sam James <sam@gentoo.org> .../openldap-2.6.1-fix-missing-mapping.v2.patch | 53 ++ net-nds/openldap/openldap-2.6.4-r4.ebuild | 870 ++++++++++++++++++++ net-nds/openldap/openldap-2.6.6-r2.ebuild | 2 +- net-nds/openldap/openldap-2.6.6-r3.ebuild | 877 ++++++++++++++++++++ net-nds/openldap/openldap-2.6.8-r1.ebuild | 898 +++++++++++++++++++++ 5 files changed, 2699 insertions(+), 1 deletion(-) |