bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wrong search path


From: Ralf Wildenhues
Subject: Re: Wrong search path
Date: Mon, 20 Dec 2004 18:31:23 +0100
User-agent: Mutt/1.4.1i

Hi Reinhard,

* Reinhard Zwirnmann wrote on Mon, Dec 20, 2004 at 06:01:10PM CET:
> 
> I have a problem compiling pango-1.8:
> While compiling the sources I get the following error message:
> 
> /bin/sh ../../libtool --mode=link gcc  -g -O2 -Wall   -o ottest  ottest.o 
> disasm.o libpango-ot.la -lfontconfig   -L/usr/local/lib -Wl,--rpath 
> -Wl,/usr/local/lib -lfreetype -lz
> libtool: link: cannot find the library `/usr/lib/libfreetype.la'
> make[4]: *** [ottest] Fehler 1
> make[4]: Leaving directory `/home/zwirni/pango-1.8.0/pango/opentype'
> make[3]: *** [all-recursive] Fehler 1
> 
> The library libfreetype.la is in the directory /usr/local/lib, but it seems 
> as 
> if libtool is looking in the dir /usr/lib though /usr/local/lib is in the 
> command.
> On my SuSE system has been an older, not sufficient version of freetype 
> in /usr/lib. I removed this package and installed the newer freetype version 
> from sources in /usr/local/lib.
> A workaround might be to copy or link the files to /usr/lib, but this 
> shouldn't be the final solution I think.
> The actual libtool version I use is 1.5

First:  if that's really 1.5 and not 1.5.x with x, say, 10, then you
should consider using a newer libtool.  But I don't think that is your
problem.

Second, I think this option given to libtool should be:
  -rpath /usr/local/lib
instead of
  -Wl,--rpath -Wl,/usr/local/lib
if you intend to install in /usr/local (libtool will translate this).

Third, my guess at the actual cause of your problem is that one of the
other libs you specify are libtool libs and link against
/usr/lib/libfreetype.la.  Can you confirm this (by looking for it in the
deplibs variable of files like a `libfontconfig.la', if present, and at
libpango-ot.la)?

Disclaimer: I have not looked at pango at all.

Regards,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]