Further help w/ readline needed (was:Re: Past command buffer gone in interpreter?)

Tod Fox vulpine at dontspam.earthling.net
Tue Oct 16 20:18:51 EDT 2001


Ignacio Vazquez-Abrams <ignacio at openservices.net> wrote:
> You'll need to install the readline-devel RPM.

I made sure readline was installed on my system, and then installed the
readline-devel RPM without any problems. I uncommented the readline
entry in Modules/Setup, but when I run make I get the following error:

ar cr libpython2.1.a Modules/gcmodule.o  Modules/threadmodule.o
Modules/signalmodule.o  Modules/posixmodule.o  Modules/_sre.o
Modules/readline.o  Modules/arraymodule.o  Modules/mathmodule.o
Modules/timemodule.o  Modules/operator.o  Modules/_testcapimodule.o
Modules/pwdmodule.o  Modules/grpmodule.o  Modules/audioop.o
Modules/imageop.o
ranlib libpython2.1.a
gcc  -Xlinker -export-dynamic -o python \
                Modules/python.o \
                libpython2.1.a -lpthread -ldl  -lutil -lreadline
-ltermcap           -lm
/usr/bin/ld: cannot find -ltermcap

The commented text in Setup suggests replacing -ltermcap with -ltermlib,
and this results in the error:
gcc  -Xlinker -export-dynamic -o python \
                Modules/python.o \
                libpython2.1.a -lpthread -ldl  -lutil -lreadline
-ltermlib           -lm
/usr/bin/ld: cannot find -ltermlib

if I delete that -lterm* entirely, it results in:
ar cr libpython2.1.a Modules/gcmodule.o  Modules/threadmodule.o
Modules/signalmodule.o  Modules/posixmodule.o  Modules/_sre.o
Modules/readline.o  Modules/arraymodule.o  Modules/mathmodule.o
Modules/timemodule.o  Modules/operator.o  Modules/_testcapimodule.o
Modules/pwdmodule.o  Modules/grpmodule.o  Modules/audioop.o
Modules/imageop.o
ranlib libpython2.1.a
gcc  -Xlinker -export-dynamic -o python \
                Modules/python.o \
                libpython2.1.a -lpthread -ldl  -lutil -lreadline
-lm
libpython2.1.a(posixmodule.o): In function `posix_tmpnam':
/home/vulpine/Python-2.1.1/./Modules/posixmodule.c:4212: the use of
`tmpnam_r' is dangerous, better use `mkstemp'
libpython2.1.a(posixmodule.o): In function `posix_tempnam':
/home/vulpine/Python-2.1.1/./Modules/posixmodule.c:4168: the use of
`tempnam' is dangerous, better use `mkstemp'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `tgetnum'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `tgoto'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `tgetflag'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `BC'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `tputs'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `PC'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `tgetent'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `UP'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `tgetstr'
collect2: ld returned 1 exit status

Can anyone provide further guidance about this issue?

Thanks!
Kit




More information about the Python-list mailing list