I'm encountering the following when doing
./configure --prefix=/opt/samba-4.0.0a1 --enable-swig-perl; make
Swigify mapi.i
/usr/bin/swig -Wall -Werror -perl5 mapi.i
cstring.i not implemented for this target
mapi.i:46: Warning(302): Identifier 'SPropTagArray' redefined (ignored),
mapi.i:45: Warning(302): previous definition of 'SPropTagArray'.
mapi.i:49: Warning(302): Identifier 'SPropTagArray' redefined (ignored),
mapi.i:45: Warning(302): previous definition of 'SPropTagArray'.
mapi.i:75: Warning(302): Identifier 'mapi_object' redefined (ignored),
mapi.i:74: Warning(302): previous definition of 'mapi_object'.
make[1]: *** [mapi_wrap.c] Error 6
I see that if I take out the "-Werror", things continue, but...
Compiling mapi_wrap.c
gcc `perl -MExtUtils::Embed -e ccopts` -D_SAMBA_UTIL_H_ -Duint_t="unsigned
int" -DHAVE_IMMEDIATE_STRUCTURES=1 -I/opt/samba- 4.0.0a1/include
-DHAVE_IMMEDIATE_STRUCTURES=1 -I/opt/samba-4.0.0a1/include
-DHAVE_IMMEDIATE_STRUCTURES=1 -I/opt/samba-4.0.0a1/include -I../../
-DDEFAULT_LDIF=\"/setup\" -c mapi_wrap.c -o mapi_wrap.o
In file included from /opt/samba- 4.0.0a1/include/ndr.h:288,
from /opt/samba-4.0.0a1/include/dcerpc.h:28,
from /opt/samba-4.0.0a1/include/libmapi/libmapi.h:47,
from mapi_wrap.c:1040:
/opt/samba- 4.0.0a1/include/ndr/proto.h:162: error: syntax error before
'NTTIME'
/opt/samba-4.0.0a1/include/ndr/proto.h:163: error: syntax error before
'NTTIME'
/opt/samba-4.0.0a1/include/ndr/proto.h:164: error: syntax error before
'NTTIME'
/opt/samba-4.0.0a1/include/ndr/proto.h:165: error: syntax error before
'NTTIME'
/opt/samba-4.0.0a1/include/ndr/proto.h:166: error: syntax error before
'NTTIME'
/opt/samba-4.0.0a1/include/ndr/proto.h:167: error: syntax error before
'NTTIME'
/opt/samba-4.0.0a1/include/ndr/proto.h:190: error: syntax error before
'NTTIME'
/opt/samba-4.0.0a1/include/ndr/proto.h:191: error: syntax error before
'NTTIME'
/opt/samba-4.0.0a1/include/ndr/proto.h:192: error: syntax error before
'NTTIME'
mapi_wrap.c: In function '_wrap_set_SPropTagArray':
mapi_wrap.c:1205: error: syntax error before '%' token
mapi_wrap.c:1206: error: 'temp' undeclared (first use in this function)
mapi_wrap.c:1206: error: (Each undeclared identifier is reported only once
mapi_wrap.c:1206: error: for each function it appears in.)
mapi_wrap.c:1209: error: 'SPropTagArray' undeclared (first use in this
function)
mapi_wrap.c: In function '_wrap_val_SPropTagArray':
mapi_wrap.c:1218: error: 'SPropTagArray' undeclared (first use in this
function)
mapi_wrap.c: In function '_wrap_set_mapi_object':
mapi_wrap.c:1227: error: syntax error before '%' token
mapi_wrap.c:1228: error: 'temp' undeclared (first use in this function)
mapi_wrap.c:1231: error: 'mapi_object' undeclared (first use in this
function)
mapi_wrap.c: In function '_wrap_val_mapi_object':
mapi_wrap.c:1240: error: 'mapi_object' undeclared (first use in this
function)
make[1]: *** [mapi_wrap.o] Error 1
What am I doing wrong? This is on Ubuntu-6.06, if that makes any difference.
Andrew
_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel