gnupg 2.0.20 on osx

2013-05-11 Thread Michael
Hi,



i tried to compile the new version (2.0.20) on osx with 10.8.3 and xcode 4.6.2.

I get a lot of errors from from the pcsc-wrapper:

csc-wrapper.c:69: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'int'
pcsc-wrapper.c:129: error: expected specifier-qualifier-list before
'pcsc_dword_t'
pcsc-wrapper.c:149: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'pcsc_protocol'
pcsc-wrapper.c:153: error: expected ')' before 'scope'
pcsc-wrapper.c:160: error: expected declaration specifiers or '...'
before 'pcsc_dword_t'
pcsc-wrapper.c:162: error: expected declaration specifiers or '...'
before 'pcsc_dword_t'
pcsc-wrapper.c:164: error: expected declaration specifiers or '...'
before 'pcsc_dword_t'
pcsc-wrapper.c:167: error: expected declaration specifiers or '...'
before 'pcsc_dword_t'
pcsc-wrapper.c:168: error: expected declaration specifiers or '...'
before 'pcsc_dword_t'
...

any suggestions?

cu

Michael

 


smime.p7s
Description: S/MIME Cryptographic Signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: gnupg 2.0.20 on osx

2013-05-11 Thread Werner Koch
On Sat, 11 May 2013 20:05, so...@dersonic.org said:

 any suggestions?

Yes, please apply the patch below.  Seems nobody tried to build the beta
on an Apple.


Salam-Shalom,

   Werner


From 8ddf604659b93754ffa6dea295678a8adc293f90 Mon Sep 17 00:00:00 2001
From: Werner Koch w...@gnupg.org
Date: Thu, 25 Apr 2013 12:00:16 +0100
Subject: [PATCH] Fix syntax error for building on APPLE.

* scd/pcsc-wrapper.c [__APPLE__]: Fix syntax error.
--

For W32 and probably for Cygwin we don't need the wrapper, thus the
problems does not exhibit itself.
---
 scd/pcsc-wrapper.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scd/pcsc-wrapper.c b/scd/pcsc-wrapper.c
index 7d9415a..f3d92ff 100644
--- a/scd/pcsc-wrapper.c
+++ b/scd/pcsc-wrapper.c
@@ -66,7 +66,7 @@
 static int verbose;
 
 #if defined(__APPLE__) || defined(_WIN32) || defined(__CYGWIN__)
-typedef unsinged int pcsc_dword_t;
+typedef unsigned int pcsc_dword_t;
 #else
 typedef unsigned long pcsc_dword_t;
 #endif
-- 
1.7.7.1


-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users