Bug 7469 - error: parse error before 'mbstate_t'
Summary: error: parse error before 'mbstate_t'
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.2.4
Hardware: Other Windows XP
: P3 normal
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
Depends on:
Reported: 2010-05-27 19:12 UTC by Chris Good (mail address dead)
Modified: 2020-01-19 21:21 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Chris Good (mail address dead) 2010-05-27 19:12:04 UTC
OS: AIX 5.3
gcc 4.0.0

To fix error:

Compiling passdb/pdb_nds.c
In file included from passdb/pdb_nds.c:25:
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/wchar.h:299: error: p
arse error before 'mbstate_t'
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/wchar.h:302: error: p
arse error before 'mbstate_t'
The following command failed:
gcc -I. -I/usr/local/samba-3.2.4/source  -O -D_SAMBA_BUILD_=3  -I/usr/local/samb
a-3.2.4/source/iniparser/src -Iinclude -I./include  -I. -I. -I./lib/replace -I./
lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H  -Iinclud
e -I./include -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddn
s -I./librpc -I./popt -I/opt/pware/include -DLDAP_DEPRECATED   -I/include -I/usr
/local/samba-3.2.4/source/lib -D_SAMBA_BUILD_=3 -O2 -c passdb/pdb_nds.c -o passd

Add to includes/includes.h :
        #ifndef MBSTATE_T
        #define MBSTATE_T
        typedef char * mbstate_t;      /* conversion state holder ISO C MSE */
Comment 1 Douglas Bagnall 2020-01-19 21:21:56 UTC
We no longer have any mbstate_t except in a third-party popt helper, so whatever was up is probably no longer up.

(Also AIX 5.3, gcc 4.0, 2010, are no longer up).