From owner-freebsd-bugs@FreeBSD.ORG Sat May 29 06:30:08 2010 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 3E1381065673 for ; Sat, 29 May 2010 06:30:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F24CB8FC15 for ; Sat, 29 May 2010 06:30:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4T6U7pn005039 for ; Sat, 29 May 2010 06:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4T6U7rR005034; Sat, 29 May 2010 06:30:07 GMT (envelope-from gnats) Resent-Date: Sat, 29 May 2010 06:30:07 GMT Resent-Message-Id: <201005290630.o4T6U7rR005034@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, Andrew Reilly Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F7E91065674 for ; Sat, 29 May 2010 06:24:50 +0000 (UTC) (envelope-from areilly@bigpond.net.au) Received: from nschwmtas04p.mx.bigpond.com (nschwmtas04p.mx.bigpond.com [61.9.189.146]) by mx1.freebsd.org (Postfix) with ESMTP id CB49D8FC14 for ; Sat, 29 May 2010 06:24:49 +0000 (UTC) Received: from nschwotgx01p.mx.bigpond.com ([124.188.161.100]) by nschwmtas04p.mx.bigpond.com with ESMTP id <20100529062447.NBPW11569.nschwmtas04p.mx.bigpond.com@nschwotgx01p.mx.bigpond.com> for ; Sat, 29 May 2010 06:24:47 +0000 Received: from duncan.reilly.home ([124.188.161.100]) by nschwotgx01p.mx.bigpond.com with ESMTP id <20100529062447.MRHM3673.nschwotgx01p.mx.bigpond.com@duncan.reilly.home> for ; Sat, 29 May 2010 06:24:47 +0000 Message-Id: <1275114287.82624@duncan.reilly.home> Date: Sat, 29 May 2010 16:24:47 +1000 From: Andrew Reilly To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/147175: libhx509.so containes references to MD2_* but doesn't reference libcrypto.so, which has them X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andrew Reilly List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 May 2010 06:30:08 -0000 >Number: 147175 >Category: bin >Synopsis: libhx509.so containes references to MD2_* but doesn't reference libcrypto.so, which has them >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 29 06:30:07 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Andrew Reilly >Release: FreeBSD 9.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD duncan.reilly.home 9.0-CURRENT FreeBSD 9.0-CURRENT #6: Sat May 22 10:57:32 EST 2010 root@duncan.reilly.home:/nb/obj/nb/src/sys/DUNCAN amd64 >Description: When trying to build evolution-data-server (for example: fetchmail also has this problem), or anything that depends on libhx509.so, the build stops thusly: /usr/lib/libhx509.so: undefined reference to `MD2_Init' /usr/lib/libhx509.so: undefined reference to `MD2_Final' /usr/lib/libhx509.so: undefined reference to `MD2_Update' because libhx509.so does have undefined references to those functions. Previously, I've worked around this by nuking reference to MD2 from libhx509, on the grounds that it is obsolete anyway. However I have noticed that libcrypto does provide these functions, and the library config line from krb5-config includes it. So why are they not being picked up? I don't know much about shared libraries, but I ran ldd on /usr/lib/libhx509.so, and it says only: libhx509.so: libc.so.7 => /lib/libc.so.7 (0x800648000) could it be that the shared lib version of libhx509.so needs to refer to /lib/libcrypto.so.6 explicitly, even though it is listed on the compiler command line like this? cc -o conftest -O2 -pipe -g -DLDAP_DEPRECATED -fno-strict-aliasing -I/usr/local/include -I/usr/local/include/db41 -L/usr/local/lib -pthread conftest.c -L/usr/local/lib -L/usr/lib -lgssapi -lheimntlm -lkrb5 -lhx509 -lcom_err -lcrypto -lasn1 -lroken -lcrypt >How-To-Repeat: Compile databases/evolution-data-server with "NO_KERBEROS" defined in make.conf and line 16071 of ports/databases/work/evolution-data-server-2.30.1/config changed thusly: heimlibs="`/usr/bin/krb5-config gssapi --libs`" and the next few lines changed thusly (I haven't figured out which is the "right" one): mitlibs="$heimlibs" sunlibs="$heimlibs" Plenty of other builds that depend on gssapi fail the same way, though. Fetchmail is the example I used in PR: ports/145769. >Fix: Working on it. Trying to figure out how to add dependencies to shared libraries... >Release-Note: >Audit-Trail: >Unformatted: