The Samba-Bugzilla – Bug 5940
compiling libsmb fails on Solaris 10 update 5 (workaround)
Last modified: 2008-12-04 18:39:00 UTC
Building libsmb, the following files cause compilation errors:
The errors are mostly related to incomplete types, and are of the sort that generally indicate a problem with headers.
in the affected files, switch the order of inclusion of libsmb_internal.h and libsmbclient.h so that libsmb_internal.h comes first.
I screwed up, this appears to have been due to pollution of the include path from a previous samba installation.