Bug 15687 - undefined reference to winbind_lookup_name_ex
Summary: undefined reference to winbind_lookup_name_ex
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.21.0rc1
Hardware: All All
: P5 regression (vote)
Target Milestone: 4.21
Assignee: Jule Anger
QA Contact: Samba QA Contact
URL: https://gitlab.com/samba-team/samba/-...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-30 09:20 UTC by Rudi Heitbaum
Modified: 2024-08-13 17:03 UTC (History)
2 users (show)

See Also:


Attachments
build log showing failure (142.95 KB, text/plain)
2024-08-06 04:06 UTC, Rudi Heitbaum
no flags Details
Patches for v4-21-test (2.58 KB, text/plain)
2024-08-07 07:50 UTC, Stefan Metzmacher
vl: review+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rudi Heitbaum 2024-07-30 09:20:19 UTC
Error during build. If I comment out the 3 lines in lookup_sid.c - the compile completes.

source3/passdb/lookup_sid.c.28.o:lookup_sid.c:function lookup_name_internal:(.text+0x6d3): error: undefined reference to 'winbind_lookup_name_ex'
source3/passdb/lookup_sid.c.28.o:lookup_sid.c:function lookup_name_internal:(.text+0xa61): error: undefined reference to 'winbind_lookup_name_ex'
source3/passdb/lookup_sid.c.28.o:lookup_sid.c:function lookup_name_internal:(.text+0xaf8): error: undefined reference to 'winbind_lookup_name_ex'
collect2: error: ld returned 1 exit status

Waf: Leaving directory `/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/build/samba-4.21.0rc1/bin/default'
Build failed
 -> task in 'samba-passdb' failed with exit status 1 (run with -v to display more information)
Comment 1 Stefan Metzmacher 2024-07-30 15:00:52 UTC
What are the enviroment variables during the build and what configure options
are you using?
Comment 2 Stefan Metzmacher 2024-08-05 17:18:28 UTC
(In reply to Stefan Metzmacher from comment #1)

Any chance to provide a reproducer?
Comment 3 Rudi Heitbaum 2024-08-06 04:05:52 UTC
Hi Stefan - here is the configure line.

Also attached the log

PYTHON=/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/toolchain/bin/python3 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-lockdir=/var/lock-samba --with-logfilebase=/var/log --with-piddir=/run/samba --with-privatedir=/run/samba --with-modulesdir=/usr/lib --with-privatelibdir=/usr/lib --with-sockets-dir=/run/samba --with-configdir=/run/samba --with-libiconv=/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr --cross-compile --cross-answers=/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/build/samba-4.21.0rc1/cache.txt --hostcc=gcc --enable-fhs --without-dmapi --disable-glusterfs --disable-rpath --disable-rpath-install --disable-rpath-private-install --enable-avahi --disable-cups --disable-iprint --with-relro --with-sendfile-support --without-acl-support --without-ads --without-ad-dc --without-automount --without-cluster-support --without-fam --without-gettext --without-gpgme --without-iconv --without-ldap --without-libarchive --without-pam --without-pie --without-regedit --without-systemd --without-utmp --without-winbind --enable-auto-reconfigure --bundled-libraries='ALL,!asn1_compile,!compile_et,!zlib' --without-quotas --with-syslog --without-json --without-ldb-lmdb --nopyc --nopyo
Comment 4 Rudi Heitbaum 2024-08-06 04:06:23 UTC
Created attachment 18391 [details]
build log showing failure
Comment 5 Stefan Metzmacher 2024-08-06 13:24:12 UTC
Comment on attachment 18391 [details]
build log showing failure

Does removing --disable-rpath --disable-rpath-install --disable-rpath-private-install changes the situation?
Comment 6 Stefan Metzmacher 2024-08-06 15:19:31 UTC
(In reply to Stefan Metzmacher from comment #5)

Ok, --without-winbind is what triggers it...
Comment 7 Samba QA Contact 2024-08-07 07:39:05 UTC
This bug was referenced in samba master:

5b31b723c06a0b41f9d47e47ce79818e07d3b831
c0d0767a3ab2c0cd5c4f2fa5cd77f3b678794d63
Comment 8 Stefan Metzmacher 2024-08-07 07:50:22 UTC
Created attachment 18397 [details]
Patches for v4-21-test
Comment 9 Rudi Heitbaum 2024-08-07 10:29:21 UTC
Tested 4.21.0rc1 with the attached patch and the build is now successful
Comment 10 Samba QA Contact 2024-08-07 11:16:03 UTC
This bug was referenced in samba v4-21-test:

ba14164f7293145c061381b4b1caba53475be88e
b375043d62cef4ade95a4c9d259a776772aa32f2
Comment 11 Stefan Metzmacher 2024-08-07 11:56:08 UTC
(In reply to Rudi Heitbaum from comment #9)

Thanks for testing!
Comment 12 Samba QA Contact 2024-08-13 17:03:23 UTC
This bug was referenced in samba v4-21-stable (Release samba-4.21.0rc2):

ba14164f7293145c061381b4b1caba53475be88e
b375043d62cef4ade95a4c9d259a776772aa32f2