Build of port net/samba43 fails due to the error shown bewlow. [...] In file included from In file included from ../lib/addns/dnssock.c:26: In file included from ../lib/addns/dns.h:31: In file included from ../lib/replace/system/gssapi.h:47: ../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h:41:1: error: unknown type name 'GSSAPI_CPP_START' GSSAPI_CPP_START ^ ../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h:49:1: error: expected identifier or '(' extern GSSAPI_LIB_VARIABLE gss_OID_desc __gss_spnego_mechanism_oid_desc; ^ ../lib/addns/dnsrecord.c:24: In file included from ../lib/addns/dns.h:31: In file included from ../lib/replace/system/gssapi.h:47: ../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h:41:1: error: unknown type name 'GSSAPI_CPP_START' GSSAPI_CPP_START ^ ../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h:49:1: error: expected identifier or '(' extern GSSAPI_LIB_VARIABLE gss_OID_desc __gss_spnego_mechanism_oid_desc; ^ In file included from ../lib/addns/dnsmarshall.c:23: In file included from ../lib/addns/dns.h:31: In file included from ../lib/replace/system/gssapi.h:47: ../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h:41:1: error: unknown type name 'GSSAPI_CPP_START' GSSAPI_CPP_START
Works for me :) Well, I need more info about environment. What flags were used to compile, would be nice to enable DEBUG flag, what packages are installed in the system. I'd guess that there is an old version of samba4* laying around somewhere. Or, maybe, Heimdal or KRB5 is installed into the /usr/local/. Please, provide more info.
net/samba42 is, of course, already installed and is about to be replaced by net/samba43 - a very usual upgrade path! Also installed ist security/krb5 - I guess wireshark is relying on this package as others, I recall.
deleting first samba 4.2 solves the problem. This is obviosly not a very smooth update path.