Source: samba
Version: 2:4.11.5+dfsg-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
User: [email protected]
Usertags: origin-kali

Trying to rebuild samba in sid fails with:

[2422/4221] Linking bin/default/source4/kdc/libdb-glue.so
08:56:24 runner ['/usr/bin/gcc', 
'-Wl,--version-script=/<<PKGBUILDDIR>>/bin/default/source4/kdc/db-glue.vscript',
 '-shared', '-Wl,-h,libdb-glue.so.0', 
'source4/librpc/gen_ndr/ndr_irpc_c.c.18.o', 'source4/kdc/db-glue.c.18.o', 
'source4/kdc/sdb.c.10.o', 
'-o/<<PKGBUILDDIR>>/bin/default/source4/kdc/libdb-glue.so', '-Wl,-Bstatic', 
'-Wl,-Bdynamic', '-L/<<PKGBUILDDIR>>/bin/default/nsswitch', 
'-L/<<PKGBUILDDIR>>/bin/default/libcli/registry', 
'-L/<<PKGBUILDDIR>>/bin/default/source4/libcli/ldap', 
'-L/<<PKGBUILDDIR>>/bin/default/nsswitch/libwbclient', 
'-L/<<PKGBUILDDIR>>/bin/default/libcli/dns', 
'-L/<<PKGBUILDDIR>>/bin/default/libds/common', 
'-L/<<PKGBUILDDIR>>/bin/default/lib/socket', 
'-L/<<PKGBUILDDIR>>/bin/default/libcli/cldap', 
'-L/<<PKGBUILDDIR>>/bin/default/libcli/nbt', 
'-L/<<PKGBUILDDIR>>/bin/default/source4/lib/socket', 
'-L/<<PKGBUILDDIR>>/bin/default/auth/gensec', 
'-L/<<PKGBUILDDIR>>/bin/default/lib/addns', 
'-L/<<PKGBUILDDIR>>/bin/default/libcli/smb', 
'-L/<<PKGBUILDDIR>>/bin/default/source4/lib/http', 
'-L/<<PKGBUILDDIR>>/bin/default/source4/libcli', 
'-L/<<PKGBUILDDIR>>/bin/default/lib/dbwrap', 
'-L/<<PKGBUILDDIR>>/bin/default/source4/lib/events', 
'-L/<<PKGBUILDDIR>>/bin/default/third_party/aesni-intel', 
'-L/<<PKGBUILDDIR>>/bin/default/lib/tdb_wrap', 
'-L/<<PKGBUILDDIR>>/bin/default/source4/auth/kerberos', 
'-L/<<PKGBUILDDIR>>/bin/default/lib/ldb-samba', 
'-L/<<PKGBUILDDIR>>/bin/default/libcli/auth', 
'-L/<<PKGBUILDDIR>>/bin/default/libcli/ldap', 
'-L/<<PKGBUILDDIR>>/bin/default/lib/krb5_wrap', 
'-L/<<PKGBUILDDIR>>/bin/default/libcli/util', 
'-L/<<PKGBUILDDIR>>/bin/default/source3', 
'-L/<<PKGBUILDDIR>>/bin/default/source4/cluster', 
'-L/<<PKGBUILDDIR>>/bin/default/lib', 
'-L/<<PKGBUILDDIR>>/bin/default/lib/util', 
'-L/<<PKGBUILDDIR>>/bin/default/librpc', 
'-L/<<PKGBUILDDIR>>/bin/default/lib/param', 
'-L/<<PKGBUILDDIR>>/bin/default/source4/librpc', 
'-L/<<PKGBUILDDIR>>/bin/default/auth/credentials', 
'-L/<<PKGBUILDDIR>>/bin/default/source4/dsdb', 
'-L/<<PKGBUILDDIR>>/bin/default/source4/heimdal_build', 
'-L/<<PKGBUILDDIR>>/bin/default/lib/replace', 
'-L/<<PKGBUILDDIR>>/bin/default/source4/lib/messaging', 
'-L/<<PKGBUILDDIR>>/bin/default/auth', 
'-L/<<PKGBUILDDIR>>/bin/default/libcli/security', '-L/usr/local/lib', 
'-L/usr/local/lib', '-lsamba-security', '-lcommon-auth', '-lMESSAGING', 
'-lreplace', '-lcom_err-samba4', '-lsamdb', '-lsamba-credentials', 
'-lndr-samba4', '-lkrb5-samba4', '-ldcerpc', '-lsamba-hostconfig', '-lndr', 
'-lMESSAGING-SEND', '-lserver-id-db', '-lsamba-sockets', '-lsamba-util', 
'-lndr-samba', '-lsamba-debug', '-ltalloc-report', '-lcluster', 
'-lmessages-util', '-lroken-samba4', '-lsamba-errors', '-lkrb5samba', 
'-lcli-ldap-common', '-lsamdb-common', '-lcliauth', '-lldbsamba', '-lauthkrb5', 
'-ltdb-wrap', '-lutil-tdb', '-laesni-intel', '-levents', '-lgssapi-samba4', 
'-ldbwrap', '-lndr-standard', '-lndr-krb5pac', '-lndr-nbt', '-lasn1-samba4', 
'-lheimbase-samba4', '-lwind-samba4', '-lhcrypto-samba4', '-lhx509-samba4', 
'-lsmbclient-raw', '-lhttp', '-lcli-smb-common', '-laddns', '-lgensec', 
'-ltevent-util', '-ldcerpc-samba', '-lnetif', '-lcli-nbt', '-ldcerpc-binding', 
'-lcli-cldap', '-lserver-role', '-lmessages-dgm', '-linterfaces', 
'-lsocket-blocking', '-liov-buf', '-lgenrand', '-lutil-setid', '-ltime-basic', 
'-lsys-rw', '-lasn1util', '-lflag-mapping', '-lCHARSET3', '-lsamba3-util', 
'-lsmbconf', '-lsmb-transport', '-lclidns', '-lsamba-modules', '-lwbclient', 
'-lcli-ldap', '-lmsghdr', '-lutil-reg', '-lsmbd-shim', '-lwinbind-client', 
'-lcap', '-lcups', '-lldap', '-llber', '-lnsl', '-lutil', '-lresolv', '-lz', 
'-lsystemd', '-lgnutls', '-lpthread', '-lldb', '-ltalloc', '-ljansson', 
'-ltalloc', '-lcrypt', '-lbsd', '-ltdb', '-ltevent', '-ltalloc', '-ldl', 
'-Wl,-z,relro', '-Wl,-z,now', '-Wl,--as-needed', '-Wl,-z,relro,-z,now', 
'-Wl,-no-undefined', '-Wl,--export-dynamic', '-Wl,--as-needed']
In file included from ../../source4/heimdal_build/krb5-types.h:8,
                 from ../../source4/heimdal/lib/krb5/krb5.h:42,
                 from ../../lib/replace/system/kerberos.h:33,
                 from ../../auth/credentials/pycredentials.c:35:
../../lib/replace/system/network.h:91:10: fatal error: stropts.h: No such file 
or directory
   91 | #include <stropts.h>
      |          ^~~~~~~~~~~
compilation terminated.


What is weird is that this include is protected by #ifdef:

#ifdef HAVE_STROPTS_H
#include <stropts.h>
#endif

And that the configure log shows its absence:
Checking for header stropts.h                            : 08:49:46 runner 
['/usr/bin/gcc', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-g', '-O2', 
'-fdebug-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', 
'-Wformat', '-Werror=format-security', '-MMD', '-D_GNU_SOURCE=1', 
'-D_XOPEN_SOURCE_EXTENDED=1', '../../test.c', '-c', 
'-o/<<PKGBUILDDIR>>/bin/.conf_check_31eea1eb63d757d192f105191215e3cc/testbuild/default/test.c.1.o',
 '-Wdate-time', '-D_FORTIFY_SOURCE=2']
no 


-- System Information:
Debian Release: bullseye/sid
  APT prefers oldoldstable
  APT policy: (500, 'oldoldstable'), (500, 'unstable'), (500, 'testing'), (500, 
'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-6-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to