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

Re: PATCH: ldd and LD_DEBUG completions



On 2007-06-28 at 17:21 +0100, Peter Stephenson wrote:
> Are you referring to the fact that all system libraries needed in zsh
> and its modules are linked into the main shell and all modules?  That's
> a fairly cosmetic problem requiring a rewrite of the build system that's
> likely to be 1,798,109,308th in my global list of things to worry about.

It affected me when I was creating my ruby plugin (which I haven't
worked on in weeks); I hacked around the configure/make/sh-scripts
system to let the linking be on individual modules, with better
independent configuration.  I don't remember where things _really_
broke, might have been the libcrypt pull-in.  (Of course, I later
remembered which language it was I'd been trying to remember, designed
for embedding and the one I _wanted_ to test with; lua).

I need to research what's available pre-packaged as autoconf stuff to
detect systems where everything needs to be linked into the main binary,
so that I can merge this in without killing support for some of zsh's
platforms.  I'm planning to schedule time this weekend to look at this.

Anything I offer will only have been tested on FreeBSD6/amd64 and MacOS
10.4.10/x86, so there's likely to be breakage, hence not having offered
anything before now.

Does the output below look reasonable and desirable to people?

% ldd -a bin/zsh
bin/zsh:
	libzsh-4.3.4-dev-0.so => /home/pdp/dbg/lib/zsh/libzsh-4.3.4-dev-0.so (0x800631000)
	libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x8007f6000)
	libncurses.so.6 => /lib/libncurses.so.6 (0x8009e7000)
	libm.so.4 => /lib/libm.so.4 (0x800b40000)
	libc.so.6 => /lib/libc.so.6 (0x800c5c000)
/home/pdp/dbg/lib/zsh/libzsh-4.3.4-dev-0.so:
	libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x8007f6000)
	libncurses.so.6 => /lib/libncurses.so.6 (0x8009e7000)
	libm.so.4 => /lib/libm.so.4 (0x800b40000)
	libc.so.6 => /lib/libc.so.6 (0x800c5c000)
% ldd lib/zsh/4.3.4-dev-0/zsh/pcre.so 
lib/zsh/4.3.4-dev-0/zsh/pcre.so:
	libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x80093b000)
	libncurses.so.5.6 => not found (0x0)
	libm.so.4 => /lib/libm.so.4 (0x800b2c000)
	libc.so.6 => /lib/libc.so.6 (0x800632000)
	libpcre.so.0 => /usr/local/lib/libpcre.so.0 (0x800c48000)
% ldd -a lib/zsh/4.3.4-dev-0/zsh/ruby.so
lib/zsh/4.3.4-dev-0/zsh/ruby.so:
	libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x80093c000)
	libncurses.so.5.6 => not found (0x0)
	libm.so.4 => /lib/libm.so.4 (0x800b2d000)
	libc.so.6 => /lib/libc.so.6 (0x800632000)
	libruby18.so.18 => /usr/local/lib/libruby18.so.18 (0x800c49000)
/usr/local/lib/libruby18.so.18:
	libcrypt.so.3 => /lib/libcrypt.so.3 (0x800e32000)
	libm.so.4 => /lib/libm.so.4 (0x800b2d000)



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