Package: python2.4-dev
Version: 2.4.2-2
Severity: normal

The installed include/python2.4/pyconfig.h file, included e.g. from
include/python2.4/Python.h clobbers the macro space with defining e.g.
_POSIX_C_SOURCE, which results in a verbose compiler warning with gcc:

In file included from /usr/include/python2.4/Python.h:8,
<snip include stack rest>
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from 
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/os_defines.h:39,
                 from 
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/c++config.h:35,
                 from 
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/utility:65,
<snip include stack rest>
/usr/include/features.h:150:1: warning: this is the location of the previous 
definition

These macros are for _building_ libpython. In installed form, they should
_never_ blindly override what an application programmer specifies.
But that's what #include <Python.h> currently does.

Proposed solution: strip build-related macro-definitions on installation.

No other header file uses that define:
$ grep -R _POSIX /usr/include/python2.4
/usr/include/python2.4/pyconfig.h:/* #undef HAVE_BROKEN_POSIX_SEMAPHORES */
/usr/include/python2.4/pyconfig.h:#define _POSIX_C_SOURCE 200112L
/usr/include/python2.4/pyconfig.h:/* #undef _POSIX_THREADS */


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages python2.4-dev depends on:
ii  python2.4                     2.4.2-2    An interactive high-level 
object-o

python2.4-dev recommends no packages.

-- no debconf information

-- 
Marc Mutz -- [EMAIL PROTECTED], [EMAIL PROTECTED]
Klarälvdalens Datakonsult AB, Platform-independent software solutions


Reply via email to