[ python-Bugs-933795 ] configure not able to find ncurses/curses in
Solaris
SourceForge.net
noreply at sourceforge.net
Mon Apr 12 16:13:17 EDT 2004
Bugs item #933795, was opened at 2004-04-12 21:12
Message generated for change (Comment added) made by sparvu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=933795&group_id=5470
Category: Build
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: stefanparvu (sparvu)
Assigned to: Nobody/Anonymous (nobody)
Summary: configure not able to find ncurses/curses in Solaris
Initial Comment:
I am trying to build Python 2.3.3 on Solaris 9 x86.
Everything goes fine except that I have some issues
with curses module ...
It looks like configure is failing to detect curses
found /usr/lib or any ncurses installed under system.
Other fixes:
1) I had to fix configure script in order to get it
running by changing
SunOS/5.6 in SunOS/5.*
eg.
"
case $ac_sys_system/$ac_sys_release in
# On OpenBSD, select(2) is not available if
_XOPEN_SOURCE is defined,
# even though select is a POSIX function. Reported by
J. Ribbens.
# Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for
3.4 by Jason Ish.
OpenBSD/2.* | OpenBSD/3.[01234])
define_xopen_source=no;;
# On Solaris 2.6, sys/wait.h is inconsistent in the usage
# of union __?sigval. Reported by Stuart Bishop.
SunOS/5.*)
"
Im building python using 2.95 the GNU compiler.
The configure command was something like:
./configure --prefix=/usr/local --with-threads
--enable-shared
My LD_LIBRARY_PATH is defined as:
/usr/lib:/opt/sfw/lib:/usr/sfw/lib
I have tried passing to the command line
LDFLAGS="-L/usr/lib :/usr/sfw/lib -lcurses -ltermcap "
./configure .... without success
---
I have found that after compilation there are some
warnings about curses module ...
*** WARNING: renaming "_curses" since importing it
failed: ld.so.1: ./python: fatal: relocation error:
file build/lib.solaris-2.9-i86pc-2.3/_curses.so: symbol
newscr: referenced symbol not found
building '_curses_panel' extension
*** WARNING: renaming "_curses_panel" since importing
it failed: No module named _curses
... which, I think, will end by having no curses module
available.
>From help() found out these:
help> modules
Please wait a moment while I gather a list of all
available modules...
...
_curses_failed getpass py_compile
_curses_panel_failed
So python 2.3.3 does not biuild 100% clean under
Solaris x86
I havent tried this on sparc but most likely same
problem is in there too.
Please evaluate.
stefan
----------------------------------------------------------------------
>Comment By: stefanparvu (sparvu)
Date: 2004-04-12 23:13
Message:
Logged In: YES
user_id=1019660
Regarding this problem looks like 'configure' does not pickup
Solaris's curses library.
I had to manually pass to configure command libncurses library
LDFLAGS="-L/opt/sfw/lib -R/opt/sfw/lib -lncurses"
CPPFLAGS="-I/optsfw/include" ./configure --prefix=/usr/local
--with-threads --enable-shared
Does this mean that python needs libncurses and can not work
with Solaris curses library !?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=933795&group_id=5470
More information about the Python-bugs-list
mailing list