[Patches] [ python-Patches-1016224 ] configure.in change to allow compilation on AIX 5

SourceForge.net noreply at sourceforge.net
Wed Aug 25 21:32:28 CEST 2004


Patches item #1016224, was opened at 2004-08-25 19:32
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1016224&group_id=5470

Category: Build
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Trent Mick (tmick)
Assigned to: Martin v. Löwis (loewis)
Summary: configure.in change to allow compilation on AIX 5

Initial Comment:
A build of the current Python-CVS will fail on the
_bsddb module build (well, the _bsddb module build will
fail and the setup.py will ignore it and continue) on
AIX 5 with the following error:

    building '_bsddb' extension
    cc_r -DNDEBUG -O -I.../libprefix/include -I.
-I./Include -I.../python/Include -I.../python -c
.../python/Modules/_bsddb.c -o
build/temp.aix-5.1-2.4/_bsddb.o
    "./pyconfig.h", line 832.9: 1506-236 (W) Macro name
_XOPEN_SOURCE has been redefined.
    "./pyconfig.h", line 832.9: 1506-358 (I)
"_XOPEN_SOURCE" is defined on line 89 of
/usr/include/standards.h.
    "/usr/include/wchar.h", line 290.68: 1506-046 (S)
Syntax error. (wcsnrtombs)
    "/usr/include/wchar.h", line 293.68: 1506-046 (S)
Syntax error. (mbsnrtowcs)

error lines in /usr/include/wchar.h are the following:

    extern size_t wcsnrtombs(char *, const wchar_t **,
size_t, size_t, mbstate_t *);
    extern size_t mbsnrtowcs(wchar_t *, const char **,
size_t, size_t, mbstate_t *);

The problem is that mbstate_t is only defined if
_XOPEN_SOURCE is 500. Without the follow configure[.in]
change Python will define it to be 600.

This Python patch did the same thing for AIX 4:
   
http://sourceforge.net/tracker/index.php?func=detail&aid=836434&group_id=5470&atid=305470


I will upload a patch to configure.in.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1016224&group_id=5470


More information about the Patches mailing list