Did a grep on CERT_SYSTEM_STORE_CURRENT_USER: it is defined in
wincrypt.h (@ ~ line 7377), which is a Microsoft-provided header file.

Anyway, sounds to me like the code does not #include that header file
in the 'proper places'. However, I see that wincrypt.h is included in
engines/e_capi.c right there (@ line 72), so this is a headscratcher.
I suggest dropping in a few #error lines in there at judicious places
to discover where and why the preprocessor does not reach that #define
in wincrypt.h... :-S


HTH,

Ger


On Mon, Aug 4, 2008 at 7:24 PM, Amadeu A. Barbosa Jr
<[EMAIL PROTECTED]> wrote:
> Hello again,
>
> Please, can someone help me? I need to compile openssl0.9.9 on Windows
> (MSVC or MinGW/MSYS based).
>
> Thanks.
> --
> Amadeu A. Barbosa Jr :: http://www.inf.puc-rio.br/~ajunior
>
>> Hello,
>>
>> I´m trying to compile openssl-snap-20080729 under MinGW/MSYS environment
>> but I have problems with some defines from wincrypt.h. I saw that in past
>> [1] you get similar problems but for now the ¨undef¨ fix seems no sense to
>> me.
>>
>> OBS: I´m using ActivePerl for symlink compatibility, when using perl from
>> mingw.org is needed a simple (and ugly) hack:
>> --- mklink.pl   Thu Feb  9 11:00:35 2006
>> +++ mklink-fix.pl       Tue Jul 29 16:32:51 2008
>> @@ -50,7 +50,7 @@ foreach $dirname (@from_path) {
>>  my $to = join('/', @to_path);
>>
>>  my $file;
>> -$symlink_exists=eval {symlink("",""); 1};
>> +$symlink_exists=0;
>>  foreach $file (@files) {
>>      my $err = "";
>>      if ($symlink_exists) {
>>
>> My step-by-step:
>> $ ./config --prefix=/mingw --openssldir=/mingw/openssl
>> (...)
>> Configured for mingw.
>>
>> $ make
>> (...)
>> gcc -I../include -DOPENSSL_THREADS  -DDSO_WIN32 -mno-cygwin -DL_ENDIAN
>> -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS
>> -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM
>> -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DWHIRLPOOL_ASM   -c -o
>> e_capi.o e_capi.c
>> e_capi.c: In function `capi_ctrl':
>> e_capi.c:321: error: `CERT_SYSTEM_STORE_CURRENT_USER' undeclared (first
>> use in this function)
>> e_capi.c:321: error: (Each undeclared identifier is reported only once
>> e_capi.c:321: error: for each function it appears in.)
>> e_capi.c: In function `capi_get_pkey':
>> e_capi.c:651: error: `DSSPUBKEY' undeclared (first use in this function)
>> e_capi.c:651: error: `dp' undeclared (first use in this function)
>> e_capi.c:654: error: syntax error before ')' token
>> e_capi.c:698: warning: long unsigned int format, ALG_ID arg (arg 4)
>> (...)
>>
>> Looking wincrypt.h from wine[3] or msdn[2] there is these defines, and I
>> couldn´t find newer versions of w32api that it could provides theses
>> defines. I´ll appreciate any help for this question.
>>
>> Thanks for advance!
>> [1] - http://rt.openssl.org/index.html?q=1693
>> [2] - http://doc.ddart.net/msdn/header/include/wincrypt.h.html
>> [3] - http://source.winehq.org/source/include/wincrypt.h
>> --
>> Amadeu A. Barbosa Jr :: http://www.inf.puc-rio.br/~ajunior
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]
>
>



-- 
Met vriendelijke groeten / Best regards,

Ger Hobbelt

--------------------------------------------------
web: http://www.hobbelt.com/
 http://www.hebbut.net/
mail: [EMAIL PROTECTED]
mobile: +31-6-11 120 978
--------------------------------------------------
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to