classification
Title: mbstate_t requires _INCLUDE__STDC_A1_SOURCE
Type: compile error Stage: resolved
Components: Versions: Python 3.4, Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, python-dev, trent
Priority: low Keywords: patch

Created on 2013-12-07 20:59 by christian.heimes, last changed 2013-12-08 14:21 by python-dev. This issue is now closed.

Files
File name Uploaded Description Edit
issue19922.patch christian.heimes, 2013-12-07 21:47 review
Messages (4)
msg205486 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2013-12-07 20:59
On HP-UX mbstate_t for mbrtowc() is only available when _INCLUDE__STDC_A1_SOURCE is defined:

http://buildbot.python.org/all/builders/PA-RISC%20HP-UX%2011iv2%20%5BSB%5D%203.x/builds/2543/steps/compile/logs/stdio

	cc -Ae -c  -O  -O   -I. -IInclude -I./Include    -DPy_BUILD_CORE -o Objects/unicodeobject.o Objects/unicodeobject.c
cc: "Objects/unicodeobject.c", line 3493: error 1000: Unexpected symbol: "mbs".
cc: "Objects/unicodeobject.c", line 3493: error 1588: "mbstate_t" undefined.
cc: "Objects/unicodeobject.c", line 3497: error 1588: "mbs" undefined.
cc: "Objects/unicodeobject.c", line 3497: warning 563: Argument #1 is not the correct type.
cc: "Objects/unicodeobject.c", line 3497: error 1594: The sizeof operator cannot be applied to types with unknown size.
msg205494 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2013-12-07 22:14
http://www.mail-archive.com/autoconf-patches@gnu.org/msg04244.html
http://modman.unixdev.net/?sektion=3&page=wcsftime&manpath=HP-UX-11.11
msg205495 - (view) Author: Roundup Robot (python-dev) Date: 2013-12-07 22:39
New changeset d8cfc7106f41 by Christian Heimes in branch 'default':
Issue #19922: define _INCLUDE__STDC_A1_SOURCE in HP-UX to include mbstate_t
http://hg.python.org/cpython/rev/d8cfc7106f41
msg205565 - (view) Author: Roundup Robot (python-dev) Date: 2013-12-08 14:21
New changeset 4221d5d9ac84 by Christian Heimes in branch 'default':
Attempt to fix OpenIndiana build issue introduced by #19922
http://hg.python.org/cpython/rev/4221d5d9ac84
History
Date User Action Args
2013-12-08 14:21:16python-devsetmessages: + msg205565
2013-12-08 00:50:08christian.heimessetstatus: open -> closed
resolution: fixed
stage: needs patch -> resolved
2013-12-07 22:39:41python-devsetnosy: + python-dev
messages: + msg205495
2013-12-07 22:14:53christian.heimessetmessages: + msg205494
2013-12-07 21:47:03christian.heimessetfiles: + issue19922.patch
keywords: + patch
2013-12-07 20:59:38christian.heimescreate