libgcrypt 1.7.0 fails to be created
Closed, ResolvedPublic

Description

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
--with-gpg-error-prefix=/www/data/sys/permail/gpg/devel
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':
/www/data/sys/permail/setup/devel/rpgpg/work/libgcrypt-1.7.0/cipher/pubkey-util.c:279:
multiple definition of `_gcry_pk_util_get_nbits'
pubkey.o:/www/data/sys/permail/setup/devel/rpgpg/work/libgcrypt-1.7.0/tests/pubkey.c:171:
first defined here
collect2: ld returned 1 exit status

Details

Version
1.7.0
perske set Version to 1.7.0.Apr 25 2016, 7:14 PM
perske added projects: libgcrypt, Bug Report.
perske added a subscriber: perske.
werner added a subscriber: werner.Apr 26 2016, 11:37 AM

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 closed this task as Resolved.
werner claimed this task.

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 <jussi.kivilinna@iki.fi>
+
+ Fix static build.
+ * tests/pubkey.c (_gcry_pk_util_get_nbits): Make function 'static'.

Thank you very much, the case can be closed.

perske reopened this task as Open.Jul 31 2016, 12:11 AM
gniibe closed this task as Resolved.Aug 1 2016, 8:45 AM