[Tutor] Re: [Python-Help] ExpectPy Installation problem --- attached config.log

Martin von Loewis loewis@informatik.hu-berlin.de
Tue, 12 Oct 1999 20:33:22 +0200


> This file contains any messages produced by compilers while running
> configure, to aid debugging if configure makes a mistake.

Without investigating this in detail, it seems that there are serious
bugs in the configure.in of ExpectPy. I recommend to contact the
ExpectPy authors for help.

If you want to fix those problems on your own, you'll need to
investigate each problem in detail.

> configure:1896: gcc -o conftest -g -O2 
> -I/s1/sqa/edwardt/Python/Python-1.5.2/Include
> -I/tools/2.5.1/local/lib  
> -L/s1/sqa/edwardt/Python/Python-1.5.2
> -L/tools/2.5.1/local/lib  conftest.c 
> -lexpect5.26  -ldl -lm  1>&5
> /tools/2.5.1/local/lib/libexpect5.26.a(exp_clib.o): In
> function `exp_spawnv':
> /net/wrk/expect-5.26/exp_clib.c:282: undefined
> reference to `Tcl_ErrnoMsg'

I'm not surprised Tcl_ErrnoMsg is undefined - they don't attempt to
link libtcl-something with the executable. Or, if this should get
linked via -lexpect5.26 - perhaps the Tcl version and the expect
version you use don't match?

> configure:2043: gcc -o conftest -g -O2 
> -I/s1/sqa/edwardt/Python/Python-1.5.2/Include
> -I/tools/2.5.1/local/lib  
> -L/s1/sqa/edwardt/Python/Python-1.5.2
> -L/tools/2.5.1/local/lib  conftest.c 
> -lpython1.5  -ldl -lm  1>&5
> /s1/sqa/edwardt/Python/Python-1.5.2/libpython1.5.a(socketmodule.o):
> In function 
> `setipaddr':
> /s1/sqa/poonam/python/Python-1.5.2/Modules/./socketmodule.c:404:
> undefined 
> reference to `gethostbyname'

Yes, they fail to link -lsocket, or anything else defined
/usr/local/lib/python1.5/config/Makefile:MODLIBS

I don't know whether there is autoconf support for that kind of stuff
already there; however absolutely need to know what additional
libraries to link when you want to embed Python. This, again, looks
like a configure.in bug.

Hope this helps,
Martin