On Tue, 14 Mar 2000, Thomas Tanner wrote:

> 
> On 27-Feb-2000 Bob Friesenhahn wrote:
> > I am encountering a very strange problem when using CVS libtool
> > (multi-lingual) in that several libraries are repeated (as reported by
> > ldd) as dependencies, and these libraries are not found at run-time.  
> > This is under Solaris 2.6, using gcc 2.9.5.
> >...
> >         libdpstk.so.5 =>         (file not found)
> >         libdps.so.5 =>   (file not found)
> >         libdpstk.so.5 =>         /usr/openwin/lib/libdpstk.so.5
> >         libdps.so.5 =>   /usr/openwin/lib/libdps.so.5
> >...
> > Even though LDFLAGS includes -R/usr/local/lib:/usr/openwin/lib,
>                                                ^
>                                 This syntax is not supported
>  Try using -R/usr/local/lib -R/usr/openwin/lib

I used both syntaxes at once for good measure.  :-)

A careful configure this morning leads to a config.status with this
configuration comment:

# /home/bfriesen/src/graphics/ImageMagick/configure CFLAGS='-g -O
-Wall -Wmissing-prototypes' 'CFLAGS=-g -O -Wall -Wmissing-prototypes'
'LDFLAGS=-L/usr/local/lib -R/usr/local/lib -L/usr/openwin/lib
-R/usr/openwin/lib' --enable-lzw --disable-static --enable-shared
--enable-ltdl-convenience

Ldd shows that the libdpstk and libdps entries are repeated in the
linked executable. This is the link line:

/bin/sh ./libtool --mode=link gcc -g -O -Wall -Wmissing-prototypes -o
display display.o magick/libMagick.la
gcc -g -O -Wall -Wmissing-prototypes -o .libs/display display.o
magick/.libs/libMagick.so -L/usr/local/lib -L/usr/openwin/lib
/usr/local/lib/libjbig.so -ldf -ltiff /usr/local/lib/libttf.so -lintl
/usr/local/lib/libjpeg.so /usr/local/lib/libpng.so -ldpstk -ldps
-lXext -lXt -lX11 -lsocket -lnsl -lbz2 -lz -lpthread -lm
-R/usr/local/lib creating display

This is the dependency_libs entry from the libMagick.la file:
dependency_libs=' -L/usr/local/lib -L/usr/openwin/lib
/usr/local/lib/libjbig.la -ldf - ltiff /usr/local/lib/libttf.la -lintl
/usr/local/lib/libjpeg.la /usr/local/lib/libpng. la -ldpstk -ldps
-lXext -lXt -lX11 -lsocket -lnsl -lbz2 -lz -lpthread -lm'

And here is the relink_command entry (note replicated LDFLAGS):
relink_command="cd /tmp/im8/magick; /bin/sh ../libtool --mode=relink
gcc -g -O -Wall - Wmissing-prototypes -L/usr/local/lib
-R/usr/local/lib -L/usr/openwin/lib -R/usr/openwin/lib
-L/usr/local/lib -L/usr/openwin/lib -R/usr/openwin/lib -o libMagick.la
-rpath /u sr/local/lib -version-info 5:20:0 PreRvIcccm.lo animate.lo
annotate.lo attributes.lo b lob.lo cache.lo cache_view.lo colors.lo
compress.lo constitute.lo decorate.lo delegate s.lo display.lo draw.lo
effects.lo enhance.lo error.lo gems.lo image.lo magick.lo memory.lo
modules.lo monitor.lo montage.lo quantize.lo segment.lo shear.lo
signature.lo st ream.lo timer.lo transform.lo utility.lo widget.lo
xwindows.lo zoom.lo avs.lo bim.lo b mp.lo cmyk.lo dcm.lo dps.lo ept.lo
fax.lo fits.lo fpx.lo gif.lo gradation.lo gray.lo h df.lo histogram.lo
html.lo icc.lo icon.lo iptc.lo jbig.lo jpeg.lo label.lo logo.lo map
.lo matte.lo miff.lo mono.lo mtv.lo pcd.lo pcl.lo pcx.lo pdb.lo pdf.lo
pict.lo pix.lo png.lo plasma.lo pnm.lo preview.lo ps.lo ps2.lo ps3.lo
psd.lo pwp.lo rgb.lo rla.lo rle .lo sct.lo sfw.lo sgi.lo stegano.lo
sun.lo svg.lo tga.lo tiff.lo tile.lo tim.lo ttf.lo
 txt.lo uil.lo uyvy.lo vicar.lo vid.lo viff.lo wbmp.lo x.lo xbm.lo
xc.lo xpm.lo xwd.lo yuv.lo -ljbig -ldf -ltiff -lttf -ljpeg -lpng
-ldpstk -ldps -lXext -lXt -lX11 -lsocket
 -lnsl -lbz2 -lz -lpthread -lm"

The ldpstk and ldps libraries are peculiar in that they are some of
the few Open Windows libraries which are not symbolically linked from
/usr/lib.

> > libtool seems to be removing /usr/openwin/lib, where the problem
> > libraries reside.  However, notice that one of the two references to
> > the library is discovered anyway.
> 
>  Maybe -R/usr/openwin/lib is hardcoded into another
>  library that uses libdps[tk]?

Nope.

Bob
======================================
Bob Friesenhahn
[EMAIL PROTECTED]
http://www.simplesystems.org/users/bfriesen

Reply via email to