Bug 7469 - error: parse error before 'mbstate_t'
error: parse error before 'mbstate_t'
Status: NEW
Product: Samba 3.2
Classification: Unclassified
Component: Build environment
3.2.4
Other Windows XP
: P3 normal
: ---
Assigned To: Björn Jacke
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-27 19:12 UTC by Chris Good
Modified: 2010-05-27 19:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Good 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
b/pdb_nds.o

Add to includes/includes.h :
        #ifndef MBSTATE_T
        #define MBSTATE_T
        typedef char * mbstate_t;      /* conversion state holder ISO C MSE */
        #endif