From owner-freebsd-current Sat Apr 10 1:51: 9 1999 Delivered-To: freebsd-current@freebsd.org Received: from gratis.grondar.za (gratis.grondar.za [196.7.18.65]) by hub.freebsd.org (Postfix) with ESMTP id 8D61614E86; Sat, 10 Apr 1999 01:50:59 -0700 (PDT) (envelope-from mark@grondar.za) Received: from greenpeace.grondar.za (greenpeace.grondar.za [196.7.18.132]) by gratis.grondar.za (8.9.2/8.9.2) with ESMTP id KAA98564; Sat, 10 Apr 1999 10:48:45 +0200 (SAST) (envelope-from mark@grondar.za) Received: from grondar.za (localhost [127.0.0.1]) by greenpeace.grondar.za (8.9.3/8.9.3) with ESMTP id KAA93819; Sat, 10 Apr 1999 10:48:44 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <199904100848.KAA93819@greenpeace.grondar.za> To: jdp@freebsd.org, obrien@freebsd.org Cc: current@freebsd.org Subject: Libraries with library dependancies Date: Sat, 10 Apr 1999 10:48:37 +0200 From: Mark Murray Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi I've been helping somebody along with getting the new libcrypt going, and something has broken recently (post-egcs?), and I'm having a wee problem debugging it. Libcrypt uses routines out of libmd (MD[45]* and SHA*), and a while back (pre-egcs), it was possible to have an "LDADD+=-lmd" in libcrypt's Makefile and have anything using libcrypt also automagically pick up the -lmd dependancy requirement. This no longer seems to work: cc -O -pipe -I/usr/src/gnu/usr.bin/perl/miniperl/../../../../contrib/perl5 -I/usr/obj/usr/src/gnu/usr.bin/perl/miniperl -I/usr/obj/usr/src/tmp/usr/include -c /usr/src/gnu/usr.bin/perl/miniperl/../../../../contrib/perl5/miniperlmain.c cc -O -pipe -I/usr/src/gnu/usr.bin/perl/miniperl/../../../../contrib/perl5 -I/usr/obj/usr/src/gnu/usr.bin/perl/miniperl -I/usr/obj/usr/src/tmp/usr/include -static -o miniperl miniperlmain.o -lperl -lm -lcrypt /usr/obj/usr/src/tmp/usr/lib/libcrypt.a(crypt-shs.o): In function `crypt_shs': crypt-shs.o(.text+0x11): undefined reference to `SHA_Init' crypt-shs.o(.text+0x1f): undefined reference to `SHA_Update' crypt-shs.o(.text+0x3c): undefined reference to `SHA_Update' The "undefined references" are all in libmd which is listed as above in libcrypt's Makefile. I would hate to have to hunt down all usages of -lcrypt to add -lmd. Any ideas? M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message