[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
config.log: needed libraries not found
From: |
Arvid Brodin |
Subject: |
config.log: needed libraries not found |
Date: |
Wed, 18 Jul 2007 15:39:08 +0200 |
User-agent: |
Thunderbird 2.0.0.4 (X11/20070703) |
I have a question regarding a configure script. If I am using the wrong mail
list then please be indulgent and direct me to the correct place. :)
I am cross compiling gtk+ for an arm platform using a x86_64 system. Gtk+
depends on, among other things, pango, which depend on cairo and, using cairo,
builds a library called pangocairo.
Cairo in turn depends on fontconfig which depends on expat.
Now, everything (configure, make, and make install of all the above packages)
seemed to go fine until it was gtk+'s turn. It complained that the pangocairo
library was missing. Sure enough, it was. Looking at pango's config.log a lot
of undefined references turned up, which made pango skip cairo support. Tracing
the error I also found the same kind of undefined references in Cairo's
config.log.
It looks like this:
snip from cairo's config.log (slightly edited for shorter paths):
---
checking for FT_GlyphSlot_Embolden
configure:27510: arm-9tdmi-linux-gnu-gcc -o conftest -g -O2
-I<sysroot>/usr/include/freetype2 -I<sysroot>/usr/include -L<sysroot>/usr/lib
conftest.c -lm -lfreetype -lz -lfontconfig >&5
<toolroot>/crosstool/gcc-4.1.2-glibc-2.3.2/arm-9tdmi-linux-gnu/lib/gcc/arm-9tdmi-linux-gnu/4.1.2/../../../../arm-9tdmi-linux-gnu/bin/ld:
warning: libexpat.so.1, needed by <sysroot>/usr/lib/libfontconfig.so, not
found (try using -rpath or -rpath-link)
<sysroot>/usr/lib/libfontconfig.so: undefined reference to `XML_ParserCreate'
...
<several more undefined references>
...
collect2: ld returned 1 exit status
---
The command that configure ran was:
arm-9tdmi-linux-gnu-gcc -o conftest -g -O2
-I<sysroot>/usr/include/freetype2 -I<sysroot>/usr/include -L<sysroot>/usr/lib
conftest.c -lm -lfreetype -lz -lfontconfig
If I recreate conftest.c and run the command by hand I get the same error, but
if I add -lexpat the command completes.
My question is, why is configure skipping -lexpat? libfontconfig.la lists
libexpat.la as a dependency, including the correct path.
configure was invoked with the following command (CC, CXX, AR, AS, RANLIB, LD
and STRIP are set to the corresponding tool names for arm):
PATH=<toolroot>/crosstool/gcc-4.1.2-glibc-2.3.2/arm-9tdmi-linux-gnu/bin:/bin:/usr/bin
LDFLAGS=-L${SYSROOT}/usr/lib CPPFLAGS=-I${SYSROOT}/usr/include
PKG_CONFIG_PATH=${SYSROOT}/usr/lib/pkgconfig ./configure --host=$HOST
--prefix=$PREFIX --enable-directfb --disable-xlib --disable-win32
If I use
PATH=<toolroot>/crosstool/gcc-4.1.2-glibc-2.3.2/arm-9tdmi-linux-gnu/bin:/bin:/usr/bin
LDFLAGS="-L${SYSROOT}/usr/lib -lexpat" CPPFLAGS=-I${SYSROOT}/usr/include
PKG_CONFIG_PATH=${SYSROOT}/usr/lib/pkgconfig ./configure --host=$HOST
--prefix=$PREFIX --enable-directfb --disable-xlib --disable-win32
the errors disappear, but they turn up again in earnest in the pango
config.log, with a lot of "not found" libraries. So I'm probably doing
something wrong from the start. But what?
-- Arvid
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- config.log: needed libraries not found,
Arvid Brodin <=