[Python-bugs-list] [ python-Bugs-793764 ] pyconfig.h defines
_POSIX_C_SOURCE, conflicting with feature
SourceForge.net
noreply at sourceforge.net
Sun Aug 31 11:26:07 EDT 2003
Bugs item #793764, was opened at 2003-08-23 16:19
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=793764&group_id=5470
Category: Installation
Group: Python 2.3
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Matthias Klose (doko)
Assigned to: Nobody/Anonymous (nobody)
Summary: pyconfig.h defines _POSIX_C_SOURCE, conflicting with feature
Initial Comment:
[forwarded from http://bugs.debian.org/206805]
the installed include/python2.3/pyconfig.h defines
_POSIX_C_SOURCE, which leaks
down into packages built against python-2.3. AFAIK,
_POSIX_C_SOURCE
is reserved for use by the C library, and is of course
defined in
/usr/include/features.h.
Example excerpt from a build log:
In file included from /usr/include/python2.3/Python.h:8,
from sg_config.h:22,
from sg.h:29,
from sg_project_autosave.c:26:
/usr/include/python2.3/pyconfig.h:844:1: Warnung:
"_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdlib.h:25,
from sg_project_autosave.c:19:
/usr/include/features.h:171:1: Warnung: this is the
location of the previous definition
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2003-08-31 19:26
Message:
Logged In: YES
user_id=21627
_POSIX_C_SOURCE is not reserved for the C library, but for
the application, see
http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap02.html
(section "Strictly Conforming POSIX Application")
A conforming POSIX application *must* define
_POSIX_C_SOURCE, so if your C library also defines it, it is
a bug in the C library.
Most likely, the author failed to include Python.h before
other system headers, as required per
http://www.python.org/doc/current/api/includes.html
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=793764&group_id=5470
More information about the Python-bugs-list
mailing list