[New-bugs-announce] [issue7538] HP-UX 11.11 GCC build fails to build modules

River Tarnell report at bugs.python.org
Fri Dec 18 09:34:19 CET 2009

New submission from River Tarnell <river at flyingparchment.org.uk>:

2.6.4 fails to build on HP-UX 11.11 using GCC, when linking modules:

building '_struct' extension
gcc -pthread -shared build/temp.hp-ux-B.11.11-9000-785-2.6/home/river/
Python-2.6.4/Modules/_struct.o -L/opt/rt/lib -L/usr/local/lib -
lpython2.6 -o build/lib.hp-ux-B.11.11-9000-785-2.6/_struct.sl
/usr/ccs/bin/ld: Can't find library: "python2.6"
collect2: ld returned 1 exit status

(This happens for all modules.)

The problem is that libpython2.6.sl is in the root directory, but -L. 
is not passed to gcc, so the linker can't find the library.

components: Build
messages: 96552
nosy: rtarnell
severity: normal
status: open
title: HP-UX 11.11 GCC build fails to build modules
type: compile error
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list