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.
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:03 | admin | set | github: 53422 |
| 2012年11月28日 21:56:09 | skrah | set | status: open -> closed superseder: termios fix for QNX breaks HP-UX nosy: + skrah messages: + msg176577 resolution: duplicate stage: resolved |
| 2011年08月12日 17:37:48 | philipsd6 | set | nosy:
+ philipsd6 messages: + msg141975 |
| 2011年04月15日 00:06:34 | gperrow | set | nosy:
+ gperrow |
| 2010年07月07日 06:10:37 | ronaldoussoren | set | messages: + msg109454 |
| 2010年07月06日 20:20:06 | loewis | set | nosy:
+ loewis messages: + msg109419 |
| 2010年07月06日 09:51:25 | ronaldoussoren | create | |