468,248 Members | 1,495 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,248 developers. It's quick & easy.

Python fails compiling in socket extension

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@digital-vitamins.com - many
thx!

Cheers, Stefan!

Jul 28 '05 #1
0 897

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by A. B., Khalid | last post: by
4 posts views Thread by Edmond Rusjan | last post: by
reply views Thread by Kirt Loki Dankmyer | last post: by
1 post views Thread by Holger Joukl | last post: by
reply views Thread by Kurt B. Kaiser | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.