[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libtool finds the wrong freetype?
From: |
Lars Clausen |
Subject: |
libtool finds the wrong freetype? |
Date: |
Wed, 22 Oct 2003 14:02:19 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021105 |
Hi!
I'm trying to compile Dia on a (fairly old) RedHat machine, and I'm
running into a problem with libtool apparently not finding the right
libfreetype. I have most of the required libraries installing in $HOME
(as I don't have root), and it works fine for the rest, but when I run
the final linking command:
/bin/sh ../libtool --mode=link gcc -I/home/lc/include/libxml2
-I/home/lc/include/freetype2 -I/home/lc/include -g -O2 -Wall -Wunused
-Wmissing-prototypes -Wmissing-declarations -finline-functions
-fstrict-aliasing -export-dynamic -o dia diagram.o [...] main.o
../lib/libdia.la -lpopt -lz -L/home/lc/lib -lfreetype -lz
-Wl,--export-dynamic -L/home/lc/lib -lgtk-x11-2.0 -lgdk-x11-2.0
-latk-1.0 -lpangox-1.0 -lxml2 -lpthread -lz -lgdk_pixbuf-2.0 -lm
-lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
-lpng -lz -lm -lpng -lz -lm -lz
(some .o's removed for brevity) the command run by libtool is
gcc -I/home/lc/include/libxml2 -I/home/lc/include/freetype2
-I/home/lc/include -g -O2 -Wall -Wunused -Wmissing-prototypes
-Wmissing-declarations -finline-functions -fstrict-aliasing -o .libs/dia
diagram.o [...] main.o -Wl,--export-dynamic -Wl,--export-dynamic
../lib/.libs/libdia.so /usr/lib/libpopt.so -L/home/lc/lib
/usr/lib/libfreetype.so /home/lc/lib/libgtk-x11-2.0.so
/home/lc/lib/libgdk-x11-2.0.so /home/lc/lib/libatk-1.0.so
/home/lc/lib/libpangox-1.0.so /home/lc/lib/libxml2.so -lpthread
/home/lc/lib/libgdk_pixbuf-2.0.so /home/lc/lib/libpangoft2-1.0.so
/home/lc/lib/libpango-1.0.so /home/lc/lib/libgobject-2.0.so
/home/lc/lib/libgmodule-2.0.so -ldl /home/lc/lib/libglib-2.0.so -lpng
-lm -lz -Wl,--rpath -Wl,/home/lc/lib/dia -Wl,--rpath -Wl,/home/lc/lib
It should find libfreetype in $HOME/lib, it's been first in the
LD_LIBRARY_PATH for the entire installation, and pkg-config points to
there. Running strace it appears that libtool looks for
'../lib/libfreetype.la', but since this is run in the subdirectory
'app', it doesn't find it. It then proceeds to find it in /usr/lib,
which unfortunately is a different libfreetype. ltmain.sh says that the
version is 1.5.0a. I've been looking around for references to
/usr/lib/libfreetype in the local .la files, but with no luck.
Any ideas on how to proceed from here?
Thanks,
-Lars
- libtool finds the wrong freetype?,
Lars Clausen <=