zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: Zsh workers <zsh-workers@sunsite.dk>
Subject: Re: PATCH: ldd and LD_DEBUG completions
Date: Thu, 28 Jun 2007 18:15:37 +0100	[thread overview]
Message-ID: <200706281715.l5SHFbOA016213@news01.csr.com> (raw)
In-Reply-To: <20070628170745.GE17355@lorien.comfychair.org>

Danek Duvall wrote:
> On Thu, Jun 28, 2007 at 05:12:46PM +0100, 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.
> 
> One thing I plan to do next time I have time to poke at zsh is to build it
> with "-z ignore" in LD_OPTIONS, which I believe ought to eliminate the
> extraneous libraries in each ELF object.  If you build your own zsh on
> Solaris, give this a shot, and see if it actually makes a difference.

Yes, that does seem to work... omitting symbols from the main zsh binary
not found in Modules/socket.so, I now get

18:10% ldd -ur zsh 
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libcurses.so.1 =>        /usr/lib/libcurses.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
18:10% ldd -ur Modules/socket.so
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1

so libsocket has correctly only linked against the module that needs it,
and libcurses is missing from the socket library.  The shell runs and
the module loads OK.

This looks like it's worth hacking into configure somehow.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php

To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview


      reply	other threads:[~2007-06-28 17:16 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
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 [this message]

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=200706281715.l5SHFbOA016213@news01.csr.com \
    --to=pws@csr.com \
    --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).