[ python-Bugs-1045893 ] warning '"_POSIX_C_SOURCE" redefined' when include Python.h

SourceForge.net noreply at sourceforge.net
Wed Oct 13 07:06:03 CEST 2004


Bugs item #1045893, was opened at 2004-10-13 14:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1045893&group_id=5470

Category: Extension Modules
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Eugene Sizikov (eugene_beast)
Assigned to: Nobody/Anonymous (nobody)
Summary: warning '"_POSIX_C_SOURCE" redefined' when include Python.h

Initial Comment:
"""
In file included from /usr/include/python2.3/Python.h:8,
                 from script.h:21,
                 from server.cpp:23:
/usr/include/python2.3/pyconfig.h:847:1: warning:
"_POSIX_C_SOURCE" redefined
In file included from
/usr/lib/gcc/i386-redhat-linux/3.4.0/../../../../include/c++/3.4.0/i386-redhat-linux/bits/os_defines.h:39,
                 from
/usr/lib/gcc/i386-redhat-linux/3.4.0/../../../../include/c++/3.4.0/i386-redhat-linux/bits/c++config.h:35,
                 from
/usr/lib/gcc/i386-redhat-linux/3.4.0/../../../../include/c++/3.4.0/iostream:44,
                 from server.cpp:18:
/usr/include/features.h:131:1: warning: this is the
location of the previous definition
""'

The above message is shown whenever program (extending
or embedding python with C/C++) using Python.h was
compilled.

OS: Fedora Core 2
compiller: GCC 3.4.0
libc: glibc-2.3
Python: 2.3.3

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

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


More information about the Python-bugs-list mailing list