Building libsmb, the following files cause compilation errors: libsmb_cache.c libsmb_context.c libsmb_dir.c libsmb_file.c libsmb_misc.c libsmb_path.c libsmb_printjob.c libsmb_server.c libsmb_stat.c libsmb_xattr.c libsmb_setget.c The errors are mostly related to incomplete types, and are of the sort that generally indicate a problem with headers. WORKAROUND: 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.