GNOME Bugzilla – Bug 334704
cannot compile on Debian Sid
Last modified: 2006-04-12 00:05:03 UTC
Please describe the problem: Unresolved references to gpgme under the linking fase. See transcript Package: libgmime2.1-dev Status: install ok installed Priority: optional Section: libdevel Installed-Size: 776 Maintainer: Guus Sliepen <guus@debian.org> Architecture: i386 Source: gmime2.1 Version: 2.1.19-1 Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information: main.o: In function `main':/home/mir/source/balsa/balsa-2.3.12/src/main.c:650: undefined reference to `gpgme_check_version' :/home/mir/source/balsa/balsa-2.3.12/src/main.c:652: undefined reference to `gpgme_set_locale' :/home/mir/source/balsa/balsa-2.3.12/src/main.c:653: undefined reference to `gpgme_set_locale' ../libbalsa/libbalsa.a(rfc3156.o): In function `libbalsa_check_crypto_engine':/home/mir/source/balsa/balsa-2.3.12/libbalsa/rfc3156.c:75: undefined reference to `gpgme_engine_check_version' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/rfc3156.c:79: undefined reference to `gpgme_get_engine_info' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/rfc3156.c:111: undefined reference to `gpgme_get_protocol_name' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/rfc3156.c:101: undefined reference to `gpgme_get_protocol_name' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/rfc3156.c:106: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/rfc3156.c:106: undefined reference to `gpgme_strsource' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/rfc3156.c:84: undefined reference to `gpgme_get_protocol_name' ../libbalsa/libbalsa.a(rfc3156.o): In function `libbalsa_gpgme_sig_stat_to_gchar':/home/mir/source/balsa/balsa-2.3.12/libbalsa/rfc3156.c:1019: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/rfc3156.c:1019: undefined reference to `gpgme_strsource' ../libbalsa/libbalsa.a(rfc3156.o): In function `select_key_from_list':/home/mir/source/balsa/balsa-2.3.12/libbalsa/rfc3156.c:1388: undefined reference to `gpgme_get_protocol' ../libbalsa/libbalsa.a(gmime-gpgme-context.o): In function `g_mime_gpgme_context_class_init':/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:145: undefined reference to `gpgme_engine_check_version' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:150: undefined reference to `gpgme_engine_check_version' ../libbalsa/libbalsa.a(gmime-gpgme-context.o): In function `g_mime_gpgme_context_finalize':/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:176: undefined reference to `gpgme_release' ../libbalsa/libbalsa.a(gmime-gpgme-context.o): In function `g_mime_gpgme_hash_name':/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:257: undefined reference to `gpgme_get_protocol' ../libbalsa/libbalsa.a(gmime-gpgme-context.o): In function `g_mime_gpgme_verify':/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:479: undefined reference to `gpgme_get_protocol' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:482: undefined reference to `gpgme_data_new_from_cbs' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:493: undefined reference to `gpgme_data_new_from_cbs' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:505: undefined reference to `gpgme_op_verify' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:510: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:510: undefined reference to `gpgme_strsource' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:537: undefined reference to `gpgme_data_release' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:538: undefined reference to `gpgme_data_release' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:507: undefined reference to `gpgme_op_verify' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:485: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:485: undefined reference to `gpgme_strsource' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:496: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:496: undefined reference to `gpgme_strsource' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:499: undefined reference to `gpgme_data_release' ../libbalsa/libbalsa.a(gmime-gpgme-context.o): In function `g_mime_gpgme_decrypt':/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:684: undefined reference to `gpgme_get_protocol' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:692: undefined reference to `gpgme_set_passphrase_cb' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:698: undefined reference to `gpgme_data_new_from_cbs' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:707: undefined reference to `gpgme_data_new_from_cbs' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:718: undefined reference to `gpgme_op_decrypt_verify' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:729: undefined reference to `gpgme_data_release' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:730: undefined reference to `gpgme_data_release' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:695: undefined reference to `gpgme_set_passphrase_cb' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:689: undefined reference to `gpgme_set_passphrase_cb' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:702: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:702: undefined reference to `gpgme_strsource' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:710: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:710: undefined reference to `gpgme_strsource' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:726: undefined reference to `gpgme_data_release' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:722: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:722: undefined reference to `gpgme_strsource' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:725: undefined reference to `gpgme_data_release' ../libbalsa/libbalsa.a(gmime-gpgme-context.o): In function `g_mime_gpgme_context_new':/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:755: undefined reference to `gpgme_new' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:775: undefined reference to `gpgme_release' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:783: undefined reference to `gpgme_set_protocol' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:757: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:757: undefined reference to `gpgme_strsource' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:766: undefined reference to `gpgme_release' ../libbalsa/libbalsa.a(gmime-gpgme-context.o): In function `release_keylist':/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:1026: undefined reference to `gpgme_key_unref' ../libbalsa/libbalsa.a(gmime-gpgme-context.o): In function `get_key_from_name':/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:858: undefined reference to `gpgme_op_keylist_start' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:867: undefined reference to `gpgme_op_keylist_next' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:867: undefined reference to `gpgme_op_keylist_next' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:891: undefined reference to `gpgme_op_keylist_end' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:913: undefined reference to `gpgme_key_ref' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:914: undefined reference to `gpgme_key_unref' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:883: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:883: undefined reference to `gpgme_strsource' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:886: undefined reference to `gpgme_op_keylist_end' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:887: undefined reference to `gpgme_key_unref' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:921: undefined reference to `gpgme_get_protocol' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:948: undefined reference to `gpgme_key_unref' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:861: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:861: undefined reference to `gpgme_strsource' ../libbalsa/libbalsa.a(gmime-gpgme-context.o): In function `gpgme_add_signer':/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:977: undefined reference to `gpgme_signers_add' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:978: undefined reference to `gpgme_key_unref' ../libbalsa/libbalsa.a(gmime-gpgme-context.o): In function `g_mime_gpgme_sign':/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:369: undefined reference to `gpgme_get_protocol' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:385: undefined reference to `gpgme_set_armor' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:393: undefined reference to `gpgme_set_passphrase_cb' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:399: undefined reference to `gpgme_data_new_from_cbs' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:408: undefined reference to `gpgme_data_new_from_cbs' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:417: undefined reference to `gpgme_op_sign' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:430: undefined reference to `gpgme_op_sign_result' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:433: undefined reference to `gpgme_hash_algo_name' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:443: undefined reference to `gpgme_data_release' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:444: undefined reference to `gpgme_data_release' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:438: undefined reference to `gpgme_hash_algo_name' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:396: undefined reference to `gpgme_set_passphrase_cb' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:390: undefined reference to `gpgme_set_passphrase_cb' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:403: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:403: undefined reference to `gpgme_strsource' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:411: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:411: undefined reference to `gpgme_strsource' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:425: undefined reference to `gpgme_data_release' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:421: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:421: undefined reference to `gpgme_strsource' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:424: undefined reference to `gpgme_data_release' ../libbalsa/libbalsa.a(gmime-gpgme-context.o): In function `g_mime_gpgme_encrypt':/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:570: undefined reference to `gpgme_get_protocol' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:592: undefined reference to `gpgme_set_passphrase_cb' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:607: undefined reference to `gpgme_data_new_from_cbs' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:617: undefined reference to `gpgme_data_new_from_cbs' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:632: undefined reference to `gpgme_op_encrypt_sign' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:640: undefined reference to `gpgme_data_release' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:641: undefined reference to `gpgme_data_release' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:646: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:646: undefined reference to `gpgme_strsource' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:636: undefined reference to `gpgme_op_encrypt' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:604: undefined reference to `gpgme_set_armor' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:605: undefined reference to `gpgme_set_textmode' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:620: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:620: undefined reference to `gpgme_strsource' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:623: undefined reference to `gpgme_data_release' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:611: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:611: undefined reference to `gpgme_strsource' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:588: undefined reference to `gpgme_set_passphrase_cb' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:650: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-context.c:650: undefined reference to `gpgme_strsource' ../libbalsa/libbalsa.a(gmime-gpgme-signature.o): In function `g_mime_gpgme_sigstat_new_from_gpgme_ctx':/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-signature.c:92: undefined reference to `gpgme_get_protocol' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-signature.c:95: undefined reference to `gpgme_op_verify_result' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-signature.c:105: undefined reference to `gpgme_get_key' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-signature.c:107: undefined reference to `gpgme_strerror' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-signature.c:107: undefined reference to `gpgme_strsource' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-signature.c:149: undefined reference to `gpgme_key_unref' :/home/mir/source/balsa/balsa-2.3.12/libbalsa/gmime-gpgme-signature.c:149: undefined reference to `gpgme_key_unref' collect2: ld returned 1 exit status make[1]: *** [balsa] Fejl 1 make[1]: Forlader katalog '/home/mir/source/balsa/balsa-2.3.12/src' make: *** [all] Fejl 2
gpgme 1.1.2 is broken (see http://lists.gnupg.org/pipermail/gnupg-devel/2006-March/022707.html). To compile balsa - use the gpgme cvs *or* - apply this diff: http://cvs.gnupg.org/cgi-bin/viewcvs.cgi/trunk/gpgme/gpgme-config.in?root=GPGME&rev=1170&r1=1136&r2=1170 *or* - use gpgme 1.1.1.
*** Bug 334736 has been marked as a duplicate of this bug. ***
I have tried the patch but is does not make any difference. 1) The gpgme package for Debian Sid already takes care of adding support for threads 2) Also tried fixing it myself manually but the same errors shows up. As for downgrading to pgpme 1.1.1: This is not an option since version 1.1.1 is no longer available in the package archieve. My conclusion must therefore be that this is a balsa related bug? regards, Michael.
Did you reinstall gpgme after patching gpgme-config.in? If you don't want to, you could just patch /path/to/bin/gpgme-config (basically the same change, without the @HAVE_PTHREAD_TRUE@). If it *still* fails, could you post the output of the following? gpgme-config --thread=pthread --libs
Before manually editing the gpgme-config script it returned an error. After editing the script it produces this output: $ gpgme-config --thread=pthread --libs -lgpgme-pthread -lpthread -lgpg-error But the errors when compiling balsa still persists.
Did you reconfigure (./config.status --recheck) after fixing gpgme-config?
I did autoreconf -fm
Seems to have solved the problem:-) Running: make maintainer-clean ./bootstrap.sh dpkg-buildpackage did the trick:-)
A duplicate of this seems still be open at Debian (bug #358303).
Hi Peter, I have send a personal email to Martin Michlmayr - the bug reporter a Debian, directing him to this thread. Regards, Michael.
Thanks, Michael--I guess I could have done that! I've never figured out how one is supposed to comment on Debian bugs...
Neither have I. That's wy I always mail the reporter directly.