Bug 1152793 - [python3] There is no stropts.h available with glibc 2.30 but pyconfig.h defines it!
[python3] There is no stropts.h available with glibc 2.30 but pyconfig.h defi...
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Matej Cepl
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-10-02 14:14 UTC by Andreas Schneider
Modified: 2019-10-09 07:47 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schneider 2019-10-02 14:14:54 UTC
glibc 2.30 removed stropt.h

So if your configure step checks for stropt.h and doesn't find it and your code protects the inclusion with

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

the compilation fails if you have #include <Python.h>, because of:

/usr/include/python3.7m/pyconfig.h
986:#define HAVE_STROPTS_H 1


This is really bad, why aren't those defines prefixed with PY_ if this is included in a public library?
Comment 1 Andreas Schwab 2019-10-09 07:47:10 UTC
Fixed.