Bug 204912

Summary: net/samba43: error: unknown type name 'GSSAPI_CPP_START'
Product: Ports & Packages Reporter: O. Hartmann <ohartmann>
Component: Individual Port(s)Assignee: Timur I. Bakeyev <timur>
Status: Closed Overcome By Events    
Severity: Affects Many People Flags: bugzilla: maintainer-feedback? (timur)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description O. Hartmann 2015-11-30 11:55:00 UTC
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
Comment 1 Timur I. Bakeyev freebsd_committer freebsd_triage 2015-11-30 12:33:04 UTC
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.
Comment 2 O. Hartmann 2015-11-30 14:03:37 UTC
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.
Comment 3 O. Hartmann 2015-11-30 14:21:44 UTC
deleting first samba 4.2 solves the problem. This is obviosly not a very smooth update path.