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: HP-UX: -lcurses missing for readline.so
Type: behavior Stage: resolved
Components: Build Versions: Python 3.2, Python 3.3, Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: gaal33, jabt, michael-o, r.david.murray
Priority: low Keywords:

Created on 2007-01-31 14:33 by jabt, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg61058 - (view) Author: Johannes Abt (jabt) Date: 2007-01-31 14:33
The readline extension seemed to be built without problems, but afterwards, this line appears:

/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'tgetent' in load module 'build/lib.hp-ux-B.11.23-ia64-2.5/readline.so'.

I have fixed this by manually rebuilding the above file with -lcurses.


msg116564 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-09-16 15:49
I can't believe that a build issue raised almost 4 years ago against 2.5 is still an issue today.
msg116577 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-09-16 17:20
It could still exist since we don't seem to have many people building python on hpux.  That said, unless the op confirms the problem still exists in 2.7 or later this can stay closed.
msg155452 - (view) Author: GaaL33 (gaal33) Date: 2012-03-12 15:56
I confirm that there's still a build issue.

I've tried to compile python 2.7.2 on HP-UX 11.31. And it crashes with : 

ld -b build/temp.hp-ux-B.11.31-ia64-2.7/images/Python-2.7.2/Modules/readline.o -L/usr/lib/termcap -L/usr/local/lib -L/usr/local/lib/hpux32 -lreadline -o build/lib.hp-ux-B.11.31-ia64-2.7/readline.so
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'tgetent' in load module '/usr/local/lib/hpux32/libreadline.so'.
sh[3]: 11780 Killed
*** Error exit code 137

adding "-lcurses" to the command resolves the problem.
msg155454 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012-03-12 16:51
OK, reopening.  I've added 3.2 and 3.3 as I imagine the same problem will exist there.

Now we need someone to propose a patch to fix it.
msg323737 - (view) Author: Michael Osipov (michael-o) * Date: 2018-08-18 22:25
I cannot reproduce this with master and 3.7 on HP-UX.

readline is linked and works with interactive python(1). curses module isn't buld because I don't have curses installed.

I opt to close this one.
History
Date User Action Args
2022-04-11 14:56:22adminsetgithub: 44528
2018-08-19 00:34:16berker.peksagsetstatus: open -> closed
resolution: out of date
stage: needs patch -> resolved
2018-08-18 22:25:04michael-osetnosy: + michael-o
messages: + msg323737
2014-02-03 19:13:49BreamoreBoysetnosy: - BreamoreBoy
2012-03-12 16:51:06r.david.murraysetstatus: closed -> open
versions: + Python 3.2, Python 3.3
messages: + msg155454

resolution: out of date -> (no value)
stage: test needed -> needs patch
2012-03-12 15:56:04gaal33setnosy: + gaal33

messages: + msg155452
versions: + Python 2.7, - Python 2.6
2010-09-16 17:20:06r.david.murraysetnosy: + r.david.murray
messages: + msg116577
2010-09-16 15:49:14BreamoreBoysetstatus: open -> closed

nosy: + BreamoreBoy
messages: + msg116564

resolution: out of date
2009-03-30 20:04:48ajaksu2setpriority: normal -> low
stage: test needed
type: behavior
versions: + Python 2.6, - Python 2.5
2007-01-31 14:33:20jabtcreate