Andreas Jellinghaus wrote:
> https://www.opensc-project.org/files/openct/testing/
> https://www.opensc-project.org/files/openct/testing/openct-0.6.12-pre3.tar.gz
> 
> https://www.opensc-project.org/files/opensc/testing/
> https://www.opensc-project.org/files/opensc/testing/opensc-0.11.3-pre2.tar.gz
> 
> please test these new versions, if we find no show-stoppers I'd like
> to release them as new version, so we get all recent improvements out
> of the door to our users.
> 

VC++ 2005 has a number of problems in pkcs15init. Looks like "inline"
is treated differently on Windows then on Unix.  Google "vc inline function"
gives some clues. I think inline is for C++ but the modules are c,.
and the VC is treating inline as compiler directive to compile asm code 
inline(...).

configure and AC_INLINE tries to do the right thing for unix
but the src/include/winconfig.h is used to generate config.h on windows.

Here is a patch to wincofig.h to use _inline, and to fix another instance of
version number. (It comiples without error, but I have not tied any of the
pkcs15init routines that are affected.)


--- ,winconfig.h        Sun Aug 13 16:27:14 2006
+++ winconfig.h Thu Jul  5 13:41:58 2007
@@ -57,6 +57,8 @@
  #define putenv _putenv
  #endif

+#define inline  _inline
+
  #ifndef R_OK
  #define R_OK  4               /* test whether readable.  */
  #define W_OK  2               /* test whether writable.  */
@@ -71,7 +73,7 @@
  #define PATH_MAX _MAX_PATH

  #ifndef VERSION
-#define VERSION "0.11.2"
+#define VERSION "0.11.3"
  #endif

  /* src/common/getpass.c */




         cl /D_CRT_SECURE_NO_DEPRECATE /Zi /MD /nologo /DHAVE_CONFIG_H 
/I..\..\sr
c\include /I..\..\src\include\opensc /I..\..\src\common /I"D:\build\openssl-0.9.
7g\src\inc32" /I"C:\opt\zlib123-dll\include" /I"D:\opt\OpenSC\GnuWin32\include"
/D_WIN32_WINNT=0x0400 /DHAVE_OPENSSL /DHAVE_ZLIB_H /c profile.c pkcs15-lib.c key
cache.c pkcs15-miocos.c pkcs15-gpk.c pkcs15-cflex.c pkcs15-cardos.c pkcs15-jcop.
c pkcs15-starcos.c pkcs15-oberthur.c pkcs15-setcos.c pkcs15-incrypto34.c pkcs15-
muscle.c
profile.c
pkcs15-lib.c
keycache.c
pkcs15-miocos.c
pkcs15-gpk.c
pkcs15-cflex.c
pkcs15-cflex.c(496) : error C2054: expected '(' to follow 'inline'
pkcs15-cflex.c(498) : error C2085: 'put_pin' : not in formal parameter list
pkcs15-cflex.c(498) : error C2143: syntax error : missing ';' before '{'
pkcs15-cardos.c
pkcs15-cardos.c(87) : error C2054: expected '(' to follow 'inline'
pkcs15-cardos.c(88) : error C2085: 'tlv_init' : not in formal parameter list
pkcs15-cardos.c(88) : error C2143: syntax error : missing ';' before '{'
pkcs15-cardos.c(95) : error C2054: expected '(' to follow 'inline'
pkcs15-cardos.c(96) : error C2085: 'tlv_next' : not in formal parameter list
pkcs15-cardos.c(96) : error C2143: syntax error : missing ';' before '{'
pkcs15-cardos.c(104) : error C2054: expected '(' to follow 'inline'
pkcs15-cardos.c(105) : error C2085: 'tlv_add' : not in formal parameter list
pkcs15-cardos.c(105) : error C2143: syntax error : missing ';' before '{'
pkcs15-jcop.c
pkcs15-starcos.c
pkcs15-oberthur.c
pkcs15-setcos.c
pkcs15-incrypto34.c
pkcs15-incrypto34.c(91) : error C2054: expected '(' to follow 'inline'
pkcs15-incrypto34.c(92) : error C2085: 'tlv_init' : not in formal parameter list

pkcs15-incrypto34.c(92) : error C2143: syntax error : missing ';' before '{'
pkcs15-incrypto34.c(99) : error C2054: expected '(' to follow 'inline'
pkcs15-incrypto34.c(100) : error C2085: 'tlv_next' : not in formal parameter lis
t
pkcs15-incrypto34.c(100) : error C2143: syntax error : missing ';' before '{'
pkcs15-incrypto34.c(108) : error C2054: expected '(' to follow 'inline'
pkcs15-incrypto34.c(109) : error C2085: 'tlv_add' : not in formal parameter list

pkcs15-incrypto34.c(109) : error C2143: syntax error : missing ';' before '{'
pkcs15-muscle.c
Generating Code...
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1073: don't know how to make '..\pkcs15init\pkcs15init.lib'

Stop.
> Thanks, Andreas
> _______________________________________________
> opensc-devel mailing list
> opensc-devel@lists.opensc-project.org
> http://www.opensc-project.org/mailman/listinfo/opensc-devel
> 
> 

-- 

  Douglas E. Engert  <[EMAIL PROTECTED]>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to