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

SourceForge.net noreply at sourceforge.net
Tue Oct 19 21:39:16 CEST 2004


Bugs item #1045893, was opened at 2004-10-13 07:06
Message generated for change (Comment added) made by loewis
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: Closed
>Resolution: Invalid
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

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

>Comment By: Martin v. Löwis (loewis)
Date: 2004-10-19 21:39

Message:
Logged In: YES 
user_id=21627

This is a bug in your program. See

http://docs.python.org/api/includes.html

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

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