pango compilation problem



Hi,

I am trying to compile pango-1.21.3 but get a linker error about two freetype functions, although these functions are -- to my knowledge -- accessible.

My system is Redhat Enterprise WS Release 4 (Nahant Update 6). The system is somewhat outdated. So, to be able to also use some newer software, I installed a some libraries in at an alternative location, namely /usr/local/pkensche/.

I have the following library versions installed to /usr/local/pkensche:

freetype-2.3.6
fontconfig-2.6.0
cairo-1.6.4

The versions installed by the redhat system are:
freetype-2.1.9-7.el4.6
fontconfig-2.2.3-13.el4
pango-1.6.0-9
no cairo library installed by redhat


This is the error:

/bin/sh ../libtool --tag=CC   --mode=link gcc  -O2 -march=i686 -L/usr/local/pkensche/lib -L/work/devel/local/lib -Wall -I/usr/local/pkensche/include -I/work/devel/local/include -I/usr/include -I/usr/local/include -march=i686 -O2 -march=i686 -O2   -o cairosimple cairosimple.o ../pango/libpango-1.0.la ../pango/libpangocairo-1.0.la -L/usr/local/pkensche/lib -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -L/usr/local/pkensche//lib -lcairo   ../pango/libpangoft2-1.0.la
mkdir .libs
gcc -O2 -march=i686 -Wall -I/usr/local/pkensche/include -I/work/devel/local/include -I/usr/include -I/usr/local/include -march=i686 -O2 -march=i686 -O2 -o .libs/cairosimple cairosimple.o  -L/usr/local/pkensche/lib -L/work/devel/local/lib ../pango/.libs/libpango-1.0.so ../pango/.libs/libpangocairo-1.0.so -L/usr/local/pkensche//lib -L/usr/X11R6/lib /work/packages/System/gtk/pango-1.21.3/pango/.libs/libpangoft2-1.0.so /usr/local/pkensche//lib/libpixman-1.so /usr/local/pkensche//lib/libcairo.so /usr/lib/libfreetype.so -lpng12 -lXrender -lXext -lSM -lICE -lX11 ../pango/.libs/libpangoft2-1.0.so /work/packages/System/gtk/pango-1.21.3/pango/.libs/libpango-1.0.so /usr/local/pkensche/lib/libgobject-2.0.so /usr/local/pkensche/lib/libgmodule-2.0.so -ldl /usr/local/pkensche/lib/libglib-2.0.so /usr/local/pkensche//lib/libfontconfig.so /usr/local/pkensche/lib/libfreetype.so -lz /usr/lib/libexpat.so -lm  -Wl,--rpath -Wl,/usr/local/pkensche//lib -Wl,--rpath -Wl,/usr/local/pkensche/lib
/usr/local/pkensche//lib/libcairo.so: undefined reference to `FT_GlyphSlot_Embolden'
/usr/local/pkensche//lib/libfontconfig.so: undefined reference to `FT_Select_Size'
collect2: ld returned 1 exit status
make[2]: *** [cairosimple] Error 1
make[2]: Leaving directory `/work/packages/System/gtk/pango-1.21.3/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/work/packages/System/gtk/pango-1.21.3'
make: *** [all] Error 2


I checked libcairo.so and libfontconfig.so with ldd:

ldd /usr/local/pkensche/lib/libcairo.so
        libfreetype.so.6 => /usr/local/pkensche/lib/libfreetype.so.6 (0x00b60000)
        libfontconfig.so.1 => /usr/local/pkensche/lib/libfontconfig.so.1 (0x00e6e000)
        libpng12.so.0 => /usr/local/pkensche/lib/libpng12.so.0 (0x00111000)
        libz.so.1 => /usr/lib/libz.so.1 (0x003e2000)
        libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x00fa9000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x0031a000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x00146000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x00702000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x0014f000)
        libpixman-1.so.0 => /usr/local/pkensche/lib/libpixman-1.so.0 (0x00401000)
        libm.so.6 => /lib/tls/libm.so.6 (0x0022e000)
        libc.so.6 => /lib/tls/libc.so.6 (0x004ba000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x00251000)
        libdl.so.2 => /lib/libdl.so.2 (0x00270000)
        /lib/ld-linux.so.2 (0x003ca000)

ldd /usr/local/pkensche/lib/libfontconfig.so
        libfreetype.so.6 => /usr/local/pkensche/lib/libfreetype.so.6 (0x00dad000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00111000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x0065c000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00a42000)
        /lib/ld-linux.so.2 (0x003ca000)


The libfreetype.so.6 referenced contains the two functions, though:

nm /usr/local/pkensche/lib/libfreetype.so.6 | grep -P "FT_GlyphSlot_Embolden|FT_Select_Size"
00015a20 T FT_GlyphSlot_Embolden
00009830 T FT_Select_Size


I don't know how to narrow down the cause of this problem and would appreciate any help. Please tell me if you need more information.

Thanks in advance!

	Philip






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