I'm having trouble with the samba4 headers, in that they have structure members called "private". Even with extern C{} linkage, that is still a C++ keyword.
Created attachment 2693 [details] patch fixing (part of?) the issue Patch that converts from void*private; to void*private_data;
fixed in rev 22944