From owner-freebsd-hackers Fri Feb 8 19:11:39 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from snipe.prod.itd.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by hub.freebsd.org (Postfix) with ESMTP id E513A37B421; Fri, 8 Feb 2002 19:11:29 -0800 (PST) Received: from pool0053.cvx21-bradley.dialup.earthlink.net ([209.179.192.53] helo=mindspring.com) by snipe.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16ZNv7-0006vH-00; Fri, 08 Feb 2002 19:11:26 -0800 Message-ID: <3C649147.BB4F28C9@mindspring.com> Date: Fri, 08 Feb 2002 19:02:31 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Maxim Sobolev Cc: Ruslan Ermilov , Jason Evans , jdp@FreeBSD.org, deischen@FreeBSD.org, jasone@FreeBSD.org, hackers@FreeBSD.org, jlemon@FreeBSD.org Subject: Re: Linking libc before libc_r into application causes weird problems References: <1013147180.73417.2.camel@notebook> <20020207234233.D23162@canonware.com> <3C639A8C.6D100326@FreeBSD.org> <3C63A62D.3E4A4FC4@mindspring.com> <3C63AD02.79BA5AF5@FreeBSD.org> <20020208164132.D78163@sunbay.com> <3C63E5D1.1E423698@FreeBSD.org> <3C63E961.45706408@mindspring.com> <20020208172503.H78163@sunbay.com> <3C63F3FE.D4E73334@FreeBSD.org> <3C6410A6.495CFD3A@mindspring.com> <3C642503.168DDF93@FreeBSD.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Maxim Sobolev wrote: > > What does your patched ldd say about each and every one > > of those .so's you are linking in perhaps being linked > > against libc.so, or linked against something linked > > against something ... linked against something linked > > against libc.so? > > It reports the full chain, so that when A.so depends on B.so, while > B.so depends on C.so, but A.so doesn't explicitly depend on C.so, `ldd > A.so' will show both B.so and C.so. Was your ldd output your patched ldd, or not? > > Which binutils are you using? > > $ ld -v > GNU ld version 2.11.2 20010719 [FreeBSD] (with BFD 2.11.2 20010719 > [FreeBSD]) Is this one of the three revisions of the new one, or the old one? If it's not the old one, try the old one. If it's the new one, make sure it's the newest new one. > > Are *any* of the object files created with "ld -r"? > > I don't think so. Then it looks like you are going to have to "nm" each of the object files to see if they define a libc routine. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message