[Python-bugs-list] [ python-Bugs-724588 ] socketmodule doesn't compile on strict POSIX systems

SourceForge.net noreply@sourceforge.net
Sun, 20 Apr 2003 05:42:36 -0700


Bugs item #724588, was opened at 2003-04-20 14:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=724588&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Marc Recht (marc)
Assigned to: Nobody/Anonymous (nobody)
Summary: socketmodule doesn't compile on strict POSIX systems

Initial Comment:
socketmodule uses the functions: 
- hstrerror 
- inet_aton 
- inet_pton 
 
and definitions: 
- NI_MAXHOST 
- NI_MAXSERV 
 
which aren't defined by IEEE Std 1003.1, 2003 Edition 
(regarding to 
http://www.unix.org/single_unix_specification/). 
 
The attached patch changes configure.in so that configure 
tries to take the adress of the functions rather than the 
autoconf library function check. Because with the later the 
POSIX/POSIX_C_SOURCE/XOPEN etc definitions are not 
set. It also changes socketmodule.c to define NI_MAXHOST 
and NI_MAXSERV if they haven't been defined already. 
This fixes compilation of socketmodule on: 
NetBSD 1.6R i386 
 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=724588&group_id=5470