[kde-linux] Koffice and libxml2.la

Rex Dieter rdieter at math.unl.edu
Fri Oct 21 14:20:58 UTC 2005

Jan Simonson wrote:

> When compiling koffice 1.4.2 from source on a FC4 system it stops 
> with:

> make[4]: Entering directory 
> `/home/kde3/koffice-1.4.2/filters/kword/msword'
> /bin/sh ../../../libtool --silent --mode=link --tag=CXX g++  
> -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE 
> -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith 
> -O2 -Wformat-security -Wmissing-format-attribute 
> -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common 
> -DQT_NO_TRANSLATION -DHAVE_KNEWSTUFF    -o libmswordimport.la 
> -rpath /opt/local/kde-3.4.3/lib/kde3 -module -avoid-version -module 
> -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined 
> -R /opt/local/kde-3.4.3/lib -R /opt/local/kde-3.4.3/lib 
> -R /opt/local/qt-3.3.5/lib -R /usr/X11R6/lib  mswordimport.lo 
> document.lo conversion.lo texthandler.lo tablehandler.lo 
> graphicshandler.lo ../../../lib/kofficeui/libkofficeui.la ../../../lib/kofficecore/libkofficecore.la ../../../lib/store/libkstore.la 
> -L/usr/local/lib -lwv2 -lgsf-1 -lgobject-2.0 -lxml2 -lpthread -lz -lm 
> -lglib-2.0
> grep: /usr/lib/libxml2.la: No such file or directory
> /bin/sed: can't read /usr/lib/libxml2.la: No such file or directory
> libtool: link: `/usr/lib/libxml2.la' is not a valid libtool archive
> make[4]: *** [libmswordimport.la] Fel 1

You need libxml2-devel installed.
$ yum install libxml2-devel
should do the trick.

However, not sure why you want to compile koffice-1.4.2 from source, 
since it's available from Fedora Extras:
$ yum install koffice-suite

-- Rex

More information about the kde-linux mailing list