From: Dennis Heuer (dh@onclick.org)
Date: Tue May 13 2003 - 01:31:32 EDT
This is a new thread to:
"abiword 1.9.x installation breaks because of pangoxft"
> I get the following error:
>
> ../../../../../wv/libwv.a(generic.o): In function `wvTempName':
> /workspace/software/gnome/abiword-1.9.1/wv/../wv/generic.c:85:
> the use of `tmpnam' is dangerous, better use `mkstemp'
> /opt/gnome/lib/libpangoxft-1.0.so: undefined reference to
> `FT_Stream_GetShort'
> /opt/gnome/lib/libpangoxft-1.0.so: undefined reference to
> `FT_Stream_ExitFrame'
> /opt/gnome/lib/libpangoxft-1.0.so: undefined reference to
> `FT_Stream_GetLong'
> /opt/gnome/lib/libpangoxft-1.0.so: undefined reference to
> `FT_Stream_Seek'
> /opt/gnome/lib/libpangoxft-1.0.so: undefined reference to
> `FT_Get_Next_Char'
> /opt/gnome/lib/libpangoxft-1.0.so: undefined reference to
> `FT_Stream_EnterFrame'
> /opt/gnome/lib/libpangoxft-1.0.so: undefined reference to
> `FT_Get_First_Char'
> collect2: ld returned 1 exit status
> make[4]: *** [AbiWord-2.0] Fehler 1
> make[4]: Leaving directory
> `/workspace/software/gnome/abiword-1.9.1/abi/src/wp/main/unix'
> make[3]: *** [all-recursive] Fehler 1
> make[3]: Leaving directory
> `/workspace/software/gnome/abiword-1.9.1/abi/src/wp/main'
> make[2]: *** [all-recursive] Fehler 1
> make[2]: Leaving directory
> `/workspace/software/gnome/abiword-1.9.1/abi/src/wp'
> make[1]: *** [all-recursive] Fehler 1
> make[1]: Leaving directory
> `/workspace/software/gnome/abiword-1.9.1/abi/src'
Joaquin Cuenca Abela answered:
> Anyway, the build is catching an old copy of freetype that you
> should have around, somewhere.
> The usual culprit is xfree86, that includes an internal old copy of
> freetype for the core fonts support.
> Make sure the build catches the right freetype, and everything
> should build like a charm.
Dear Joaquin
Many thanks for your tip.
But, my system finds the right freetype version. The real culprit is some misconfiguration in the abiword config files. I found a line - using grep on the src tree - that shows up the dilemma. It is really the fault of the abiword configuration that, in some cases, puts the X path before the link to libfreetype2:
src/tools/pfa2afm/GNUmakefile:XFT_LIBS = -L/usr/X11R6/lib -lXft -lfreetype -lXrender -lfontconfig
This should be (if not two variables):
src/tools/pfa2afm/GNUmakefile:XFT_LIBS = -L/usr/lib -lfreetype -L/usr/X11R6/lib -lXft -lXrender -lfontconfig
As you can see in the following example, abiword otherwise sets -I/usr/include/freetype2 before -I/usr/X11R6:
src/GNUmakefile:GNOME_CFLAGS = -pthread -DORBIT2=1 -I/usr/include/libglade-2.0 -I/opt/gnome/include -I/opt/gnome/include/eel-2 -I/opt/gnome/include/bonobo-activation-2.0 -I/opt/gnome/include/libbonobo-2.0 -I/opt/gnome/include/libbonoboui-2.0 -I/opt/gnome/include/gconf/2 -I/opt/gnome/include/gtk-2.0 -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -I/opt/gnome/include/gnome-vfs-2.0 -I/opt/gnome/lib/gnome-vfs-2.0/include -I/opt/gnome/include/libart-2.0 -I/opt/gnome/include/libgnome-2.0 -I/opt/gnome/include/libgnomeui-2.0 -I/opt/gnome/include/libxml2 -I/opt/gnome/include/gail-1.0 -I/opt/gnome/include/orbit-2.0 -I/opt/gnome/include/linc-1.0 -I/opt/gnome/lib/gtk-2.0/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -I/opt/gnome/include/libgnomecanvas-2.0 -DHAVE_NAUTILUS=1 -DORBIT2=1 -pthread -I/usr/include/libglade-2.0 -I/opt/gnome/include/libbonobo-2.0 -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/g
lib-2.0/include -I/opt/gnome/include/orbit-2.0 -I/opt/gnome/include/bonobo-activation-2.0 -I/opt/gnome/include/linc-1.0 -I/opt/gnome/include/libgnomeui-2.0 -I/opt/gnome/include/libgnome-2.0 -I/opt/gnome/include/libgnomecanvas-2.0 -I/opt/gnome/include/gtk-2.0 -I/opt/gnome/include/libart-2.0 -I/opt/gnome/include/gconf/2 -I/opt/gnome/include/libbonoboui-2.0 -I/opt/gnome/include/gnome-vfs-2.0 -I/opt/gnome/lib/gnome-vfs-2.0/include -I/opt/gnome/include/pango-1.0 -I/usr/include/freetype2 -I/opt/gnome/lib/gtk-2.0/include -I/opt/gnome/include/atk-1.0 -I/usr/X11R6/include -I/opt/gnome/include/libxml2 -I/opt/gnome/include/gal-2.0 -I/opt/gnome/include/libgnomeprint-2.2 -I/opt/gnome/include/libgnomeprintui-2.2 -DHAVE_GNOME=1
This archive was generated by hypermail 2.1.4 : Tue May 13 2003 - 01:42:56 EDT