[sldev] GTK 2.8
Carsten Juttner
carjay at gmx.net
Fri Mar 21 18:44:45 PDT 2008
Jesse Armand wrote:
> Currently, I haven't been able to compile llmozlib2, and I think it's
> related to GTK 2.4 dependencies.
>
> I have this errors:
>
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In
> function `nsFontMetricsXft::CacheFontMetrics()':
> nsFontMetricsXft.cpp:(.text+0x15c6): undefined reference to `FT_MulFix'
> nsFontMetricsXft.cpp:(.text+0x1736): undefined reference to `FT_MulFix'
> nsFontMetricsXft.cpp:(.text+0x1916): undefined reference to `FT_Get_Sfnt_Table'
> nsFontMetricsXft.cpp:(.text+0x1944): undefined reference to `FT_MulFix'
> nsFontMetricsXft.cpp:(.text+0x1a58): undefined reference to `FT_MulFix'
>
I had the same problem, it's not related to GTK, the newer mozilla build
process simply added a new linker flag that demands that all symbols
have to be resolved for object files at link time.
Ft_MulFix and the other unresolved symbols are part of the
freetype2-library but the mozilla build does not add it to the link line
probably because the mozilla guys believed that the linker flags derived
from the pkg-config reply for Xft would already include the freetype
library.
But for my distro (Kubuntu Feisty) this is not the case, obviously
because you don't need to call the freetype API when using the Xft API
so the usage of freetype is private to Xft.
For a quick fix try to remove the "DSO_LDOPTS ="$DSO_LDOPTS -Wl,-z,defs"
lines from configure.in
Regards,
Carsten
More information about the SLDev
mailing list