Version: (using Devel) Compiler: Sun Studio 12 U1 OS: Solaris Installed from: Compiled sources building kdepim fails with the below error ... [ 20%] Building CXX object kleopatra/kwatchgnupg/CMakeFiles/kwatchgnupg.dir/tray.o [ 20%] Building CXX object kleopatra/kwatchgnupg/CMakeFiles/kwatchgnupg.dir/main.o Linking CXX executable kwatchgnupg Undefined first referenced symbol in file gpg_err_code_from_errno CMakeFiles/kwatchgnupg.dir/__/utils/gnupg-helper.o (symbol belongs to implicit dependency /usr/lib/libgpg-error.so.0) gpg_err_code_from_syserror CMakeFiles/kwatchgnupg.dir/__/utils/gnupg-helper.o (symbol belongs to implicit dependency /usr/lib/libgpg-error.so.0)
I have had to add -lgpg-error to the CXXFLAGS
Sorry, neither Christophe (our CMake guru) nor I know how to fix this problem properly. Changing CXXFLAGS is not a nice solution. The correct solution is likely to modify a target_link_library call somewhere. Can you try that out? If nothing else works, we can add a conditional for Sun Studio 12 compiler that changes the CXXFLAGS only for that compiler.
Created attachment 50562 [details] patch this patch worked for me
Please try this: In kwatchgnupg/CMakeLists.txt, replace target_link_libraries(kwatchgnupg ${KDE4_KDEUI_LIBS} kleo ${KDEPIMLIBS_GPGMEPP_LIBS}) with target_link_libraries(kwatchgnupg ${KDE4_KDEUI_LIBS} kleo ${QGPGME_LIBRARIES})
(In reply to comment #4) > Please try this: > > In kwatchgnupg/CMakeLists.txt, replace > target_link_libraries(kwatchgnupg ${KDE4_KDEUI_LIBS} kleo > ${KDEPIMLIBS_GPGMEPP_LIBS}) > > with > > target_link_libraries(kwatchgnupg ${KDE4_KDEUI_LIBS} kleo > ${QGPGME_LIBRARIES}) this worked too
SVN commit 1163983 by winterz: build on Solaris too BUG: 231054 M +2 -1 CMakeLists.txt WebSVN link: http://websvn.kde.org/?view=rev&revision=1163983
SVN commit 1163984 by winterz: build on Solaris too CCBUG: 231054 M +2 -1 CMakeLists.txt WebSVN link: http://websvn.kde.org/?view=rev&revision=1163984