I'm attempting to build a Windows DLL for openssl-fips-1.1.2, and it's crashing the MS linker. I have MinGW 5.1.3, MSYS 1.0.10, gcc 3.4.5. I see the same thing with a variety of different versions of the MS toolchain, including Visual Studio 2008 and 2003, and MS DDKs (3790 and 6000). I did the following: tar xvfz openssl-fips-1.1.2.tar.gz cd openssl-fips-1.1.2 ./config fips make make install cd .. tar xvfz openssl-0.9.7m.tar.gz cd openssl-0.9.7m ./config fips --with-fipslibdir=/usr/local/ssl/lib \ --openssldir=/home/Administrator/openssl-0.9.7m --prefix=/ssl make make install Then I go to a Microsoft command prompt and attempt the following: cd openssl-0.9.7m perl Configure VC-WIN32 ms\do_ms nmake -f ms\ntdll.mak When it gets to the first linker pass, the linker crashes: link /nologo /subsystem:console /machine:I386 /opt:ref /dll /base:0xFB00000 /out:out32dll\libeay32.dll /def:ms/LIBEAY32.def @C:\DOCUME~1\sjuengst\LOCALS~\Temp\nmF8.tmp ms/LIBEAY32.def(7) : warning LNK4017: DESCRIPTION statement not supported for the target platform; ignored Creating library out32dll\libeay32.lib and object out32dll\libeay32.exp LINK : fatal error LNK1000: Internal error during IMAGE::BuildImage Version 9.00.21022.08 ExceptionCode = C0000005 ExceptionFlags = 00000000 ExceptionAddress = 00466581 (00400000) "E:\Microsoft Visual Studio 9.0\VC\BIN\link.exe" NumberParameters = 00000002 ExceptionInformation[ 0] = 00000001 ExceptionInformation[ 1] = 00000008 CONTEXT: Eax = 0000000C Esp = 0012EE58 Ebx = 00000000 Ebp = 0012EEEC Ecx = 000EC044 Esi = 015C002C Edx = 00000010 Edi = 00000000 Eip = 00466581 EFlags = 00010206 SegCs = 0000001B SegDs = 00000023 SegSs = 00000023 SegEs = 00000023 SegFs = 0000003B SegGs = 00000000 Dr0 = 00000000 Dr3 = 00000000 Dr1 = 00000000 Dr6 = 00000000 Dr2 = 00000000 Dr7 = 00000000 First stage Link failure at util\fipslink.pl line 42. NMAKE : fatal error U1077: 'C:\Perl\bin\perl.EXE' : return code '0x9' Stop. Incidentally, the static library version builds ok. Unfortunately, when I try to link that static library into *my* DLL, I get the same linker crash.
I saw an email on this list earlier in which another user is experiencing the same issue (Ming Rutar 2008-03-13), but no answer. Can anyone suggest a resolution or point out what we're doing wrong? Thanks in advance, Stuart Juengst Fortress Technologies ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]