From owner-freebsd-hackers Mon Feb 22 11:32:20 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from axe.cablenet.net (axe.cablenet.net [195.248.96.20]) by hub.freebsd.org (Postfix) with ESMTP id 2677411DE3 for ; Mon, 22 Feb 1999 11:32:15 -0800 (PST) (envelope-from damian@cablenet.net) Received: from cablenet.net (localhost [127.0.0.1]) by axe.cablenet.net (8.9.0.Beta3/8.9.0.Beta3) with ESMTP id TAA15812; Mon, 22 Feb 1999 19:27:59 GMT Message-ID: <36D1AFBF.58BCFFEF@cablenet.net> Date: Mon, 22 Feb 1999 19:27:59 +0000 From: Damian Hamill Organization: CableNet Ltd X-Mailer: Mozilla 4.05 [en] (X11; I; SunOS 4.1.4 sun4m) MIME-Version: 1.0 To: Terry Lambert , hackers@freebsd.org Subject: Re: Interesting ld.so bug References: <199902202154.OAA18160@usr08.primenet.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Terry Lambert wrote: > > There appears to be a bug with ld.so. The following steps illustrate > the bug: > I've recently installed version 3 on a system and upgraded to 3.1 and noticed dynamic loading strangeness too. The Apache port won't load dynamic modules as it can't resolve some of the undefined symbols from the module being loaded which are contained in the loading process, ap_make_sub_pool for example. Using dlsym(NULL,"symbol_name") in one of my own dynamically loaded modules fails to find "symbol_name" in the loading process, contrary to the man page and previous behaviour. Similarly I find that I now don't need a leading underscore before the symbol name to resolve symbols in the module being loaded from the loading process, again contrary to the man page and previous behaviour. Is this all part of the transition to elf ? Do I need to add -elf to CFLAGS ? regards damian -- * Damian Hamill M.D. damian@cablenet.net * CableNet & The Landscape Channel * http://www.cablenet.net/ http://www.landscapetv.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message