[Python-bugs-list] [ python-Bugs-636431 ] ./configure test socklen_t fails on *BSD

noreply@sourceforge.net noreply@sourceforge.net
Sun, 10 Nov 2002 18:30:59 -0800


Bugs item #636431, was opened at 2002-11-11 02:30
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=636431&group_id=5470

Category: Build
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Jon Ribbens (jribbens)
Assigned to: Nobody/Anonymous (nobody)
Summary: ./configure test socklen_t fails on *BSD

Initial Comment:
Context: the patch applied updating CVS version 1.121 
of configure.in to version 1.122. This code is broken. 
Yes I know that was over 2 years ago! I am somewhat 
bemused it hasn't been noticed before.

The patch adds #include <sys/socket.h> to confdefs.h. 
This is broken because it means <sys/socket.h> 
becomes the first header to be #included during the test 
for socklen_t, and it is illegal on *BSD to include 
<sys/socket.h> before <sys/types.h>.

The upshot of this is that pyconfig.h ends up #defining 
socklen_t, which then means that when <sys.types.h> 
is #included while building Python all sorts of compiler 
diagnostics are generated, and god-only-knows what the 
effect on the resulting binary is, and obviously the 
correct definition for socklen_t is not being used.

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

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