Hello, Frank!
FB> Hello, i have tryed to compile openssl but it stops with the error:
FB> gcc -o out\md2test tmp\md2test.o out\libssl.a out\libcrypto.a -lwsock32
FB> -lgdi32
FB> out\libcrypto.a(cryptlib.o)(.text+0x2b9):cryptlib.c: undefined reference to
FB> `OPENSSL_ia32_cpuid'
Yeah, I got that error too. Here's what I did to fix this:
OPENSSL_ia32_cpuid is defined in crypto\x86cpuid.pl so I ran
perl x86cpuid.pl gaswin > x86cpuid.s
as -o x86cpuid.o x86cpuid.s
then I copied x86cpuid.o to the tmp folder (where the make file creates
all the *.o files) and added $(OBJ_D)\x86cpuid.o to the dependencies for
CRYPTOOBJ in the ms\mingw32a.mak makefile. Then I just ran the rest of
the mingw32.bat file
------------- system clipboard -------->8----
perl util\mk1mf.pl gaswin Mingw32 >ms\mingw32a.mak
echo Generating DLL definition files
perl util\mkdef.pl 32 libeay >ms\libeay32.def
if errorlevel 1 goto end
perl util\mkdef.pl 32 ssleay >ms\ssleay32.def
if errorlevel 1 goto end
rem copy ms\tlhelp32.h outinc
echo Building the libraries
mingw32-make -f ms/mingw32a.mak
if errorlevel 1 goto end
echo Generating the DLLs and input libraries
dllwrap --dllname libeay32.dll --output-lib out/libeay32.a --def
ms/libeay32.def out/libcrypto.a -lwsock32 -lgdi32
if errorlevel 1 goto end
dllwrap --dllname libssl32.dll --output-lib out/libssl32.a --def
ms/ssleay32.def out/libssl.a out/libeay32.a
if errorlevel 1 goto end
echo Done compiling OpenSSL
:end
----8<---- end of system clipboard ----------
after that, compilation went ok and all tests passed.
--
Bye,
Alex.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]