Page MenuHome GnuPG

libgcrypt 1.7.0 fails to be created
Closed, ResolvedPublic


After successful compilation of:
pth-2.0.7.tar.gz with --enable-static --disable-shared
libgpg-error-1.22.tar.bz2 with --enable-static --disable-shared
libassuan-2.4.2.tar.bz2 with --enable-static --disable-shared
libgcrypt-1.7.0.tar.bz2 cannot be created:

libtool: link: gcc -I/www/data/sys/permail/gpg/devel/include -g -O2
-fvisibility=hidden -Wall -o pubkey pubkey.o ../src/.libs/libgcrypt.a
-L/www/data/sys/permail/gpg/devel/lib ../compat/.libs/libcompat.a
/www/data/sys/permail/gpg/devel/lib/libgpg-error.a -lrt
../src/.libs/libgcrypt.a(pubkey-util.o): In function `_gcry_pk_util_get_nbits':
multiple definition of `_gcry_pk_util_get_nbits'
first defined here
collect2: ld returned 1 exit status



Event Timeline

perske added projects: libgcrypt, Bug Report.
perske added a subscriber: perske.

For help on building libgcrypt, please ask on gcrypt-devel ML.

Your report is too sparse to help you. When writing to the ML you should
specify the used OS, any special configuration you have, and a detailed
description of what you did.

werner claimed this task.
werner added a project: Not A Bug.

Sorry for not providing further infos, I did not find the time before now.
I just tested with version 1.7.2; there the problem has disappeared.

I guess this change mentioned in the change log is the relevant one:
+2016-07-01 Jussi Kivilinna <>
+ Fix static build.
+ * tests/pubkey.c (_gcry_pk_util_get_nbits): Make function 'static'.

Thank you very much, the case can be closed.