Socket Support When Compiling Python 2.3.5 On Cygwin

tom at tom at
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
/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:

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 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: or key servers
> Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

More information about the Python-list mailing list