Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946975 - net-nds/openldap-2.6.8 fails test - [gcc-15] emake failed
Summary: net-nds/openldap-2.6.8 fails test - [gcc-15] emake failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-12-26 22:55 UTC by Toralf Förster
Modified: 2024-12-28 18:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.77 KB, text/plain)
2024-12-26 22:55 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,59.35 KB, application/x-xz)
2024-12-26 22:55 UTC, Toralf Förster
Details
environment (environment,153.74 KB, text/plain)
2024-12-26 22:55 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.21 KB, application/x-xz)
2024-12-26 22:55 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,32.48 KB, application/x-xz)
2024-12-26 22:55 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,655.01 KB, application/x-xz)
2024-12-26 22:55 UTC, Toralf Förster
Details
net-nds:openldap-2.6.8:20241224-130516.log.xz (net-nds:openldap-2.6.8:20241224-130516.log.xz,25.14 KB, application/x-xz)
2024-12-26 22:55 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,63.14 KB, application/x-xz)
2024-12-26 22:55 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-12-26 22:55:17 UTC
>>>>> 00:24:14 Finished test064-constraint for mdb after 4 seconds.
>>>>> 00:24:14 Starting test065-proxyauthz for mdb...
>>>>> 00:24:17 Failed   test065-proxyauthz for mdb after 3 seconds
make[1]: *** [Makefile:320: mdb-yes] Error 1
make: *** [Makefile:300: pmdb] Error 2
 * ERROR: net-nds/openldap-2.6.8::gentoo failed (test phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-nds/openldap-2.6.8::gentoo'`,

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_systemd_test-20241217-170002

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 19.1.6
llvm-config: 19.1.6
Python 3.12.8
go version go1.23.4 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.0
  [2]   rust-bin-1.83.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.25_p9 [openjdk-bin-11]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit f110ac904a39ee43e44d4e5a33fa3476965a307b
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Dec 24 12:03:28 2024 +0000

    2024-12-24 12:03:27 UTC

emerge -qpvO =net-nds/openldap-2.6.8
[ebuild  N    ] net-nds/openldap-2.6.8  USE="cleartext crypt experimental kinit odbc overlays sasl sha2 smbkrb5passwd ssl syslog systemd test -argon2 -autoca -cxx -debug -gnutls -iodbc -kerberos -minimal -pbkdf2 -perl -samba (-selinux) -static-libs -tcpd" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2024-12-26 22:55:18 UTC
Created attachment 915045 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-12-26 22:55:20 UTC
Created attachment 915046 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-12-26 22:55:21 UTC
Created attachment 915047 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-12-26 22:55:22 UTC
Created attachment 915048 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-12-26 22:55:23 UTC
Created attachment 915049 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-12-26 22:55:25 UTC
Created attachment 915050 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-12-26 22:55:26 UTC
Created attachment 915051 [details]
net-nds:openldap-2.6.8:20241224-130516.log.xz
Comment 8 Toralf Förster gentoo-dev 2024-12-26 22:55:27 UTC
Created attachment 915052 [details]
qlist-info.txt.xz
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-27 06:06:37 UTC
toralf, is this reproducible, or is it flaky? (just fails on some tries)?
Comment 10 Toralf Förster gentoo-dev 2024-12-27 16:58:19 UTC
(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.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-27 17:06:33 UTC
What about if you use GCC 14? 

CC=gcc-14 CXX=g++-14 emerge ... (don't use sudo)
Comment 12 Zhixu Liu 2024-12-28 10:42:34 UTC
(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 ...
Comment 13 Larry the Git Cow gentoo-dev 2024-12-28 18:03:10 UTC
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(-)