Python fails compiling in socket extension

stefvienna sb at digital-vitamins.com
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
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 sb at digital-vitamins.com - many
thx!

Cheers, Stefan!




More information about the Python-list mailing list