Zsh Mailing List Archive
Messages sorted by:
Re: PATCH: ldd and LD_DEBUG completions
- X-seq: zsh-workers 23620
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: PATCH: ldd and LD_DEBUG completions
- Date: Fri, 29 Jun 2007 11:42:41 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Received:X-YMail-OSG:Received:In-reply-to:From:References:To:Subject:Date:Message-ID; b=wpakprvQHf6TF84TNLVvLeaDGvfInOuEznikrwSdcHUsuQ2+xfh0EB8tgxqEWtPN39exlZI3/rPx/Cv7CtrJv/yNW06LrWhIUXaT83zWOQwNJR4LyuX3iubD0wYcr4Qn3lrig+fT7tDA9+6T2/6Qy4p0bgKigRGQ4lqANs9lNq4= ;
- In-reply-to: <200706281621.l5SGLHKR015636@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <15204.1183047166@thecus> <200706281621.l5SGLHKR015636@xxxxxxxxxxxxxx>
> Oliver Kiddle wrote:
> > The zsh libraries are not especially cleanly linked by the way. Run ldd
> > -ur (preferably on Solaris) on them to see what I mean.
> I'm getting this:
> unused object=/usr/lib/libsocket.so.1
> Mostly that doesn't look unreasonable.
Not unreasonable but you get curses in there too for a lot of libraries.
(I wonder whether curses dependent things could be moved to zle.so so
that a non-interactive zsh didn't need it).
> That's a fairly cosmetic problem requiring a rewrite of the build system that's
It's not entirely cosmetic. Removing unused dependencies can reduce
startup times. Optimising this made a very noticeably difference to some
other software a colleague of mine was working on (though admittedly
that was pulling in a lot more stuff from libraries).
And while I agree that rewriting the build system for this issue would
be excessive, it is closely related to the issue of modules having extra
dependencies. Didn't Clint put in some hack so that only the cap module
depends on libcap.so.
As pointed out by Danek, using -z ignore for compiler's that support it
could be an easy fix. At the very least, Debian etc packages could do
this (Hello Clint). In some cases Sun's -z lazyload would also
be useful (e.g. iconv).
Note: ldd -u -r also lists a lot of "symbol not found" errors. I think
these may be the symbols from the main zsh binary (or libzsh) so they
aren't an issue. With most software, they indicate that your library
needs to be linked against other libraries (the same information comes
from the compile option -z defs).
Messages sorted by: