From owner-freebsd-hackers Fri Feb 8 11:45:20 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from alcatraz.iptelecom.net.ua (alcatraz.iptelecom.net.ua [212.9.224.15]) by hub.freebsd.org (Postfix) with ESMTP id 5F61037B420; Fri, 8 Feb 2002 11:45:07 -0800 (PST) Received: from ipcard.iptcom.net (ipcard.iptcom.net [212.9.224.5]) by alcatraz.iptelecom.net.ua (8.9.3/8.9.3) with ESMTP id VAA94716; Fri, 8 Feb 2002 21:44:50 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Received: from vega.vega.com (h37.228.dialup.iptcom.net [212.9.228.37]) by ipcard.iptcom.net (8.9.3/8.9.3) with ESMTP id VAA36835; Fri, 8 Feb 2002 21:44:46 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vega.vega.com (8.11.6/8.11.3) with ESMTP id g18JKMd69847; Fri, 8 Feb 2002 21:20:22 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Message-ID: <3C642503.168DDF93@FreeBSD.org> Date: Fri, 08 Feb 2002 21:20:35 +0200 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en,uk,ru MIME-Version: 1.0 To: Terry Lambert 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> Content-Type: text/plain; charset=x-user-defined 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 Terry Lambert wrote: > > Maxim Sobolev wrote: > > But no library has it here! libc comes out of blue just before libc_r > > - see attached script. Perhaps I'm missing something, but I can't > > figure out where it comes from, could you? > > 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. > Are *any* of the object files created with "ld -r"? I don't think so. > Which binutils are you using? $ ld -v GNU ld version 2.11.2 20010719 [FreeBSD] (with BFD 2.11.2 20010719 [FreeBSD]) -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message