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.

classification
Title: module termios doesn't build on HP-UX
Type: compile error Stage: resolved
Components: Build Versions: Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: termios fix for QNX breaks HP-UX
View: 6308
Assigned To: Nosy List: gperrow, loewis, philipsd6, ronaldoussoren, skrah
Priority: normal Keywords:

Created on 2010-07-06 09:51 by ronaldoussoren, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (5)
msg109378 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-07-06 09:51
I get the following error when building the termios module on HP-UX:


cc -Ae +z -Olimit 1500 -g -DNDEBUG -O -I/opt/python2.7/include -I. -IInclude -I./Include -I/home/xsupport/bld/Python-2.7/Include -I/home/xsupport/bld/Python-2.7 -c /home/xsupport/bld/Python-2.7/Modules/termios.c -o build/temp.hp-ux-B.11.23-9000-800-2.7/home/xsupport/bld/Python-2.7/Modules/termios.o
cc: "/home/xsupport/bld/Python-2.7/Modules/termios.c", line 75: error 1574: Unknown size for "mode".
cc: "/home/xsupport/bld/Python-2.7/Modules/termios.c", line 96: error 1530: Undefined struct or union.
cc: "/home/xsupport/bld/Python-2.7/Modules/termios.c", line 96: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type.
cc: "/home/xsupport/bld/Python-2.7/Modules/termios.c", line 106: error 1530: Undefined struct or union.


(The line numbers are off by 3 due to an experiment that doesn't affect the error message beyond the linenumbers).



Compiler version:

  B9007AA               C.11.23.12     HP C/aC++ Developer's Bundle 

System info:


HP-UX ah006b02 B.11.23 U 9000/800 2284397887 unlimited-user license
msg109419 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2010-07-06 20:20
Can you provide a patch?
msg109454 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-07-07 06:10
Maybe.   I don't know when I'll have time to research the issue though. 

The code looks correct and the HP-UX system headers do include the definition for the type of 'mode' but for some reason that definition doesn't get picked up.  That's probably because some feature macro is set or isn't set.
msg141975 - (view) Author: Philip Douglass (philipsd6) Date: 2011-08-12 17:37
Workaround for this issue: Add -D_TERMIOS_INCLUDED to your CFLAGS/CPPFLAGS environment variables to successfully compile termios.
msg176577 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2012-11-28 21:56
This should be fixed now (see #6308).
History
Date User Action Args
2022-04-11 14:57:03adminsetgithub: 53422
2012-11-28 21:56:09skrahsetstatus: open -> closed

superseder: termios fix for QNX breaks HP-UX

nosy: + skrah
messages: + msg176577
resolution: duplicate
stage: resolved
2011-08-12 17:37:48philipsd6setnosy: + philipsd6
messages: + msg141975
2011-04-15 00:06:34gperrowsetnosy: + gperrow
2010-07-07 06:10:37ronaldoussorensetmessages: + msg109454
2010-07-06 20:20:06loewissetnosy: + loewis
messages: + msg109419
2010-07-06 09:51:25ronaldoussorencreate