Subject: Re: libtool question...
To: None <mcmahill@mtl.mit.edu>
From: Nick Hudson <skrll@netbsd.org>
List: tech-pkg
Date: 03/21/2001 17:13:38
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 147 # ls -l /usr/lib/libz.so*
> lrwxr-xr-x  1 root  wheel     11 Nov 17 18:32 /usr/lib/libz.so ->
> libz.so.0.2
> lrwxr-xr-x  1 root  wheel     11 Nov 17 18:32 /usr/lib/libz.so.0 ->
> libz.so.0.2
> -r--r--r--  1 root  wheel  85581 Mar  3  2000 /usr/lib/libz.so.0.1
> -r--r--r--  1 root  wheel  86433 Nov 17 14:09 /usr/lib/libz.so.0.2
> m


-- 
aka skrll@netbsd.org, skrll@excite.co.uk