gcrypt is failing to install for me because the custom GPG_ERROR_LIBS is not being passed on the command line.
I assume it works for most because it is picking up the system libgpg-error.
gcc -I...gpgerror/include -g -O2 -o .libs/register register.o ../src/.libs/libgcrypt.so -Wl,--rpath -Wl,/usr/local/lib
/usr/bin/ld: register.o: undefined reference to symbol 'gpg_strerror'
...gpgerror/lib/libgpg-error.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [register] Error 1
This patch to install.sh fixed it for me:
--- install.sh.orig 2013-04-01 19:37:33.026547858 -0500
+++ install.sh 2014-01-22 19:36:34.661937094 -0600
@@ -11,6 +11,19 @@
tar -jxf libgcrypt-1.4.4.tar.bz2
cd libgcrypt-1.4.4/
+patch -p0 <<'EOT'
+--- tests/Makefile.in~ 2009-01-22 12:16:51.000000000 -0600
++++ tests/Makefile.in 2014-01-22 19:30:52.289933436 -0600
+@@ -248,7 +248,7 @@
+ LIBGCRYPT_PUBKEY_CIPHERS = @LIBGCRYPT_PUBKEY_CIPHERS@
+ LIBGCRYPT_THREAD_MODULES = @LIBGCRYPT_THREAD_MODULES@
+ LIBOBJS = @LIBOBJS@
+-LIBS = @LIBS@
++LIBS = @GPG_ERROR_LIBS@
+ LIBTOOL = @LIBTOOL@
+ LN_S = @LN_S@
+ LTLIBOBJS = @LTLIBOBJS@
+EOT
./configure --with-gpg-error-prefix=$HOME/gpgerror
make -j $NUM_CPU_JOBS
echo \$? > ~/test-exit-status
Ed Swarthout
I assume it works for most because it is picking up the system libgpg-error.
gcc -I...gpgerror/include -g -O2 -o .libs/register register.o ../src/.libs/libgcrypt.so -Wl,--rpath -Wl,/usr/local/lib
/usr/bin/ld: register.o: undefined reference to symbol 'gpg_strerror'
...gpgerror/lib/libgpg-error.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [register] Error 1
This patch to install.sh fixed it for me:
--- install.sh.orig 2013-04-01 19:37:33.026547858 -0500
+++ install.sh 2014-01-22 19:36:34.661937094 -0600
@@ -11,6 +11,19 @@
tar -jxf libgcrypt-1.4.4.tar.bz2
cd libgcrypt-1.4.4/
+patch -p0 <<'EOT'
+--- tests/Makefile.in~ 2009-01-22 12:16:51.000000000 -0600
++++ tests/Makefile.in 2014-01-22 19:30:52.289933436 -0600
+@@ -248,7 +248,7 @@
+ LIBGCRYPT_PUBKEY_CIPHERS = @LIBGCRYPT_PUBKEY_CIPHERS@
+ LIBGCRYPT_THREAD_MODULES = @LIBGCRYPT_THREAD_MODULES@
+ LIBOBJS = @LIBOBJS@
+-LIBS = @LIBS@
++LIBS = @GPG_ERROR_LIBS@
+ LIBTOOL = @LIBTOOL@
+ LN_S = @LN_S@
+ LTLIBOBJS = @LTLIBOBJS@
+EOT
./configure --with-gpg-error-prefix=$HOME/gpgerror
make -j $NUM_CPU_JOBS
echo \$? > ~/test-exit-status
Ed Swarthout
Comment