[Patches] [ python-Patches-763798 ] FreeBSD 5.x needs extra define to expose all library symbols

SourceForge.net noreply@sourceforge.net
Wed, 02 Jul 2003 07:02:45 -0700


Patches item #763798, was opened at 2003-07-01 21:11
Message generated for change (Comment added) made by aimacintyre
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=763798&group_id=5470

Category: Build
Group: Python 2.3
>Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Andrew I MacIntyre (aimacintyre)
Assigned to: Andrew I MacIntyre (aimacintyre)
Summary: FreeBSD 5.x needs extra define to expose all library symbols

Initial Comment:
With FreeBSD 5.x, a number of library symbols, and
common typedefs, have been moved outside the scope of
the usual _XOPEN_SOURCE and _POSIX_C_SOURCE defines.

This includes getloadavg(), and typedefs for u_int,
u_long etc.  These typedefs are common in standard
extension modules (but not in Python's core).

The define required to enable the missing bits is
__BSD_VISIBLE.

The attached patches for configure.in and pyconfig.in
add support for this define in similar fashion to
defines required for similar reasons on other platforms
(eg NetBSD).

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

>Comment By: Andrew I MacIntyre (aimacintyre)
Date: 2003-07-03 00:02

Message:
Logged In: YES 
user_id=250749

The lack of the typedefs now controlled by __BSD_VISIBLE is
the cause of the odd test_socket and test_tempfile failures
reported to python-dev on 29/6/03 by pieterb@gewis.nl
(subject: running tests on freebsd5).

Because of these test failures, I've proceeded with applying
the patches as:
configure.in v1.420
configure v 1.409
pyconfig.h.in v1.82

There appears to be no requirement to backport this.


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

Comment By: Martin v. Löwis (loewis)
Date: 2003-07-02 03:22

Message:
Logged In: YES 
user_id=21627

The patch is fine in itself, but I'm uncertain whether it is a 
bug fix. If you can explain why this is a bug fix, please apply 
it for 2.3; otherwise, apply it after 2.3.

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

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