Reply to topic

Strange error compiling kdepimlibs (gpgme related)

User avatar furanku
Registered Member
Posts
100
Karma
0
OS
Hi!

Compiling kdepimlibs (SVN Trunk versions a few minutes ago) I get the following error
Code: Select all
[  1%] Building CXX object gpgme++/CMakeFiles/gpgmepp-pthread.dir/key.o
In file included from /usr/include/gpgme/gpgme.h:43,
                 from /usr/local/kdesvn/kdepimlibs/gpgme++/util.h:30,
                 from /usr/local/kdesvn/kdepimlibs/gpgme++/key.cpp:27:
/usr/include/gpg-error.h:284: error: redefinition of ‘GPG_ERR_INV_PASSPHRASE’
/usr/include/gpg-error.h:138: error: ‘GPG_ERR_INV_PASSPHRASE’ previously defined here
make[2]: *** [gpgme++/CMakeFiles/gpgmepp-pthread.dir/key.o] Error 1
make[1]: *** [gpgme++/CMakeFiles/gpgmepp-pthread.dir/all] Error 2
make: *** [all] Error 2


That is very strange, because when I take a look at /usr/include/gpg-error.h I find there in line 138:
Code: Select all
    GPG_ERR_INV_PASSPHRASE = 31,
but in line 284
Code: Select all
    GPG_ERR_NO_PASSPHRASE = 177,


So it's not the same name, it's INV in one definition and NO in the other.

Has anybody an idea whats going on? Do kdepimlibs do some dirty preprocessor tricks defining NO to be INV? gpgme version is 1.1.8.

[Edit] Found the culprint. It's
Code: Select all
#ifndef HAVE_GPG_ERR_NO_PASSPHRASE
# define GPG_ERR_NO_PASSPHRASE GPG_ERR_INV_PASSPHRASE
#endif

in kdepimlibs/gpgme++/config-gpgme++.h.cmake.

Last edited by furanku on Tue Apr 14, 2009 5:26 pm, edited 1 time in total.

Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], ghevan, Google [Bot], Majestic-12 [Bot], Snudl, Sogou [Bot], Sugarmaster, Tooniis