Python-2.3.4 on OSF1 V4.0?

"Martin v. Löwis" martin at v.loewis.de
Fri Nov 19 16:28:50 EST 2004


Edmond Rusjan wrote:
> With a plain "./configure; make" build, I cannot import socket.
> If I uncomment the socketmodule in Modules/Setup, the build fails.
> Using gcc 3.4.2. Had no problem on OSF1 V5.1, Linux and Sun.
> Have not been able to find reference to a similar problem in
> comp.lang.python.
[...]
> gcc -pthread   -o python \
>                 Modules/python.o \
>                 libpython2.3.a -lrt    -lm 
> _Esetsockopt
> _Egetsockopt
> _Erecv
> _Esend
> _Esendto
> _Econnect
> _Ebind

As a starting point, you need to find out what library you need to
link in to provide these symbols. Strategies to find that out are
1. setsockopt(2)
2. nm /usr/lib/*.a|grep setsockopt
3. try -lsocket

Regards,
Martin



More information about the Python-list mailing list