Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: ldd and LD_DEBUG completions



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@xxxxxxx>                  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



Messages sorted by: Reverse Date, Date, Thread, Author