[Python-bugs-list] [Bug #111319] Autoconfig breakdown with gnu libc-2.1.3

noreply@sourceforge.net noreply@sourceforge.net
Fri, 25 Aug 2000 15:36:42 -0700


Bug #111319, was updated on 2000-Aug-07 16:29
Here is a current snapshot of the bug.

Project: Python
Category: Core
Status: Closed
Resolution: None
Bug Group: Platform-specific
Priority: 6
Summary: Autoconfig breakdown with gnu libc-2.1.3

Details: 
  Pythons config.h (which is included via Python.h)
defines this on redhat-6.2:

/* Define to `int' if <sys/types.h> doesn't define.  */
#define socklen_t int


The trouble is that gnu libc-2.1.3 does not define
socklen_t in <sys/types.h>.  It defines it in
<bits/socket.h>:

/* Type for length arguments in socket calls.  */
typedef unsigned int socklen_t;

  In this case, pythons definition causes a compilation
failure which can be demonstrated by the following simple
program:

#include <Python.h>
#include <rpc/rpc.h>

int main() { return 0; }


  My guess is that the autoconfig macros need to be updated
to search <bits/socket.h> as well.

Mike Romberg (romberg@fsl.noaa.gov)

      

Follow-Ups:

Date: 2000-Aug-07 16:33
By: none

Comment:
This applies to python-1.6b1
-------------------------------------------------------

Date: 2000-Aug-25 13:06
By: jhylton

Comment:
I can not reproduce this on my system with glibc-2.1.3-15.  Python compiles and runs cleanly; so does the test program in the bug report.

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

Date: 2000-Aug-25 15:36
By: jhylton

Comment:
Original submittors confirms that this is fixed.

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

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=111319&group_id=5470