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
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).