gcc -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"libexchangemapi\" -I../.. -I../.. -g -O2 -DHAVE_IMMEDIATE_STRUCTURES=1 -I/opt/samba4/include -DORBIT2=1 -pthread -I/usr/include/libxml2 -I/usr/include/libbonobo-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/gconf/2 -I/usr/include/nspr4 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wno-sign-compare -MT exchange-mapi-folder.lo -MD -MP -MF .deps/exchange-mapi-folder.Tpo -c exchange-mapi-folder.c -fPIC -DPIC -o .libs/exchange-mapi-folder.o
In file included from /opt/samba4/include/ndr.h:290,
from /opt/samba4/include/dcerpc.h:28,
from /usr/include/libmapi/libmapi.h:46,
from exchange-mapi-folder.c:27:
/opt/samba4/include/ndr/proto.h:77: error: expected declaration specifiers or '...' before 'comparison_fn_t'
In file included from exchange-mapi-folder.c:28:
exchange-mapi-folder.h:50: warning: type qualifiers ignored on function return type
exchange-mapi-folder.h:51: warning: type qualifiers ignored on function return type
exchange-mapi-folder.h:52: warning: type qualifiers ignored on function return type
exchange-mapi-folder.h:53: warning: type qualifiers ignored on function return type
exchange-mapi-folder.c:82: warning: type qualifiers ignored on function return type
exchange-mapi-folder.c:88: warning: type qualifiers ignored on function return type
exchange-mapi-folder.c:94: warning: no previous prototype for 'exchange_mapi_folder_get_type'
exchange-mapi-folder.c:100: warning: type qualifiers ig