[Python-checkins] python/dist/src configure.in,1.419,1.420 configure,1.408,1.409 pyconfig.h.in,1.81,1.82

aimacintyre@users.sourceforge.net aimacintyre@users.sourceforge.net
Wed, 02 Jul 2003 06:53:27 -0700


Update of /cvsroot/python/python/dist/src
In directory sc8-pr-cvs1:/tmp/cvs-serv25386

Modified Files:
	configure.in configure pyconfig.h.in 
Log Message:
FreeBSD 5.x has moved some library routines and typedefs outside the
scope of the _XOPEN_SOURCE and _POSIX_C_SOURCE symbols, including:
- getloadavg()
- typedefs for u_int, u_long, u_char, u_short, ushort & uint

These are now all defined under the control of a __BSD_VISIBLE symbol.

The lack of the typedefs causes several extension modules to build 
incorrectly or not at all, and is the cause of failures reported for
test_socket and test_tempfile on this platform
(see python-dev: 29/6/03, pieterb@gewis.nl, "Running tests on freebsd5")

This change does not appear to be needed in the 2.2 branch.


Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.419
retrieving revision 1.420
diff -C2 -d -r1.419 -r1.420
*** configure.in	28 Jun 2003 07:46:38 -0000	1.419
--- configure.in	2 Jul 2003 13:53:23 -0000	1.420
***************
*** 46,49 ****
--- 46,54 ----
  AC_DEFINE(_NETBSD_SOURCE, 1, [Define on NetBSD to activate all library features])
  
+ # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
+ # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
+ # them.
+ AC_DEFINE(__BSD_VISIBLE, 1, [Define on FreeBSD to activate all library features])
+ 
  define_xopen_source=yes
  

Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.408
retrieving revision 1.409
diff -C2 -d -r1.408 -r1.409
*** configure	28 Jun 2003 07:46:31 -0000	1.408
--- configure	2 Jul 2003 13:53:23 -0000	1.409
***************
*** 1,4 ****
  #! /bin/sh
! # From configure.in Revision: 1.418 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.53 for python 2.3.
--- 1,4 ----
  #! /bin/sh
! # From configure.in Revision: 1.419 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.53 for python 2.3.
***************
*** 909,913 ****
  # absolute.
  ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
--- 909,913 ----
  # absolute.
  ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
  ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
***************
*** 1266,1269 ****
--- 1266,1278 ----
  
  
+ # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
+ # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
+ # them.
+ 
+ cat >>confdefs.h <<\_ACEOF
+ #define __BSD_VISIBLE 1
+ _ACEOF
+ 
+ 
  define_xopen_source=yes
  
***************
*** 18442,18446 ****
  # absolute.
  ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
--- 18451,18455 ----
  # absolute.
  ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
  ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`

Index: pyconfig.h.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/pyconfig.h.in,v
retrieving revision 1.81
retrieving revision 1.82
diff -C2 -d -r1.81 -r1.82
*** pyconfig.h.in	14 Jun 2003 21:03:05 -0000	1.81
--- pyconfig.h.in	2 Jul 2003 13:53:25 -0000	1.82
***************
*** 830,833 ****
--- 830,836 ----
  #undef _NETBSD_SOURCE
  
+ /* Define on FreeBSD to activate all library features */
+ #undef __BSD_VISIBLE
+ 
  /* Define _OSF_SOURCE to get the makedev macro. */
  #undef _OSF_SOURCE