bin/134569: [heimdal] krb5-config does not return all libs necessary when linking admin servers

Ryan T.Dean rtdean at cytherianage.net
Sat May 16 01:50:02 UTC 2009


>Number:         134569
>Category:       bin
>Synopsis:       [heimdal] krb5-config does not return all libs necessary when linking admin servers
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 16 01:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Ryan T. Dean
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD crashtestdummy.cytherianage.net 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Mon May 11 23:14:21 UTC 2009 root at crashtestdummy.cytherianage.net:/usr/obj/usr/src/sys/GENERIC i386


>Description:

'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

>How-To-Repeat:


Attempt to link something (such as smbk5pwd) which required kerberos admin server libraries using 'krb5-config --libs
kadm-server'

>Fix:

change 'krb5-config --libs kadm-server' to return '-lhdb' in the list

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list