This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients neologix, rosslagerwall, rpointel, vstinner
Date 2011-08-30.08:08:23
SpamBayes Score 3.8905347e-07
Marked as misclassified No
Message-id <4E5C9A6D.2080409@haypocalc.com>
In-reply-to <CAH_1eM2285JQNWgSkfQicwJ8yq_hNpABb1HCCBU1NsAV1p4hkw@mail.gmail.com>
Content
>> I tried "AC_DEFINE(_POSIX_C_SOURCE, 200809L, Define to activate features from IEEE Stds 1003.1-2008)" but it doesn't work.
>
> You mean that the patch you attached doesn't work, correct?

I ran autoconf, re-ran configure and it doesn't work. You can test 
without touching configure.in: edit pyconfig.h directly.

On Linux, all "features" flags are defined/undefined in 
/usr/include/features.h. Depending on _POSIX_C_SOURCE, _XOPEN_SOURCE, 
_BSD_SOURCE, ..., you get a different POSIX level.

For example:

/* If _GNU_SOURCE was defined by the user, turn on all the other 
features.  */
#ifdef _GNU_SOURCE
# undef  _ISOC99_SOURCE
# define _ISOC99_SOURCE	1
# undef  _POSIX_SOURCE
# define _POSIX_SOURCE	1
# undef  _POSIX_C_SOURCE
# define _POSIX_C_SOURCE	200809L
# undef  _XOPEN_SOURCE
# define _XOPEN_SOURCE	700
# ...
#endif

I suppose that there is a conflict between Python's _POSIX_C_SOURCE and 
other defines related to the POSIX level.
History
Date User Action Args
2011-08-30 08:08:24vstinnersetrecipients: + vstinner, neologix, rosslagerwall, rpointel
2011-08-30 08:08:24vstinnerlinkissue12852 messages
2011-08-30 08:08:23vstinnercreate