gnupg 2.0 Build fails

ahoeltje at ahoeltje at
Fri Jun 21 20:09:36 CEST 2013

Hello gpg Folks,

I downloaded the gnupg-2.0.20 files and the associated required lib
sources, including pth-2.0.7, today.  The configure, make, make check,
and make install, all went well in this order:


However the make for gnupg fails with this compiler error:

    gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wno-pointer-sign
    -Wpointer-arith -MT allocsa.o -MD -MP -MF .deps/allocsa.Tpo -c -o
    allocsa.o allocsa.c
    In file included from allocsa.c:21:
    In file included from ./allocsa.h:23:
    In file included from
    In file included from
    In file included from
    In file included from ./stdint.h:66:
          unknown type name 'intmax_t'
      extern intmax_t imaxabs(intmax_t j);

My system is an iMac running OSX 10.8.3 but it would appear that my
recent XCode 5 update has upset the magic of stdint.h and intmax_t.
Notice the "MacOSX10.9.sdk" in the include path that make is looking at:


This is totaly wrong.  It should be:


I do not see any notes in the README or INSTALL regarding how to tell
make which Mac SDK to use.  Is there a ./configuration option?  Do you
have any suggestion on how I get around this?


Allan Hoeltje
Oakland, California

More information about the Gnupg-users mailing list