Socket Support When Compiling Python 2.3.5 On Cygwin

tom at tompurl.com tom at tompurl.com
Fri Aug 26 21:43:09 CEST 2005


Thanks for the response Jason.  I re-ran make and noticed the following:

building '_socket' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fno-strict-aliasing -I.
-I/tmp/Python-2.3.5/./Include -I/usr/local/include
-I/tmp/Python-2.3.5/Include -I/tmp/Python-2.3.5 -c
/tmp/Python-2.3.5/Modules/socketmodule.c -o
build/temp.cygwin-1.5.18-i686-2.3/socketmodule.o
/tmp/Python-2.3.5/Modules/socketmodule.c: In function `socket_inet_ntop':
/tmp/Python-2.3.5/Modules/socketmodule.c:3045: error: `INET_ADDRSTRLEN'
undeclared (first use in this function)
/tmp/Python-2.3.5/Modules/socketmodule.c:3045: error: (Each undeclared
identifier is reported only once
/tmp/Python-2.3.5/Modules/socketmodule.c:3045: error: for each function it
appears in.)
/tmp/Python-2.3.5/Modules/socketmodule.c:3045: warning: unused variable `ip'

I then did a Google search on this error and found the following thread on
the Cygwin mailing list:

http://www.mail-archive.com/cygwin@cygwin.com/msg58066.html

Coincidentally, this question was posted by you.  So you've helped me
doubely today.  Not bad!

So, as you well know, this is a problem with Cygwin 1.5.18 and will be
fixed in the next version.

Thanks for all of the help!

Tom Purl

> Tom,
>
> On Thu, Aug 25, 2005 at 10:39:47AM -0500, tom at tompurl.com wrote:
>> What do I need to do to make sure that this file will be created with
>> I compile Python 2.3.5?
>
> Are there any error messages when the socket module is built during the
> Python build?  If so, then post them to the list.
>
> Jason
>
> --
> PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
> Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
>




More information about the Python-list mailing list