Bug 199650 - ftp/curl build fails with GSSAPI_BASE on a system with WITHOUT_KERBEROS=true and WITH_GSSAPI=true
Summary: ftp/curl build fails with GSSAPI_BASE on a system with WITHOUT_KERBEROS=true ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-23 19:47 UTC by Philippe Michel
Modified: 2015-06-01 16:49 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Michel 2015-04-23 19:47:41 UTC
curl 7.42 build fails at configure stage if the following options are used :

GSSAPI_BASE for the port
WITHOUT_KERBEROS=true and WITH_GSSAPI=true for the base system

According to the src.conf man page, the latter is a legitimate combination but curl seems to assume that gssapi implies kerberos.

From config.log :

configure:4218: checking whether the C compiler works
configure:4240: cc -I/usr/include -O2 -pipe -march=core2  -fstack-protector -fno-strict-aliasing -I/usr/include -I/usr/include -L/usr/lib  -L/usr/lib -L/usr/lib -Wl,-rpath,/usr/lib:/usr/local/lib -L/usr/lib -Wl,-rpath,/usr/lib:/usr/local/lib -fstack-protector conftest.c -lkrb5 -lgssapi -lgssapi_krb5 -lkrb5 -lgssapi -lgssapi_krb5 >&5
/usr/bin/ld: cannot find -lkrb5
cc: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 1 Po-Chuan Hsieh freebsd_committer freebsd_triage 2015-05-01 10:30:11 UTC
The default configuration is "GSSAPI w/ KERBEROS in base system and GSSAPI_BASE for ftp/curl". 
You cannot use GSSAPI_BASE if you built base system with WITHOUT_KERBEROS defined.
I would change GSSAPI_BASE_DESC to "GSSAPI support via base system (Kerberos required)" to make it more clear.
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2015-06-01 16:49:18 UTC
GSSAPI_BASE_DESC changed to "GSSAPI support via base system (Kerberos required)" in r385944.