GnuPG 2.0 compilation fails with "undefined reference to gpg_err_code_from_syserror"

Ralph Seichter gnupg-ml at seichter.de
Wed Nov 29 15:10:09 CET 2006


Werner Koch wrote:

> I can mitigate the problem by changing the order. However, these kinds
> of problems are not completly solvable.

Well, even though it is not a perfect solution, it might be a good idea
to check the user-supplied library directories before /usr/lib.

> As a quick hack, I suggest to fix pth-config by removing the
> superfluous -L/usr/lib.

I'll attach a small patch for the "configure" script of GnuPG 2.0.1
which works for me.

-- 
Mit freundlichen Grüßen / Sincerely
Dipl. Inform. Ralph Seichter

-------------- next part --------------
*** /tmp/gnupg-2.0.1-orig/configure	Tue Nov 28 17:05:22 2006
--- configure	Wed Nov 29 14:41:48 2006
***************
*** 7344,7351 ****
  
      if test $have_pth = yes; then
         PTH_CFLAGS=`$PTH_CONFIG --cflags`
!        PTH_LIBS=`$PTH_CONFIG --ldflags`
!        PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs --all`"
  
  cat >>confdefs.h <<\_ACEOF
  #define HAVE_PTH 1
--- 7344,7352 ----
  
      if test $have_pth = yes; then
         PTH_CFLAGS=`$PTH_CONFIG --cflags`
!        #PTH_LIBS=`$PTH_CONFIG --ldflags`
!        #PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs --all`"
!        PTH_LIBS="`$PTH_CONFIG --libs --all`"
  
  cat >>confdefs.h <<\_ACEOF
  #define HAVE_PTH 1


More information about the Gnupg-users mailing list