Openoffice 2.0 build fails after libXft update to 2.1.7

Stephane E. Potvin sepotvin at videotron.ca
Wed Jul 20 12:14:09 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

After the recent update of libXft to version 2.1.7, it started using the
FT_GlyphSlot_Embolden function from freetype2 if it's available at
configure type. The freetype2 in the ports collection (v2.1.10) has this
symbol available. Openoffice2.0 is using it's own freetype2 library
(2.1.4) instead which doesn't have this symbol available. This leads to
the following error when trying to build the vcl/util submodule.

Making: ../unxfbsd.pro/lib/libvclplug_gtk680fi.so
g++-ooo -Wl,-z,combreloc -Wl,-rpath,'$ORIGIN' -shared -L../unxfbsd.pro/lib
- -L../lib -L/usr/ports/editors/openoffice-2.0-devel/work/solenv/unxfbsd/lib
- -L/usr/ports/editors/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/lib
- -L/usr/ports/editors/openoffice-2.0-devel/work/solenv/unxfbsd/lib
- -L/usr/local/jdk1.4.2/lib -L/usr/local/jdk1.4.2/jre/lib/i386
- -L/usr/local/jdk1.4.2/jre/lib/i386/client
- -L/usr/local/jdk1.4.2/jre/lib/i386/native_threads -L/usr/X11R6/lib
../unxfbsd.pro/slo/vclplug_gtk_dflt_version.o
../unxfbsd.pro/slo/vclplug_gtk_dflt_description.o -o
../unxfbsd.pro/lib/libvclplug_gtk680fi.so ../unxfbsd.pro/slo/gtkdata.o
../unxfbsd.pro/slo/gtkinst.o ../unxfbsd.pro/slo/gtksys.o
../unxfbsd.pro/slo/salnativewidgets-gtk.o ../unxfbsd.pro/slo/gtkframe.o
../unxfbsd.pro/slo/gtkobject.o -pthread -Wl,--rpath -Wl,/usr/local/lib
- -L/usr/X11R6/lib -L/usr/local/lib -lgtk-x11-2.0 -lgthread-2.0
- -lvclplug_gen680fi -lvcl680fi -lpsp680fi -lsot680fi -lutl680fi -ltl680fi
- -lcomphelp4gcc3 -lucbhelper3gcc3 -luno_cppuhelpergcc3 -luno_cppu
- -lvos3gcc3 -luno_sal -lX11 -pthread -lm -Wl,-Bdynamic -lstlport_gcc
rm -f ../unxfbsd.pro/lib/check_libvclplug_gtk680fi.so
mv ../unxfbsd.pro/lib/libvclplug_gtk680fi.so
../unxfbsd.pro/lib/check_libvclplug_gtk680fi.so
/usr/ports/editors/openoffice-2.0-devel/work/solenv/bin/checkdll.sh
- -L../unxfbsd.pro/lib -L../lib
- -L/usr/ports/editors/openoffice-2.0-devel/work/solenv/unxfbsd/lib
- -L/usr/ports/editors/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/lib
- -L/usr/ports/editors/openoffice-2.0-devel/work/solenv/unxfbsd/lib
- -L/usr/local/jdk1.4.2/lib -L/usr/local/jdk1.4.2/jre/lib/i386
- -L/usr/local/jdk1.4.2/jre/lib/i386/client
- -L/usr/local/jdk1.4.2/jre/lib/i386/native_threads -L/usr/X11R6/lib
../unxfbsd.pro/lib/check_libvclplug_gtk680fi.so
Checking DLL ../unxfbsd.pro/lib/check_libvclplug_gtk680fi.so ...: ERROR:
/usr/X11R6/lib/libXft.so.2: Undefined symbol "FT_GlyphSlot_Embolden"
dmake:  Error code 1, while making '../unxfbsd.pro/lib/libvclplug_gtk680fi.so'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making
/usr/ports/editors/openoffice-2.0-devel/work/vcl/util
dmake:  Error code 1, while making 'build_all'
'---* tg_merge.mk *---'
*** Error code 255

I was able to work around the problem by using the system freetype instead
of the bundled one. It compiled properly with it and everything seems ok
as far as I can tell from the few documents that I tried it with.

- --- Makefile    16 Jul 2005 08:17:46 -0000      1.190
+++ Makefile    19 Jul 2005 19:57:47 -0000
@@ -99,7 +99,7 @@
 PKGMESSAGE=    ${WRKDIR}/pkg-message
 NUMOFPROCESSES?=       1

- -CONFIGURE_ARGS+=       --with-gnu-cp=${LOCALBASE}/bin/gcp
- --with-gnu-patch=${LOCALBASE}/bin/gpatch --with-epm=internal
+CONFIGURE_ARGS+=       --with-gnu-cp=${LOCALBASE}/bin/gcp
- --with-gnu-patch=${LOCALBASE}/bin/gpatch --with-epm=internal
- --with-system-freetype

 .include <${FILESDIR}/Makefile.knobs>

Steph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC3kAOmdOXtTCX/nsRAjR8AKC9+uqiyltAyM7+3/jLShnOeiWuaACdHXy5
T9Lo6aGNCMOOTtlYqv7qMvQ=
=dv8K
-----END PGP SIGNATURE-----


More information about the freebsd-openoffice mailing list