Python fails compiling in socket extension

S

stefvienna

Hi group,

I'm trying compiling Python-2.4.1 and it fails builing the _socket
extension with the following message:

building '_socket' extension
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-fno-strict-aliasing -I. -I/usr/local/src/Python-2.4.1/./Include
-I/usr/local/include -I/usr/local/src/Python-2.4.1/Include
-I/usr/local/src/Python-2.4.1 -c
/usr/local/src/Python-2.4.1/Modules/socketmodule.c -o
build/temp.linux-i586-2.4/socketmodule.o
In file included from /usr/local/include/netdb.h:95,
from
/usr/local/src/Python-2.4.1/Modules/socketmodule.c:230:
/usr/include/sys/param.h:59: warning: `MAX' redefined
/usr/local/src/Python-2.4.1/Modules/socketmodule.c:67: warning: this is
the location of the previous definition
gcc -pthread -shared build/temp.linux-i586-2.4/socketmodule.o
-L/usr/local/lib -o build/lib.linux-i586-2.4/_socket.so
*** WARNING: renaming "_socket" since importing it failed:
build/lib.linux-i586-2.4/_socket.so: undefined symbol: __inet_addr

.... looks like it cannot find inet_addr() - any ideas?

if possible pls. answer via email to (e-mail address removed) - many
thx!

Cheers, Stefan!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top