Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541204 - sys-freebsd/freebsd-usbin-10.1: gssd fails to build with USE=kerberos
Summary: sys-freebsd/freebsd-usbin-10.1: gssd fails to build with USE=kerberos
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: AMD64 FreeBSD
: Normal normal (vote)
Deadline: 2019-10-11
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2015-02-24 06:30 UTC by henning.f
Modified: 2019-10-11 15:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
A patch which solves the problem (freebsd-usbin-10.1-gssd.patch,482 bytes, patch)
2015-02-24 06:38 UTC, henning.f
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.