Problem building koffice on an 64bit opensuse 11.0

Michael Jansen kde at michael-jansen.biz
Fri Sep 5 01:04:53 CEST 2008


Hi

Since some time i have a link failure when compiling koffice. 

/usr/bin/c++  -fPIC -pipe -O0 --pedantic -Wno-long-long -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-
arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-
hidden -g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc  -shared -Wl,-
soname,libkritagmagickexport.so -o ../../../lib/libkritagmagickexport.so CMakeFiles/kritagmagickexport.dir/kritagmagickexport_automoc.o 
CMakeFiles/kritagmagickexport.dir/magickexport.o CMakeFiles/kritagmagickexport.dir/kis_image_magick_converter.o -L/local/build/kde/trunk/bld/koffice/lib -
L/opt/qt4.4/lib -L/opt/kde4svn/lib64 ../../../lib/libkritaui.so.5.0.0 -L/usr/lib -lGraphicsMagick -llcms -lfreetype -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -
lpthread ../../../lib/libkritaimage.so.5.0.0 -lGLU -lGL -lSM -lICE -lX11 -lXext -lXft -lXau -lXdmcp -lXpm /opt/qt4.4/lib/libQtOpenGL.so 
../../../lib/libkoguiutils.so.5.0.0 -lkio -lkdeui -lkdecore ../../../lib/libflake.so.5.0.0 ../../../lib/libkoresources.so.5.0.0 
../../../lib/libpigmentcms.so.5.0.0 ../../../lib/libkomain.so.5.0.0 ../../../lib/libkoodf.so.5.0.0 ../../../lib/libkostore.so.5.0.0 
/opt/qt4.4/lib/libQtDBus.so /opt/qt4.4/lib/libQtCore.so -lpthread /opt/qt4.4/lib/libQtNetwork.so /opt/qt4.4/lib/libQtSvg.so /opt/qt4.4/lib/libQtGui.so 
/opt/kde4svn/lib64/libkparts.so /opt/qt4.4/lib/libQt3Support.so /opt/qt4.4/lib/libQtXml.so -llcms /opt/kde4svn/lib64/libkdecore.so -Wl,-
rpath,/local/build/kde/trunk/bld/koffice/lib:/opt/qt4.4/lib:/opt/kde4svn/lib64 -Wl,-rpath-link,/local/build/kde/trunk/bld/koffice/lib

/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libGLU.so when searching for -lGLU
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL
collect2: ld returned 1 exit status
make[2]: *** [lib/libkritagmagickexport.so] Error 1


It gets pretty messed up when pasted into the mail :-(

The problem is that cmake correctly find the opengl lib under /usr/lib64/libGL.so. The message from cmake and CMakeCache.txt both show this path. All 
Makefiles are correct too. For some unknown reason the link.txt and relink.txt files contain -lGL instead. That fails because /usr/lib64 is not added with -
L .

Mike

-- 
Michael Jansen

http://www.michael-jansen.biz


More information about the Kde-buildsystem mailing list