Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 541204

Summary: sys-freebsd/freebsd-usbin-10.1: gssd fails to build with USE=kerberos
Product: Gentoo/Alt Reporter: henning.f
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED OBSOLETE    
Severity: normal CC: treecleaner
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: AMD64   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Deadline: 2019-10-11   
Attachments: A patch which solves the problem

Description henning.f 2015-02-24 06:30:06 UTC
When building freebsd-usbin with kerberos support, the gssd fails to build. 

--- gssd.o ---
In file included from /usr/include/gssapi/gssapi.h:277:0,
                 from gssd.c:51:
gssd.c:84:16: error: expected identifier or ‘(’ before ‘&’ token
 static gss_OID GSS_KRB5_SET_ALLOWABLE_ENCTYPES_X =
                ^
This problem comes from the fact that GSS_KRB5_SET_ALLOWABLE_ENCTYPES_X is already defined as:

/usr/include/gssapi/gssapi_oid.h:#define GSS_KRB5_SET_ALLOWABLE_ENCTYPES_X (&__gss_krb5_set_allowable_enctypes_x_oid_desc)

 * Searching for /usr/include/gssapi/gssapi_oid.h ... 
app-crypt/heimdal-1.5.3-r2 (/usr/include/gssapi/gssapi_oid.h)

Reproducible: Always

Steps to Reproduce:
1.USE="kerberos" emerge freebsd-usbin
2.
3.
Actual Results:  
Build fails

Expected Results:  
Package is installed
Comment 1 henning.f 2015-02-24 06:38:54 UTC
Created attachment 397362 [details, diff]
A patch which solves the problem

This seems to solve the problem. It should use the heimdal definition instead of the local one.

Another possible solution would be to rename the local variable to something else, but I think the introduction of this variable was more of a hack to begin with.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-09-11 12:14:28 UTC
sys-freebsd/* is now pmasked.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-10-11 15:18:02 UTC
sys-freebsd/* removed.