Announcement

Collapse
No announcement yet.

pts/gcrypt install fail

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • pts/gcrypt install fail

    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

  • #2
    Patch applied, thanks!
    Michael Larabel
    https://www.michaellarabel.com/

    Comment


    • #3
      Plus signs in patch did not make it to 1.0.2 install.sh

      Unfortunately, the plus signs in the patch did not make it into install.sh so the tests/Makefile patch does not apply. Here is a correct install.sh version:

      Code:
      #!/bin/sh
      
      mkdir $HOME/gpgerror
      tar -jxf libgpg-error-1.7.tar.bz2
      cd libgpg-error-1.7/
      ./configure --prefix=$HOME/gpgerror
      make -j $NUM_CPU_JOBS
      make install
      cd ~
      rm -rf libgpg-error-1.7/
      
      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 \$? > ~/install-exit-status
      cd ~
      
      echo "#!/bin/sh
      ./libgcrypt-1.4.4/tests/benchmark \$@ > \$LOG_FILE 2>&1
      echo \$? > ~/test-exit-status" > gcrypt
      chmod +x gcrypt

      Comment

      Working...
      X