From owner-freebsd-questions Fri Sep 28 23:50:51 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-94-248-46.mmcable.com [24.94.248.46]) by hub.freebsd.org (Postfix) with SMTP id 1A8DE37B405 for ; Fri, 28 Sep 2001 23:50:48 -0700 (PDT) Received: (qmail 23084 invoked by uid 100); 29 Sep 2001 06:50:46 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15285.28486.734884.618330@guru.mired.org> Date: Sat, 29 Sep 2001 01:50:46 -0500 To: Andrew J Caines , kbstew99@hotmail.com, questions@freebsd.org Subject: Re: Tracking down libpng.so.4 package dependency In-Reply-To: <15285.24729.959309.725432@guru.mired.org> References: <15284.53157.808642.644254@guru.mired.org> <3BB4D224.99CA89CF@owt.com> <103067005@toto.iv> <20010929001552.V39250@hal9000.servehttp.com> <15285.24729.959309.725432@guru.mired.org> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mike Meyer types: > Andrew J Caines types: > > What a reall need is a treelike ldd output. From ldd(1) > Yup. Patches welcome :-); it looks like more than a one-evening hack. While a tree is hard, doing something that gives you the information you want is pretty easy. Here's a patch to src/libexec/rtld-elf/rtld.c that will do this. You need to invoke ldd in an sh-like shell as LD_TRACE_LOADED_OBJECTS_ALL=1 ldd to get get enable this. I'll eventually PR this along with patches for ldd to make it more usable. next) { Needed_Entry *needed; char *name, *path; bool is_lib; + if (list_containers) printf("%s:\n", obj->path); for (needed = obj->needed; needed; needed = needed->next) { if (needed->obj != NULL) { - if (needed->obj->traced) + if (needed->obj->traced && !list_containers) continue; needed->obj->traced = true; path = needed->obj->path; -- Mike Meyer http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message