[Python-Dev] Python 2.3b1 _XOPEN_SOURCE value from configure.in

Martin v. Löwis martin@v.loewis.de
12 May 2003 23:04:06 +0200


Harri Pasanen <harri.pasanen@trema.com> writes:

> So when compiling boost-python, there are zillion warning messages 
> about redefinition of  _XOPEN_SOURCE.
[...]
> Is this a problem people are aware of, and is someone fixing it as I 
> write, or is a volunteer needed?

I'm not aware of this problem specifically, but of the problem in
general. I'd claim that this is a bug in Boost. Python.h should be the
first header file included, before any header file from the
application or the system, so it gets to define the value of
_XOPEN_SOURCE. This is documented in the extensions manual.

Of course, it would be sufficient to set it to a smaller value on
systems that support only older X/Open issues; I think I'd accept a
patch that changes this (if the patch is correct, of course).

Regards,
Martin