From owner-freebsd-bugs@FreeBSD.ORG Sun Jul 4 02:50:03 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 E02F9106566C for ; Sun, 4 Jul 2010 02:50:03 +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 B542E8FC19 for ; Sun, 4 Jul 2010 02:50:03 +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 o642o3FW010357 for ; Sun, 4 Jul 2010 02:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o642o3cP010356; Sun, 4 Jul 2010 02:50:03 GMT (envelope-from gnats) Date: Sun, 4 Jul 2010 02:50:03 GMT Message-Id: <201007040250.o642o3cP010356@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Andrew Reilly Cc: Subject: Re: 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: Sun, 04 Jul 2010 02:50:04 -0000 The following reply was made to PR bin/147175; it has been noted by GNATS. From: Andrew Reilly To: bug-followup@FreeBSD.org, areilly@bigpond.net.au Cc: Subject: Re: bin/147175: libhx509.so containes references to MD2_* but doesn't reference libcrypto.so, which has them Date: Sun, 4 Jul 2010 12:41:16 +1000 --MP_/GDaVaIp3j5kTHLp_jjRC=av Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Fixed! Patch attached. Turns out that to tell a shared lib about its dependencies, you need to add a DPADD and LDADD (perhaps only the latter) to the Makefile, as shown in the attached patch. Evolution-data-server and other ports that link against the gssapi-related libs now configure and build OK. Yay! -- Andrew --MP_/GDaVaIp3j5kTHLp_jjRC=av Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=libhx509.patch --- Makefile.orig 2008-05-07 23:53:04.000000000 +1000 +++ Makefile 2010-07-04 10:05:58.000000000 +1000 @@ -82,6 +82,9 @@ SRCS+=${GEN_ASN1} INCS+=${GEN_ASN1} +DPADD+= ${LIBCRYPTO} +LDADD+= -lcrypto + .ORDER: ${GEN} ${GEN_ASN1} ${GEN_OCSP} ocsp_asn1.h: ocsp.asn1 ../../tools/asn1_compile/asn1_compile --MP_/GDaVaIp3j5kTHLp_jjRC=av--