On 03/06/2012 11:13 PM, David C. Rankin wrote:
Surely the '-lsane-Wl' isn't blowing up because it isn't looking in /usr/lib for a library -- couldn't be... I'll pick it up with fresh eyes tomorrow. If anybody sees anything, please... Let me know :)
OK, I cheated and turned KOOKA and LIBKSCAN off and it's working:
cmake ${srcdir}/${pkgname#*-} \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DCMAKE_LIBRARY_PATH="${CMAKE_LIBRARY_PATH}:/usr/lib:/usr/lib/sane" \ -DCMAKE_INSTALL_PREFIX=${TDEDIR} \ -DWITH_T1LIB=ON \ -DWITH_LIBPAPER=ON \ -DWITH_TIFF=ON \ -DWITH_OPENEXR=ON \ -DWITH_PDF=ON \ -DBUILD_DOC=ON \ -DBUILD_KAMERA=ON \ -DBUILD_KCOLOREDIT=ON \ -DBUILD_KDVI=ON \ -DBUILD_KFAX=ON \ -DBUILD_KFAXVIEW=ON \ -DBUILD_KFILE_PLUGINS=ON \ -DBUILD_KGAMMA=ON \ -DBUILD_KGHOSTVIEW=ON \ -DBUILD_KICONEDIT=ON \ -DBUILD_KMRML=ON \ -DBUILD_KOLOURPAINT=ON \ -DBUILD_KOOKA=OFF \ -DBUILD_KPDF=ON \ -DBUILD_KPOVMODELER=ON \ -DBUILD_KRULER=ON \ -DBUILD_KSNAPSHOT=ON \ -DBUILD_KSVG=ON \ -DBUILD_KUICKSHOW=ON \ -DBUILD_KVIEW=ON \ -DBUILD_KVIEWSHELL=ON \ -DBUILD_LIBKSCAN=OFF
The problem could be in KOOKA instead of LIBKSCAN.
But crapeth...
[ 64%] Building CXX object ksnapshot/CMakeFiles/ksnapshot.dir/ksnapshotwidget.cpp.o cd /build/src/build/ksnapshot && /usr/bin/c++ -DHAVE_CONFIG_H -DKSNAPVERSION="0.7" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -I/build/src/build/ksnapshot -I/build/src/tdegraphics/ksnapshot -I/build/src/build -I/opt/trinity/include -I/opt/tqt3/include -I/opt/trinity/include/tqt -o CMakeFiles/ksnapshot.dir/ksnapshotwidget.cpp.o -c /build/src/build/ksnapshot/ksnapshotwidget.cpp Linking CXX executable ksnapshot cd /build/src/build/ksnapshot && /usr/bin/cmake -E cmake_link_script CMakeFiles/ksnapshot.dir/link.txt --verbose=1 /usr/bin/c++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu CMakeFiles/ksnapshot.dir/ksnapshotiface_skel.cpp.o CMakeFiles/ksnapshot.dir/main.cpp.o CMakeFiles/ksnapshot.dir/ksnapshot.cpp.o CMakeFiles/ksnapshot.dir/regiongrabber.cpp.o CMakeFiles/ksnapshot.dir/windowgrabber.cpp.o CMakeFiles/ksnapshot.dir/ksnapshotwidget.cpp.o -o ksnapshot -rdynamic -L/opt/trinity/lib -L/opt/tqt3/lib /opt/trinity/lib/libtdeprint.so.4.2.0 /opt/trinity/lib/libkio.so.4.2.0 /opt/trinity/lib/libtdeui.so.4.2.0 -lfreetype -lfontconfig /opt/trinity/lib/libtdesu.so.4.2.0 -lutil /opt/trinity/lib/libkwalletclient.so.1.0.1 /opt/trinity/lib/libtdecore.so.4.2.0 /opt/trinity/lib/libDCOP.so.4.2.0 /opt/trinity/lib/libtdefx.so.4.2.0 -ltqt -ltqt-mt -lXrender -lX11 -lz -lidn -lXcomposite -lICE -lSM -Wl,-rpath,/opt/trinity/lib:/opt/tqt3/lib: /usr/bin/ld: CMakeFiles/ksnapshot.dir/windowgrabber.cpp.o: undefined reference to symbol 'XShapeQueryExtension' /usr/bin/ld: note: 'XShapeQueryExtension' is defined in DSO /usr/lib/libXext.so.6 so try adding it to the linker command line /usr/lib/libXext.so.6: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[2]: *** [ksnapshot/ksnapshot] Error 1 make[2]: Leaving directory `/build/src/build' make[1]: *** [ksnapshot/CMakeFiles/ksnapshot.dir/all] Error 2 make[1]: Leaving directory `/build/src/build' make: *** [all] Error 2
This looks like a new bug due to gcc :| Gotta love building on the bleeding edge.