Bug 134569 - [heimdal] krb5-config(1) does not return all libs necessary when linking admin servers
Summary: [heimdal] krb5-config(1) does not return all libs necessary when linking admi...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 8.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-16 02:50 UTC by Ryan T. Dean
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan T. Dean 2009-05-16 02:50:01 UTC
'krb5-config --libs kadm-server' does not return a list of libraries sufficient for linking programs.  More specifically,
libkadm5srv.so requires symbols from libhdb.so, and -lhdb is not returned by krb5-config.

I noticed this when attempting to compile the smbk5pwd module from OpenLDAP using 'krb5-config --libs kadm-server'; the resulting
module would not load, bring slapd down, and return this error:

/libexec/ld-elf.so.1: /usr/lib/libkadm5srv.so.10: Undefined symbol "hdb_get_dbinfo"

Manually adding -lhdb when linking the module solved the problem

Fix: 

change 'krb5-config --libs kadm-server' to return '-lhdb' in the list
How-To-Repeat: 

Attempt to link something (such as smbk5pwd) which required kerberos admin server libraries using 'krb5-config --libs
kadm-server'
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:52 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped