[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


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/ -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/ /usr/lib/ -L/home/lc/lib /usr/lib/ /home/lc/lib/ /home/lc/lib/ /home/lc/lib/ /home/lc/lib/ /home/lc/lib/ -lpthread /home/lc/lib/ /home/lc/lib/ /home/lc/lib/ /home/lc/lib/ /home/lc/lib/ -ldl /home/lc/lib/ -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/', 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. 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?


reply via email to

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