Subject: Re: libtool question...
To: Nick Hudson <skrll@netbsd.org>
From: None <mcmahill@mtl.mit.edu>
List: tech-pkg
Date: 03/21/2001 12:17:46
On Wed, 21 Mar 2001, Nick Hudson wrote:

> mcmahill@mtl.mit.edu wrote:
> > 
> > I don't understand some of the warning messages I'm seeing below.
> > 
> > When libtool says "shared version of the library", is "the library"
> > libz.so.0.2, libm.so.0.1, etc, or is "the library" libawt?
> 
> Whichever is reported int the first line of the warning
> 
> > /bin/sh ../../../../libtool --mode=link cc  -O2 -Wall -Wstrict-prototypes
> > -I/usr/X11R6/include  -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib
> > -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib
> > -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o libawt.la -rpath
> > /usr/pkg/kaffe/lib/kaffe  -module -release 1.0.6 -export-symbols-regex
> > "^([Jj]ava|kaffe)_" tlk.lo wnd.lo evt.lo gra.lo fnt.lo clr.lo img.lo
> > imggif.lo imgjpeg.lo imgpng.lo cbd.lo -L/usr/local/lib -ljpeg  -lpng
> > -L/usr/local/lib -lz  -lm  -lungif   -L/usr/X11R6/lib -R/usr/X11R6/lib
> > -lXext  -lSM -lICE -lX11 -L/usr/local/lib   -R/usr/local/lib
> > 
> > *** Warning: This library needs some functionality provided by -lz.
> > *** I have the capability to make that library automatically link in when
> > *** you link to this library.  But I can only do this if you have a
> > *** shared version of the library, which you do not appear to have.
> 
> OK, so libtool can't find a file that matches libz* AND matches the
> format specified in the deplibs_check_method (which is the output from
> file on the real library)
> 
> What do
> 
> 	$ libtool --config | grep ^deplibs_check_method=
> 	$ file /usr/lib/libz.so.0.1
> 
> give?
> 
> Nick


mcmahill@ampere 370 # libtool --config | grep ^deplibs_check_method=
deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB shared object"
mcmahill@ampere 371 # file /usr/lib/libz.so.0.1
/usr/lib/libz.so.0.1: ELF 32-bit LSB mips-1 shared object, MIPS R3000_LE,
version 1, not stripped


-Dan