[Bug 1842618] [NEW] python3.7 might need a rebuild against the new glibc 2.30 - fails with stropts define

Christian Ehrhardt  1842618 at bugs.launchpad.net
Wed Sep 4 07:45:43 UTC 2019


Public bug reported:

Hi,
this was triggered by an issue rebuilding samba in Eoan.

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:34:                 
../../lib/replace/system/network.h:91:10: fatal error: stropts.h: No such file or directory
   91 | #include <stropts.h>                                                     
      |          ^~~~~~~~~~~  

After some initial confusion it turned out that nothing in samba enables
HAVE_STROPTS_H and the configure stage properly detects:

Checking for header stropts.h                                : no

Never the less this triggered:
../../lib/replace/system/network.h
#ifdef HAVE_STROPTS_H
#include <stropts.h>
#endif

And due to glibc 2.30 containing [1] no stropts files are shipped anymore.
Therefore the above failure happens and the build aborts.

But since nothing in samba defines HAVE_STROPTS_H I had to reach out and
checked an eoan-proposed build environment. There I found that python
(this part of samba builds pycredentials.c and therefore has python
related includes) is the root cause for this.

usr/include/x86_64-linux-gnu/python3.7m/pyconfig.h:986:#define
HAVE_STROPTS_H 1

So everything that includes pyconfig.h direct or indirect and then based
on HAVE_STROPTS_H will include stropts.h will be a broken build right
now.

pyconfig.h is generated on the build of python, so I guess we need a no
change rebuild of python to resolve this?

[1]:
https://github.com/bminor/glibc/commit/a0a0dc83173ce11ff45105fd32e5d14356cdfb9c

** Affects: python3.7 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.7 in Ubuntu.
https://bugs.launchpad.net/bugs/1842618

Title:
  python3.7 might need a rebuild against the new glibc 2.30 - fails with
  stropts define

Status in python3.7 package in Ubuntu:
  New

Bug description:
  Hi,
  this was triggered by an issue rebuilding samba in Eoan.

  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:34:                 
  ../../lib/replace/system/network.h:91:10: fatal error: stropts.h: No such file or directory
     91 | #include <stropts.h>                                                     
        |          ^~~~~~~~~~~  

  After some initial confusion it turned out that nothing in samba
  enables HAVE_STROPTS_H and the configure stage properly detects:

  Checking for header stropts.h                                : no

  Never the less this triggered:
  ../../lib/replace/system/network.h
  #ifdef HAVE_STROPTS_H
  #include <stropts.h>
  #endif

  And due to glibc 2.30 containing [1] no stropts files are shipped anymore.
  Therefore the above failure happens and the build aborts.

  But since nothing in samba defines HAVE_STROPTS_H I had to reach out
  and checked an eoan-proposed build environment. There I found that
  python (this part of samba builds pycredentials.c and therefore has
  python related includes) is the root cause for this.

  usr/include/x86_64-linux-gnu/python3.7m/pyconfig.h:986:#define
  HAVE_STROPTS_H 1

  So everything that includes pyconfig.h direct or indirect and then
  based on HAVE_STROPTS_H will include stropts.h will be a broken build
  right now.

  pyconfig.h is generated on the build of python, so I guess we need a
  no change rebuild of python to resolve this?

  [1]:
  https://github.com/bminor/glibc/commit/a0a0dc83173ce11ff45105fd32e5d14356cdfb9c

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.7/+bug/1842618/+subscriptions



More information about the foundations-bugs mailing list