[Python-bugs-list] [Bug #113145] config.h defines socklen_t, kills wxPython build

noreply@sourceforge.net noreply@sourceforge.net
Wed, 13 Sep 2000 04:21:25 -0700


Bug #113145, was updated on 2000-Aug-30 12:51
Here is a current snapshot of the bug.

Project: Python
Category: Build
Status: Closed
Resolution: Wont Fix
Bug Group: None
Priority: 6
Summary: config.h defines socklen_t, kills wxPython build

Details: Building wxPython fails with 1.6  because config.h defines socklen_t; according to a comment, it checks sys/types.h. But /usr/include/bits/socket.h on Linux at least, tries to make a typedef with this name.



Follow-Ups:

Date: 2000-Sep-03 21:08
By: gvanrossum

Comment:
Could this be dependent on the Linux version? It seems my config.h had socklen_t defined on Red Hat 6.1, but it is undefined on Red Hat 6.2 (which would fix your problem if I understand it correctly).

What platform are you using?

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

Date: 2000-Sep-03 22:10
By: dubois

Comment:
My system is 6.1 I think. (I didn't install it.) 
Here is uname -a:
Linux bruno.llnl.gov 2.2.12-20smp #1 SMP Mon Sep 27 10:34:45 EDT 1999 i686 unknown

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

Date: 2000-Sep-13 04:21
By: gvanrossum

Comment:
Jeremy, you still have Red Hat 6.1, right?
Can you reproduce this? Run configure, and check config.h.
If it defines socklen_t, the bug is there.

It may be possible to fix the test for socklen_t by using AC_TRY_COMPILE() of a test program. This is done for example for uintptr_t. (The current test uses AC_CHECK_TYPE which only greps through CPP output.) A good way to learn more about autoconf. :-)
-------------------------------------------------------

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