Bug 231054 - build fails - undefined symbol gpg_err_code_from_errno
Summary: build fails - undefined symbol gpg_err_code_from_errno
Status: RESOLVED FIXED
Alias: None
Product: kleopatra
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-17 02:57 UTC by tropikhajma
Modified: 2010-08-15 15:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch (514 bytes, patch)
2010-08-14 23:08 UTC, tropikhajma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tropikhajma 2010-03-17 02:57:15 UTC
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)
Comment 1 tropikhajma 2010-04-18 01:37:55 UTC
I have had to add -lgpg-error to the  CXXFLAGS
Comment 2 Thomas McGuire 2010-05-02 22:35:09 UTC
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.
Comment 3 tropikhajma 2010-08-14 23:08:17 UTC
Created attachment 50562 [details]
patch

this patch worked for me
Comment 4 Allen Winter 2010-08-15 00:43:24 UTC
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})
Comment 5 tropikhajma 2010-08-15 13:27:52 UTC
(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
Comment 6 Allen Winter 2010-08-15 15:34:45 UTC
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
Comment 7 Allen Winter 2010-08-15 15:36:06 UTC
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