problem compiling python's readline on linux

Josef Dalcolmo (josefd@albert.ssl.berkeley.edu)
21 Sep 1994 17:29:31 GMT

Please help!
I would like to compile python on a linux box with readline (to use tkinter)
or as an alternative with stdwin. Python itself builds without change. I
also build python + readline + stdwin successfully on a sun4 under SunOs
4.3.1. Unfortunateley things are not so straightforward under linux, and I
do not know much about unix, gcc, make ...

Here is the error message I get when I try to run make in the readline dir:

cc -c -g -I. -I../ \
-DVOID_SIGHANDLER -DVI_MODE readline.c
readline.c:91: sgtty.h: No such file or directory
make: *** [readline.o] Error 1

I found the file sgtty.h in /usr/include/bsd and tried copying it to the
readline dir. After makeing readline (and make clean in top python dir) I
tried a configure --with-readline=.... and a make. Make failed again looking
for bsd related stuff.

What am I doing wrong ?

Here are the error messages I get when trying to make stdwin under linux:

timer.c: In function `_w_checktimer':
timer.c:185: warning: passing arg 2 of `select' from incompatible pointer type
timer.c:185: warning: passing arg 3 of `select' from incompatible pointer type
timer.c:185: warning: passing arg 4 of `select' from incompatible pointer type
stdwin.c: In function `winit':
stdwin.c:48: `SIGEMT' undeclared (first use this function)
stdwin.c:48: (Each undeclared identifier is reported only once
stdwin.c:48: for each function it appears in.)
stdwin.c:52: `SIGSYS' undeclared (first use this function)
make[2]: *** [stdwin.o] Error 1
make[1]: *** [all] Error 2
ar: No such file or directory for wprintf.o
gcc: regsub.o: No such file or directory
make[2]: *** [miniedit] Error 1
In file included from /usr/include/math.h:111,
from klok.c:33:
/usr/include/huge_val.h:34: warning: `__huge_val_bytes' redefined
/usr/include/huge_val.h:30: warning: this is the location of the previous definition
In file included from /usr/include/math.h:115,
from klok.c:33:
/usr/include/nan.h:34: warning: `__nan_bytes' redefined
/usr/include/nan.h:30: warning: this is the location of the previous definition
gcc: bsdsetdate.o: No such file or directory
make[2]: *** [klok] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2

Any hints / help is most appreciated. - Josef