The following options combination: ACL_SUPPORT AIO_SUPPORT AVAHI CUPS EXP_MODULES FAM GSSAPI_NONE NLS POPT PTHREADPOOL SWAT SYSLOG UTMP WINBIND results in a compile-time errors stemming from a variety of LDAP_* defines being, well, undefined. Disabling EXP_MODULES helps -- the port should be doing this automatically and/or advise the user of problem.
Closing, as net/samba36 expired and is removed from the tree: https://svnweb.freebsd.org/ports?view=revision&revision=415323 Please reopen if you think this was a mistake.