[Python-bugs-list] [ python-Bugs-724588 ] socketmodule doesn't compile on strict POSIX systems
SourceForge.net
noreply@sourceforge.net
Sat, 03 May 2003 03:13:12 -0700
Bugs item #724588, was opened at 2003-04-20 14:42
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=724588&group_id=5470
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Marc Recht (marc)
Assigned to: Martin v. Löwis (loewis)
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
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2003-05-03 12:13
Message:
Logged In: YES
user_id=21627
Thanks for the patch. Applied as
configure 1.391
configure.in 1.402
pyconfig.h.in 1.77
socketmodule.c 1.264
----------------------------------------------------------------------
Comment By: Marc Recht (marc)
Date: 2003-04-20 15:43
Message:
Logged In: YES
user_id=205
This is for Python 2.3/CVS (20.04.2003).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=724588&group_id=5470