Okie by adding this one  bufferoverflowU.lib, I was able to surpass the error.

Thanks,
Justin


--- On Wed, 1/14/09, Justin A <j95...@yahoo.com> wrote:
From: Justin A <j95...@yahoo.com>
Subject: Re: Problem building Openssl-0.9.8j with fips
To: openssl-users@openssl.org
Date: Wednesday, January 14, 2009, 11:13 AM

Hello Dr. Steve,

Thank you for your response. 

I tried the workaround you mentioned (util\pl\VC-32.pl )  changed line 408 to 
$ret.= "$mwex \$(EX_LIBS) " if ($files =~ /O_FIPSCANISTER/ && 
!$fipscanisterbuild);

Still getting the same error 

========
        perl util/copy.pl ".\engines\e_capi_err.h" "tmp32\e_capi_err.h"
Copying: ./engines/e_capi_err.h to tmp32/e_capi_err.h
        cl /Fotmp32\fips_standalone_sha1.obj -Iinc32 -Itmp32 /MD /Ox /O2 /Ob2 /W
3 /WX /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_END
IAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE /Fdout32
-DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPE
NSSL_NO_CMS -DOPENSSL_NO_JPAKE
 -DOPENSSL_NO_CAPIENG -DOPENSSL_NO_KRB5 -DOPENSSL_
FIPS -DOPENSSL_NO_DYNAMIC_ENGINE /Zl  -c .\fips\sha\fips_standalone_sha1.c
fips_standalone_sha1.c
        link /nologo /subsystem:console /opt:ref /out:out32\fips_standalone_sha1
.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\nm144.tmp
fips_standalone_sha1.obj : error LNK2019: unresolved external symbol __security_
cookie referenced in function .hmac_init
fips_standalone_sha1.obj : error LNK2019: unresolved external symbol .__security
_check_cookie referenced in function .hmac_init
out32\fips_standalone_sha1.exe : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: 'link' : return
 code '0x460'
Stop.

===================

Thanks,
Justin


--- On Wed, 1/14/09, Dr. Stephen Henson <st...@openssl.org> wrote:
From: Dr. Stephen Henson <st...@openssl.org>
Subject: Re: Problem building Openssl-0.9.8j with fips
To: openssl-users@openssl.org
Date: Wednesday, January 14, 2009, 4:18 AM

On Tue, Jan 13, 2009, Justin A wrote:

> Dr. Stephen,
> 
> Thanks for your reply. After changing to what you have mentioned I am
getting this security error during linking.
> 
> 
> ===Error log ===
> C:\openssl-0.9.8j>nmake -f ms\nt.mak
> 
> Microsoft (R) Program Maintenance Utility   Version 7.00.8882
> Copyright (C) Microsoft Corp 1988-2000. All rights reserved.
> 
> Building OpenSSL
>
         cl /Fotmp32\fips_standalone_sha1.obj -Iinc32 -Itmp32
/MD /Ox /O2 /Ob2 /W
> 3 /WX /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN
-DL_END
> IAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
/Fdout32
> -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2
-DOPE
> NSSL_NO_CMS -DOPENSSL_NO_JPAKE -DOPENSSL_NO_CAPIENG -DOPENSSL_NO_KRB5
-DOPENSSL_
> FIPS -DOPENSSL_NO_DYNAMIC_ENGINE /Zl  -c
.\fips\sha\fips_standalone_sha1.c
> fips_standalone_sha1.c
>         link /nologo /subsystem:console /opt:ref
/out:out32\fips_standalone_sha1
> .exe
@C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\nm137.tmp
> fips_standalone_sha1.obj : error LNK2019: unresolved external symbol
__security_
> cookie referenced in function .hmac_init
>
 fips_standalone_sha1.obj : error LNK2019: unresolved external symbol
.__security
> _check_cookie referenced in function .hmac_init
> out32\fips_standalone_sha1.exe : fatal error LNK1120: 2 unresolved
externals
> NMAKE : fatal error U1077: 'link' : return code '0x460'
> Stop.
> 

OK, don't have access to that platform so try this...

In the file util/pl/VC-32.pl line 408 is:

$ret.= "$mwex advapi32.lib " if ($files =~ /O_FIPSCANISTER/
&& !$fipscanisterbuild);

try changing that to:

$ret.= "$mwex \$(EX_LIBS) " if ($files =~ /O_FIPSCANISTER/
&& !$fipscanisterbuild);

Then do ms\do_ms (or ms\do_nasm) again to rebuild the makefiles and
retry the
build. If that works I'll commit the changes.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Homepage:
 http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org



      


      

Reply via email to