Problem compiling Python on Suse 6.1

Tomaz Ficko tomaz at gmx.net
Thu Jul 29 05:13:15 EDT 1999


I have a problem compiling Python 1.5.2 with Tk and readline support.
I'm using Suse 6.1 (evaluation iso):
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
Tcl/Tk 8.0.5
bash-2.02

Can somebody help me.

Here is what I get when I run 'make' ( this is only the part with
errors).

make[1]: Entering directory `/home/tomaz/src/Python-1.5.2/Modules'
gcc  -Xlinker -export-dynamic python.o \
	  ../libpython1.5.a -lreadline
-L/usr/lib/libtermcap.so.2                 -L/usr/X11/lib -ltk8.0
-ltcl8.0 -L/usr/X11R6/lib -lX11        -lieee -ldl  -lm  -o python 
../libpython1.5.a(_tkinter.o): In function `Tkapp_CreateFileHandler':
/home/tomaz/src/Python-1.5.2/Modules/./_tkinter.c:1456: undefined
reference to `Tcl_GetFile'
../libpython1.5.a(_tkinter.o): In function `Tkapp_DeleteFileHandler':
/home/tomaz/src/Python-1.5.2/Modules/./_tkinter.c:1483: undefined
reference to `Tcl_GetFile'
../libpython1.5.a(_tkinter.o): In function `EventHook':
/home/tomaz/src/Python-1.5.2/Modules/./_tkinter.c:1912: undefined
reference to `Tcl_GetFile'
/usr/lib/libreadline.a(display.o): In function `rl_redisplay':
display.o(.text+0xb6e): undefined reference to `tputs'
/usr/lib/libreadline.a(display.o): In function `update_line':
display.o(.text+0x10c2): undefined reference to `tputs'
/usr/lib/libreadline.a(display.o): In function
`_rl_move_cursor_relative':
display.o(.text+0x1399): undefined reference to `tputs'
/usr/lib/libreadline.a(display.o): In function `_rl_move_vert':
display.o(.text+0x143f): undefined reference to `tputs'
display.o(.text+0x1476): undefined reference to `tputs'
/usr/lib/libreadline.a(display.o)(.text+0x1948): more undefined
references to `tputs' follow
/usr/lib/libreadline.a(display.o): In function `insert_some_chars':
display.o(.text+0x19ea): undefined reference to `tgoto'
display.o(.text+0x19f7): undefined reference to `tputs'
display.o(.text+0x1a27): undefined reference to `tputs'
display.o(.text+0x1a52): undefined reference to `tputs'
display.o(.text+0x1a7f): undefined reference to `tputs'
/usr/lib/libreadline.a(display.o): In function `delete_chars':
display.o(.text+0x1ab1): undefined reference to `tgoto'
display.o(.text+0x1abd): undefined reference to `tputs'
display.o(.text+0x1af2): undefined reference to `tputs'
/usr/lib/libreadline.a(display.o): In function `cr':
display.o(.text+0x1bf5): undefined reference to `tputs'
/usr/lib/libreadline.a(display.o): In function
`_rl_redisplay_after_sigwinch':
display.o(.text+0x1c2c): undefined reference to `tputs'
display.o(.text+0x1c4f): undefined reference to `tputs'
/usr/lib/libreadline.a(display.o)(.text+0x1c79): more undefined
references to `tputs' follow
/usr/lib/libreadline.a(terminal.o): In function `_rl_get_screen_size':
terminal.o(.text+0x84): undefined reference to `tgetnum'
terminal.o(.text+0xda): undefined reference to `tgetnum'
/usr/lib/libreadline.a(terminal.o): In function `get_term_capabilities':
terminal.o(.text+0x1b3): undefined reference to `tgetstr'
/usr/lib/libreadline.a(terminal.o): In function `_rl_init_terminal_io':
terminal.o(.text+0x26b): undefined reference to `tgetent'
terminal.o(.text+0x35c): undefined reference to `PC'
terminal.o(.text+0x366): undefined reference to `BC'
terminal.o(.text+0x370): undefined reference to `UP'
terminal.o(.text+0x3be): undefined reference to `tgetflag'
terminal.o(.text+0x3cf): undefined reference to `tgetflag'
terminal.o(.text+0x41d): undefined reference to `tgetflag'
terminal.o(.text+0x42e): undefined reference to `tgetflag'
/usr/lib/libreadline.a(terminal.o): In function `_rl_backspace':
terminal.o(.text+0x646): undefined reference to `tputs'
/usr/lib/libreadline.a(terminal.o): In function `ding':
terminal.o(.text+0x6df): undefined reference to `tputs'
/usr/lib/libreadline.a(terminal.o): In function `_rl_enable_meta_key':
terminal.o(.text+0x73e): undefined reference to `tputs'
/usr/lib/libreadline.a(terminal.o): In function `_rl_control_keypad':
terminal.o(.text+0x772): undefined reference to `tputs'
collect2: ld returned 1 exit status
make[1]: *** [link] Error 1
make[1]: Leaving directory `/home/tomaz/src/Python-1.5.2/Modules'
make: *** [python] Error 2





More information about the Python-list mailing list