This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kraai
Recipients Konjkov, georg.brandl, gvanrossum, kraai, loewis
Date 2008-01-23.18:12:21
SpamBayes Score 0.048288904
Marked as misclassified No
Message-id <1201111943.96.0.109677266251.issue1722225@psf.upfronthosting.co.za>
In-reply-to
Content
If they're defined, TCGETA, TCSETA, TCSETAW, and TCSETAF are used on
lines 702, 714, 717, and 720 of Modules/termios.c as of r60219.  They
are defined by sys/ioctl.h as

 #define TCGETA          _IOR('T', 1, struct termio)
 #define TCSETA          _IOW('T', 2, struct termio)
 #define TCSETAW         _IOW('T', 3, struct termio)
 #define TCSETAF         _IOW('T', 4, struct termio)

These macro definitions expand to

 ( 0x40000000   | ((  sizeof(  struct termio )  & 0x3fff ) << 16) | (( 
  ( 'T' ) ) << 8) | (  (  1 ) ))   
 ( 0x80000000   | ((  sizeof(  struct termio )  & 0x3fff ) << 16) | (( 
   ( 'T' ) ) << 8) | (  (  2 ) ))   
 ( 0x80000000   | ((  sizeof(  struct termio )  & 0x3fff ) << 16) | (( 
   ( 'T' ) ) << 8) | (  (  3 ) ))   
 ( 0x80000000   | ((  sizeof(  struct termio )  & 0x3fff ) << 16) | (( 
   ( 'T' ) ) << 8) | (  (  4 ) ))   

respectively, so struct termio must be declared if any of these macros
are used.  struct termio is declared in sys/termio.h.  Since
sys/termio.h isn't included, Modules/termios.c fails to compile with the
following error messages:

 /home/m_kraai/src/python/Modules/termios.c:702: sizeof applied to an
incomplete type
 /home/m_kraai/src/python/Modules/termios.c:714: sizeof applied to an
incomplete type
 /home/m_kraai/src/python/Modules/termios.c:717: sizeof applied to an
incomplete type
 /home/m_kraai/src/python/Modules/termios.c:720: sizeof applied to an
incomplete type

sys/termio.h checks that it's included before termios.h is first
included.  If it's not included first, it produces the following error
message:

 /usr/qnx630/target/qnx6/usr/include/sys/termio.h:109: #error
termio/termios incompatibility

What should configure test for?
History
Date User Action Args
2008-01-23 18:12:24kraaisetspambayes_score: 0.0482889 -> 0.048288904
recipients: + kraai, gvanrossum, loewis, georg.brandl, Konjkov
2008-01-23 18:12:24kraaisetspambayes_score: 0.0482889 -> 0.0482889
messageid: <1201111943.96.0.109677266251.issue1722225@psf.upfronthosting.co.za>
2008-01-23 18:12:22kraailinkissue1722225 messages
2008-01-23 18:12:21kraaicreate