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.

classification
Title: solaris 10 should not define _XOPEN_SOURCE_EXTENDED
Type: Stage:
Components: Build Versions: Python 2.4
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: loewis, slashlib
Priority: normal Keywords: patch

Created on 2005-06-27 00:32 by slashlib, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pyconfigure.diff slashlib, 2005-06-27 00:32 patch for configure.in
Messages (2)
msg48523 - (view) Author: Bill Clarke (slashlib) Date: 2005-06-27 00:32
on Solaris 10, defining _XOPEN_SOURCE_EXTENDED implies
a maximum _XPG specification of _XPG4v2.  what we want
is _XPG5.

note: see also bug 1116722
<https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1116722&group_id=5470>,
_XOPEN_SOURCE must be 500 for Solaris 10.

the effect of this bug is that we cannot build python
modules with g++.  e.g., with this file:
"""
#include "Python.h"
#include <cwchar>
""""
you get errors like this:
"""
$ g++ -m64 -I/usr/local/64/include/python2.4 -c test.cc
In file included from
/usr/local/64/include/python2.4/Python.h:8,
                 from test.cc:1:
/usr/local/64/include/python2.4/pyconfig.h:844:1:
warning: "_XOPEN_SOURCE" redefined
:84:1: warning: this is the location of the previous
definition
In file included from test.cc:2:
[...]../include/c++/3.4.4/cwchar:145: error: `::btowc'
has not been declared
[...]../include/c++/3.4.4/cwchar:150: error: `::fwide'
has not been declared
...
"""

a patch for configure.in (against 2.4.1) is attached to
fix this.
msg48524 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2005-11-26 11:39
Logged In: YES 
user_id=21627

Thanks for the patch. Committed as 41545 and 41546.

It complained to me that XPG6 requires a C99 compile, hence
I limited _XOPEN_SOURCE to 500 as well.
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 42129
2005-06-27 00:32:46slashlibcreate