zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@sunsite.dk>
Subject: Re: PATCH: ldd and LD_DEBUG completions
Date: Fri, 29 Jun 2007 11:42:41 +0100	[thread overview]
Message-ID: <16925.1183113761@thecus> (raw)
In-Reply-To: <200706281621.l5SGLHKR015636@news01.csr.com>

Peter wrote:
> 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).

Oliver


  parent reply	other threads:[~2007-06-29 10:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-28 16:12 Oliver Kiddle
2007-06-28 16:21 ` Peter Stephenson
2007-06-28 18:00   ` Phil Pennock
2007-06-29  9:59     ` Peter Stephenson
2007-06-29 10:42   ` Oliver Kiddle [this message]
2007-06-29 12:11     ` Clint Adams
2007-06-29 12:39       ` Oliver Kiddle
2007-06-29 14:35       ` Bart Schaefer
2007-06-29 16:08         ` Oliver Kiddle
2007-06-28 17:07 ` Danek Duvall
2007-06-28 17:15   ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16925.1183113761@thecus \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).