From owner-freebsd-bugs@FreeBSD.ORG Sat May 16 01:50:01 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC09C1065676 for ; Sat, 16 May 2009 01:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8FFEF8FC18 for ; Sat, 16 May 2009 01:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n4G1o1qZ095804 for ; Sat, 16 May 2009 01:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4G1o1iL095803; Sat, 16 May 2009 01:50:01 GMT (envelope-from gnats) Resent-Date: Sat, 16 May 2009 01:50:01 GMT Resent-Message-Id: <200905160150.n4G1o1iL095803@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Ryan T.Dean" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C4C31065673 for ; Sat, 16 May 2009 01:45:49 +0000 (UTC) (envelope-from rtdean@noisy.cytherianage.net) Received: from noisy.cytherianage.net (noisy.cytherianage.net [209.222.140.14]) by mx1.freebsd.org (Postfix) with ESMTP id B10428FC1C for ; Sat, 16 May 2009 01:45:48 +0000 (UTC) (envelope-from rtdean@noisy.cytherianage.net) Received: (qmail 36634 invoked by uid 1000); 16 May 2009 01:19:07 -0000 Message-Id: <20090516011907.36633.qmail@noisy.cytherianage.net> Date: 16 May 2009 01:19:07 -0000 From: "Ryan T.Dean" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/134569: [heimdal] krb5-config does not return all libs necessary when linking admin servers X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Ryan T.Dean" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 May 2009 01:50:02 -0000 >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: