I'm having a problem building GPG on my system; when I try to run make it fairly well before it suddenly bails out with an error. Here's my latest result from running it:make  all-recursiveMaking all in m4make[2]: Nothing to be done for `all'.Making all in glmake  all-ammake[3]: Nothing to be done for `all-am'.Making all in includemake[2]: Nothing to be done for `all'.Making all in jnlibmake[2]: Nothing to be done for `all'.Making all in commonmake  all-ammake[3]: Nothing to be done for `all-am'.Making all in kbxmake[2]: Nothing to be done for `all'.Making all in g10make[2]: Nothing to be done for `all'.Making all in keyservermake[2]: Nothing to be done for `all'.Making all in smmake[2]: Nothing to be done for `all'.Making all in agentmake[2]: Nothing to be done for `all'.Making all in scdgcc -DHAVE_CONFIG_H -I. -I..  -I../gl -I../intl -I../common  -DLOCALEDIR=\/usr/local/share/locale\ -DGNUPG_BINDIR=\/usr/local/bin\   -DGNUPG_LIBEXECDIR=\/usr/local/libexec\-DGNUPG_LIBDIR=\/usr/local/lib/gnupg\-DGNUPG_DATADIR=\/usr/local/share/gnupg\  -DGNUPG_SYSCONFDIR=\/usr/local/etc/gnupg\ -g -O2 -Wall -Wno-pointer-sign -Wpointer-arith -MT gnupg_pcsc_wrapper-pcsc-wrapper.o -MD -MP -MF .deps/gnupg_pcsc_wrapper-pcsc-wrapper.Tpo -c -o gnupg_pcsc_wrapper-pcsc-wrapper.o   `test -f 'pcsc-wrapper.c' || echo './'`pcsc-wrapper.cpcsc-wrapper.c:69: error: expected =, ,, ;, asm or __attribute__ before intpcsc-wrapper.c:129: error: expected specifier-qualifier-list before pcsc_dword_tpcsc-wrapper.c:149: error: expected =, ,, ;, asm or __attribute__ before pcsc_protocolpcsc-wrapper.c:153: error: expected ) before scopepcsc-wrapper.c:160: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:162: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:164: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:167: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:168: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:170: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:172: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:173: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:174: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:175: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:177: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:179: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:180: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:181: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:182: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:185: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:189: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:192: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:194: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:196: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:198: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:200: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c:201: error: expected declaration specifiers or ... before pcsc_dword_tpcsc-wrapper.c: In function load_pcsc_driver:pcsc-wrapper.c:347: error: pcsc_establish_context undeclared (first use in this function)pcsc-wrapper.c:347: error: (Each undeclared identifier is reported only oncepcsc-wrapper.c:347: error: for each function it appears in.)pcsc-wrapper.c: In function handle_open:pcsc-wrapper.c:411: error: pcsc_dword_t undeclared (first use in this function)pcsc-wrapper.c:411: error: expected ; before nreaderpcsc-wrapper.c:413: error: expected ; before card_statepcsc-wrapper.c:428: warning: implicit declaration of function pcsc_establish_contextpcsc-wrapper.c:437: error: nreader undeclared (first use in this function)pcsc-wrapper.c:437: error: too many arguments to function pcsc_list_readerspcsc-wrapper.c:446: error: too many arguments to function pcsc_list_readerspcsc-wrapper.c:487: error: pcsc_protocol undeclared (first use in this function)pcsc-wrapper.c:487: warning: passing argument 3 of pcsc_connect makes pointer from integer without a castpcsc-wrapper.c:487: error: too many arguments to function pcsc_connectpcsc-wrapper.c:509: error: expected ; before readerlenpcsc-wrapper.c:511: error: atrlen undeclared (first use in this function)pcsc-wrapper.c:512: error: readerlen undeclared (first use in this function)pcsc-wrapper.c:515: error: card_state undeclared (first use in this function)pcsc-wrapper.c:515: error: card_protocol undeclared (first use in this function)pcsc-wrapper.c:516: error: too many arguments to function pcsc_statuspcsc-wrapper.c: In function handle_close:pcsc-wrapper.c:558: error: pcsc_protocol undeclared (first use in this function)pcsc-wrapper.c: In function handle_status:pcsc-wrapper.c:587: error: struct pcsc_readerstate_s has no member named current_statepcsc-wrapper.c:590: error: too many arguments to function pcsc_get_status_changepcsc-wrapper.c:602: error: struct pcsc_readerstate_s has no member named event_statepcsc-wrapper.c:604: error: struct pcsc_readerstate_s has no member named event_statepcsc-wrapper.c:607: error: struct pcsc_readerstate_s has no member named event_statepcsc-wrapper.c:614: error: struct pcsc_readerstate_s has no member named event_statepcsc-wrapper.c:624: error: struct pcsc_readerstate_s has no member named event_statepcsc-wrapper.c:625: error: struct pcsc_readerstate_s has no member named event_statepcsc-wrapper.c:626: error: struct pcsc_readerstate_s has no member named event_statepcsc-wrapper.c:627: error: struct pcsc_readerstate_s has no member named event_statepcsc-wrapper.c:629: error: pcsc_protocol undeclared (first use in this function)pcsc-wrapper.c: In function handle_reset:pcsc-wrapper.c:645: error: pcsc_dword_t undeclared (first use in this function)pcsc-wrapper.c:645: error: expected ; before nreaderpcsc-wrapper.c:646: error: expected ; before card_statepcsc-wrapper.c:660: error: too many arguments to function pcsc_disconnectpcsc-wrapper.c:678: error: pcsc_protocol undeclared (first use in this function)pcsc-wrapper.c:678: warning: passing argument 3 of pcsc_connect makes pointer from integer without a castpcsc-wrapper.c:678: error: too many arguments to function pcsc_connectpcsc-wrapper.c:689: error: atrlen undeclared (first use in this function)pcsc-wrapper.c:690: error: nreader undeclared (first use in this function)pcsc-wrapper.c:693: error: card_state undeclared (first use in this function)pcsc-wrapper.c:693: error: card_protocol undeclared (first use in this function)pcsc-wrapper.c:694: error: too many arguments to function pcsc_statuspcsc-wrapper.c: In function handle_transmit:pcsc-wrapper.c:716: error: pcsc_dword_t undeclared (first use in this function)pcsc-wrapper.c:716: error: expected ; before recv_lenpcsc-wrapper.c:729: error: pcsc_protocol undeclared (first use in this function)pcsc-wrapper.c:734: error: recv_len undeclared (first use in this function)pcsc-wrapper.c:736: warning: passing argument 4 of pcsc_transmit makes pointer from integer without a castpcsc-wrapper.c:736: error: too many arguments to function pcsc_transmitpcsc-wrapper.c: In function handle_control:pcsc-wrapper.c:756: error: pcsc_dword_t undeclared (first use in this function)pcsc-wrapper.c:756: error: expected ; before ioctl_codepcsc-wrapper.c:757: error: expected ; before recv_lenpcsc-wrapper.c:763: error: ioctl_code undeclared (first use in this function)pcsc-wrapper.c:767: error: recv_len undeclared (first use in this function)pcsc-wrapper.c:769: error: too many arguments to function pcsc_controlmake[2]: *** [gnupg_pcsc_wrapper-pcsc-wrapper.o] Error 1make[1]: *** [all-recursive] Error 1make: *** [all] Error 2
Problem building GPG
osx;compiling;gpg
Your version of the GPG source code has a typo on line 69 in scd/pcsc-wrapper.c: someone mistyped unsigned as unsinged. Fix that, and GPG will compile.