Page MenuHome GnuPG

libgcrypt fails to link with GNU gold
Closed, InvalidPublic

Description

libgcrypt-1.4.0 fails to link with GNU gold

Here is the error:

make[2]: Entering directory `/home/vmplanet/svn/gnome2/libgcrypt-1.4.0/tests'
/bin/bash ../libtool --tag=CC --mode=link gcc -I/opt/gnome2/include -g -Os
-fvisibility=hidden -Wall -Wpointer-arith -o ac-schemes ac-schemes.o
../src/libgcrypt.la
gcc -I/opt/gnome2/include -g -Os -fvisibility=hidden -Wall -Wpointer-arith -o
.libs/ac-schemes ac-schemes.o ../src/.libs/libgcrypt.so -Wl,--rpath
-Wl,/opt/gnome2/lib
/opt/gold/bin/ld: ac-schemes.o: in function scheme_get_opts:ac-schemes.c:87:
undefined reference to 'gpg_err_code_from_errno'
collect2: ld returned 1 exit status

$ ld --version
GNU gold (GNU Binutils 2.18.50.20080404) 1.4
Copyright 2008 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

It builds fine on the same system with: GNU ld (GNU Binutils for Ubuntu)
2.18.0.20080103

Details

Version
1.4.0

Event Timeline

Given that libgcrypt builds fine on non-GNU platforms, I suggest to take this to
the GNU gold developers.