[issue45404] Undefined I_* macros of stropts.h when building Python 3.10 on Ubuntu: fail to build the fcntl module

Christian Heimes report at bugs.python.org
Thu Oct 14 14:53:17 EDT 2021


Christian Heimes <lists at cheimes.de> added the comment:

I'm glad you figured out the problem and fixed your system.

Python uses autoconf (configure) to detect the presence of features. It's a standard approach. Since you had a stropts.h in your include directory, configure declared HAVE_STROPTS_H. The system can't deal with incompatible stropts.h.

We could add more checks and workaround. IMHO it's not worth the effort and time. We assume standard behavior and APIs in lots of places.

----------
nosy: +christian.heimes
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45404>
_______________________________________


More information about the Python-bugs-list mailing list