Skip site navigation (1)Skip section navigation (2)
Date:      16 May 2009 01:19:07 -0000
From:      "Ryan T.Dean" <rtdean@cytherianage.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/134569: [heimdal] krb5-config does not return all libs necessary when linking admin servers
Message-ID:  <20090516011907.36633.qmail@noisy.cytherianage.net>
Resent-Message-ID: <200905160150.n4G1o1iL095803@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090516011907.36633.qmail>