Bug 210351 - Mk/Uses/gssapi.mk -- when using MIT-kerberos -lk5crypto not part of GSSAPILIBS
Summary: Mk/Uses/gssapi.mk -- when using MIT-kerberos -lk5crypto not part of GSSAPILIBS
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Hiroki Sato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-17 16:32 UTC by Mikhail Teterin
Modified: 2016-06-17 16:32 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Teterin freebsd_committer 2016-06-17 16:32:15 UTC
I had to add the explicit -lk5crypto to the list of libraries required for building my new net-mgmt/adcli against MIT-kerberos, because without it the build would die thus:

/usr/bin/ld: undefined reference to symbol `krb5_c_string_to_key' (try adding -lk5crypto)
/opt/lib/libk5crypto.so.3.1: could not read symbols: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)

This puzzles me, because the library is used by MIT's libkrb5.so already...

Not sure, whether the fault is with gssapi.mk or the security/krb5-114 itself somehow, so just raising awareness here...

I suspect, gssapi.mk is wrong, because it lists ``-lkrb5 -lgssapi_krb5'' in GSSAPILIBS, whereas krb5-installed ${PREFIX}/bin/krb5-config --libs lists ``-lkrb5 -lk5crypto -lcom_err'' instead.