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

Diego Alonso report at bugs.python.org
Thu Oct 14 14:36:24 EDT 2021


Diego Alonso <diego at mathisart.org> added the comment:

I had an empty stropts.h lying around somewhere in /usr/* (can't remember where) because some programs don't compile if they don't see that file (even an empty one suffices). But Python doesn't compile if it sees it... So I deleted stropts.h and then ran ./configure again, compiled, and it worked.

The Python build code should be modified to set HAVE_STROPTS_H to 0 on platforms (like Linux) that don't support stropts.h

----------

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


More information about the Python-bugs-list mailing list