Bug#955474: [Pkg-samba-maint] Bug#955474: FTBFS: fatal error: stropts.h: No such file or directory

2020-04-01 Thread Andrew Bartlett
On Wed, 2020-04-01 at 11:18 +0200, Raphaël Hertzog wrote:
> 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: de...@kali.org
> Usertags: origin-kali

This is a python bug, it should not be setting HAVE_STROPTS_H.

See bug 954582

-- 
Andrew Bartlett   https://samba.org/~abartlet/
Authentication Developer, Samba Team  https://samba.org
Samba Developer, Catalyst IT  
https://catalyst.net.nz/services/samba



Bug#955474: FTBFS: fatal error: stropts.h: No such file or directory

2020-04-01 Thread Raphael Hertzog
Control: retitle 954582 FTBFS: fatal error: stropts.h: No such file or directory
Control: forcemerge 954582 -1

I was mislead by the title of the other RC bug, it looks like both are
reporting the same underlying issue.

The proper solution seems to be to rebuild python 3.8 against glibc 2.30
and I just requested this in #955478.

Cheers,
-- 
  ⢀⣴⠾⠻⢶⣦⠀   Raphaël Hertzog 
  ⣾⠁⢠⠒⠀⣿⡁
  ⢿⡄⠘⠷⠚⠋The Debian Handbook: https://debian-handbook.info/get/
  ⠈⠳⣄   Debian Long Term Support: https://deb.li/LTS



Bug#955474: FTBFS: fatal error: stropts.h: No such file or directory

2020-04-01 Thread Raphaël Hertzog
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: de...@kali.org
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=/<>/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/<>/bin/default/source4/kdc/libdb-glue.so', '-Wl,-Bstatic', 
'-Wl,-Bdynamic', '-L/<>/bin/default/nsswitch', 
'-L/<>/bin/default/libcli/registry', 
'-L/<>/bin/default/source4/libcli/ldap', 
'-L/<>/bin/default/nsswitch/libwbclient', 
'-L/<>/bin/default/libcli/dns', 
'-L/<>/bin/default/libds/common', 
'-L/<>/bin/default/lib/socket', 
'-L/<>/bin/default/libcli/cldap', 
'-L/<>/bin/default/libcli/nbt', 
'-L/<>/bin/default/source4/lib/socket', 
'-L/<>/bin/default/auth/gensec', 
'-L/<>/bin/default/lib/addns', 
'-L/<>/bin/default/libcli/smb', 
'-L/<>/bin/default/source4/lib/http', 
'-L/<>/bin/default/source4/libcli', 
'-L/<>/bin/default/lib/dbwrap', 
'-L/<>/bin/default/source4/lib/events', 
'-L/<>/bin/default/third_party/aesni-intel', 
'-L/<>/bin/default/lib/tdb_wrap', 
'-L/<>/bin/default/source4/auth/kerberos', 
'-L/<>/bin/default/lib/ldb-samba', 
'-L/<>/bin/default/libcli/auth', 
'-L/<>/bin/default/libcli/ldap', 
'-L/<>/bin/default/lib/krb5_wrap', 
'-L/<>/bin/default/libcli/util', 
'-L/<>/bin/default/source3', 
'-L/<>/bin/default/source4/cluster', 
'-L/<>/bin/default/lib', 
'-L/<>/bin/default/lib/util', 
'-L/<>/bin/default/librpc', 
'-L/<>/bin/default/lib/param', 
'-L/<>/bin/default/source4/librpc', 
'-L/<>/bin/default/auth/credentials', 
'-L/<>/bin/default/source4/dsdb', 
'-L/<>/bin/default/source4/heimdal_build', 
'-L/<>/bin/default/lib/replace', 
'-L/<>/bin/default/source4/lib/messaging', 
'-L/<>/bin/default/auth', 
'-L/<>/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 
  |  ^~~
compilation terminated.


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

#ifdef HAVE_STROPTS_H
#include 
#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=/<>=.', '-fstack-protector-strong', 
'-Wformat', '-Werror=format-security', '-MMD', '-D_GNU_SOURCE=1', 
'-D_XOPEN_SOURCE_EXTENDED=1', '../../test.c', '-c', 
'-o/<>/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