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 movement
Recipients loewis, movement, zooko
Date 2009-02-17.14:30:30
SpamBayes Score 2.9538177e-07
Marked as misclassified No
Message-id <1234881036.08.0.64629928579.issue1759169@psf.upfronthosting.co.za>
In-reply-to
Content
> However, experience tells that systems can break in surprising ways
> if the system headers are compiled with different defines.

This is indeed a reasonable concern (for which the best solution is
dropping the defines in the Python compile).

> I do feel this restrictiveness of the header files (wrt. C99) is
> arbitrary, and has no use.

Unfortunately, neither you, I, nor Sun can do anything at all about this
fact. I've filed an RFE for you:

http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6806390
feature_tests.h could be laxer about C99

(It'll take a while to be visible externally.)

Even if this happens, though, it's strictly a workaround: it is still a
bug that Python sets these defines on Solaris: they do not mean what the
Python build thinks they mean. It's effectively a Linux-ism.

> setting _XOPEN_SOURCE had worked fine since Solaris 7.

The particular change we're talking about (C99) went back in 2003:

http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4760794
4760794 UNIX03: sys/feature_tests.h updates required to support SUSv3
and c99

so Python has been broken by this for all of the Solaris 10 lifecycle.
History
Date User Action Args
2009-02-17 14:30:36movementsetrecipients: + movement, loewis, zooko
2009-02-17 14:30:36movementsetmessageid: <1234881036.08.0.64629928579.issue1759169@psf.upfronthosting.co.za>
2009-02-17 14:30:33movementlinkissue1759169 messages
2009-02-17 14:30:30movementcreate