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)
What are the enviroment variables during the build and what configure options are you using?
(In reply to Stefan Metzmacher from comment #1) Any chance to provide a reproducer?
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
Created attachment 18391 [details] build log showing failure
Comment on attachment 18391 [details] build log showing failure Does removing --disable-rpath --disable-rpath-install --disable-rpath-private-install changes the situation?
(In reply to Stefan Metzmacher from comment #5) Ok, --without-winbind is what triggers it...
This bug was referenced in samba master: 5b31b723c06a0b41f9d47e47ce79818e07d3b831 c0d0767a3ab2c0cd5c4f2fa5cd77f3b678794d63
Created attachment 18397 [details] Patches for v4-21-test
Tested 4.21.0rc1 with the attached patch and the build is now successful
This bug was referenced in samba v4-21-test: ba14164f7293145c061381b4b1caba53475be88e b375043d62cef4ade95a4c9d259a776772aa32f2
(In reply to Rudi Heitbaum from comment #9) Thanks for testing!
This bug was referenced in samba v4-21-stable (Release samba-4.21.0rc2): ba14164f7293145c061381b4b1caba53475be88e b375043d62cef4ade95a4c9d259a776772aa32f2