From owner-freebsd-current Sun Sep 20 11:06:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA04503 for freebsd-current-outgoing; Sun, 20 Sep 1998 11:06:08 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from yonge.cs.toronto.edu (yonge.cs.toronto.edu [128.100.2.11]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA04498 for ; Sun, 20 Sep 1998 11:06:05 -0700 (PDT) (envelope-from dholland@cs.toronto.edu) Received: from qew.cs.toronto.edu ([128.100.2.15]) by yonge.cs.toronto.edu with SMTP id <86522-12114>; Sun, 20 Sep 1998 14:05:23 -0400 Received: by qew.cs.toronto.edu id <37911-17305>; Sun, 20 Sep 1998 14:05:15 -0400 Subject: Re: ELF ldconfig From: David Holland To: tlambert@primenet.com (Terry Lambert) Date: Sun, 20 Sep 1998 14:05:12 -0400 Cc: peter@netplex.com.au, jabley@clear.co.nz, dholland@cs.toronto.edu, freebsd@xaa.iae.nl, freebsd-current@FreeBSD.ORG In-Reply-To: <199809200948.CAA14405@usr06.primenet.com> from "Terry Lambert" at Sep 20, 98 05:48:38 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <98Sep20.140515edt.37911-17305@qew.cs.toronto.edu> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Right now, it's possbile to link against a shared library that > requires a symbol from anothe shared library, and not get any > missing symbol warnings during link phase. This has bit me > on the butt more than once, especially with libraries with > promiscuous symbol reference in other libraries (ie: libraries > that know too much about each other). You can also, I think, inadvertently create a shared library that requires nonexistent symbols and not get any warnings until run-time. Which (I think) amounts to the same problem, because the library requiring a symbol from another library should have been linked against that library to create a DT_NEEDED entry. I think. There's a linker option to use when building libraries that eliminates this problem. In my opinion, it should be the default, but it's not, because that's not how Solaris does it or some crap like that. -- - David A. Holland | (please continue to send non-list mail to dholland@cs.utoronto.ca | dholland@hcs.harvard.edu. yes, I moved.) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message