Python fails compiling in socket extension

stefvienna sb at
Thu Jul 28 19:12:53 EDT 2005

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
In file included from /usr/local/include/netdb.h:95,
/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/
*** WARNING: renaming "_socket" since importing it failed:
build/lib.linux-i586-2.4/ undefined symbol: __inet_addr

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

if possible pls. answer via email to sb at - many

Cheers, Stefan!

More information about the Python-list mailing list