From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 15 18:45:18 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFF9B16A401; Sat, 15 Apr 2006 18:45:18 +0000 (UTC) (envelope-from victor@bsdes.net) Received: from alf.dyndns.ws (244.Red-217-126-240.staticIP.rima-tde.net [217.126.240.244]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6EAB43D49; Sat, 15 Apr 2006 18:45:17 +0000 (GMT) (envelope-from victor@bsdes.net) Received: from alf.dyndns.ws (pato.euesrg02.net [192.168.0.3]) by alf.dyndns.ws (8.13.1/8.13.1) with ESMTP id k3FIjBN8071323; Sat, 15 Apr 2006 20:45:12 +0200 (CEST) (envelope-from victor@bsdes.net) Date: Sat, 15 Apr 2006 20:45:11 +0200 From: Victor Balada Diaz To: "M. Warner Losh" Message-ID: <20060415184511.GA697@pato.euesrg02.net> References: <20060415.120640.28764842.imp@bsdimp.com> <20060415.122657.111699385.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060415.122657.111699385.imp@bsdimp.com> User-Agent: Mutt/1.4.2.1i Cc: deischen@freebsd.org, hackers@freebsd.org Subject: Re: Missing dependencies on shared libraries X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 18:45:18 -0000 On Sat, Apr 15, 2006 at 12:26:57PM -0600, M. Warner Losh wrote: > In message: > Daniel Eischen writes: > : On Sat, 15 Apr 2006, M. Warner Losh wrote: > : > : > In message: > : > Daniel Eischen writes: > : > : On Sat, 15 Apr 2006, M. Warner Losh wrote: > : > : > : > : > In message: > : > : > Daniel Eischen writes: > : > : > : On Fri, 14 Apr 2006, Victor Balada Diaz wrote: > : > : > : > : > : > : > Hi, > : > : > : > I found that ldd doesn't report libc as a dependency on most (all?) > : > : > : > libraries: > : > : > : > > : > : > : > pato> ldd /usr/lib/libfetch.so > : > : > : > /usr/lib/libfetch.so: > : > : > : > libssl.so.3 => /usr/lib/libssl.so.3 (0x4816a000) > : > : > : > libcrypto.so.3 => /lib/libcrypto.so.3 (0x48198000) > : > : > : > > : > : > : > does anyone know why? > : > : > : > : > : > : AFAIK, it's being worked on. It's not just libc either, -pthread > : > : > : also has to start linking to libpthread. > : > : > > : > : > We don't record libc dependencies into shared libraries right now. If > : > : > we did, that would create some problems and solve some problems. With > : > : > symbol versioning, it most likely will become moot, since we'll never > : > : > have to bump libc major version again... > : > : > : > : kan stated he was working on doing this, which is what I was > : > : referring to above. > : > > : > That makes sense. If you explicitly include libc on the command line > : > to build the library, it is included... > : > : Here's the link to his original reply to -current. Also, if you > : look at linux shared libraries, you'll note they have dependencies > : to libc. > > I guess what I'm saying is that on FreeBSD, the system built shared > libraries don't have libc recorded in them because we don't add -lc on > the commnad line to build them. If i try to add -lc ldd doesn't show it as a dependency, but readelf/dumpelf does show it as NEEDED. Is this the expected behavior? Why isn't ldd showing the dependency? -- La prueba mas fehaciente de que existe vida inteligente en otros planetas, es que no han intentado contactar con nosotros.