Hello,
I'm trying to build kdepim 3.5.13 from SVN under RHEL6 with cmake.
When compiling I get the following error: (under libkdenetwork/gpgmepp)
cd /home/albator/rpmbuild/BUILD/kdepim/build/libkdenetwork/gpgmepp &&
/usr/bin/cmake -E cmake_link_script
CMakeFiles/gpgme++-shared.dir/link.txt --verbose=1
c++ -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-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,--no-undefined -shared -Wl,-soname,libgpgme++.so.0 -o
libgpgme++.so.0.4.0 CMakeFiles/gpgme++-shared.dir/context.cpp.o
CMakeFiles/gpgme++-shared.dir/key.cpp.o
CMakeFiles/gpgme++-shared.dir/trustitem.cpp.o
CMakeFiles/gpgme++-shared.dir/data.cpp.o
CMakeFiles/gpgme++-shared.dir/callbacks.cpp.o
CMakeFiles/gpgme++-shared.dir/eventloopinteractor.cpp.o
CMakeFiles/gpgme++-shared.dir/keylistresult.cpp.o
CMakeFiles/gpgme++-shared.dir/keygenerationresult.cpp.o
CMakeFiles/gpgme++-shared.dir/importresult.cpp.o
CMakeFiles/gpgme++-shared.dir/decryptionresult.cpp.o
CMakeFiles/gpgme++-shared.dir/verificationresult.cpp.o
CMakeFiles/gpgme++-shared.dir/signingresult.cpp.o
CMakeFiles/gpgme++-shared.dir/encryptionresult.cpp.o
CMakeFiles/gpgme++-shared.dir/engineinfo.cpp.o -L/opt/trinity/lib64
-L/usr/lib64/qt-3.3/lib -ltqt -lqt-mt -lgpgme
-Wl,-rpath,/opt/trinity/lib64:/usr/lib64/qt-3.3/lib:
CMakeFiles/gpgme++-shared.dir/callbacks.cpp.o: In function
`gpg_err_make_from_errno':
/usr/include/gpg-error.h:633: undefined reference to
`gpg_err_code_from_errno'
collect2: ld a retourné 1 code d'état d'exécution
It looks like the parameter -lgpg-error is missing after -lgpgme.
It links correctly if I add it manually.
Thanks
Francois Andriot
Looks like your gpg setup is not spitting out all the required libraries
when queried by the TDE build system. Can you see if the attached patch
fixes the problem?
Thanks!
Tim