Hello,

I was trying to build the OpenSSL 0.9.7 beta1 source.
The steps that I went through were

perl Configure VC-WIN32
ms\do_ms
nmake /f ms\ntdll.mak

I was able to build libeay32.dll and ssleay32.dll but the make process
failed while building evp_test.c. The exact message produced was :

        cl /Fotmp32dll\evp_test.obj -Iinc32 -Itmp32dll /MD /W3 /WX /G5 /Ox
/O2 /Ob2 /Gs0 /GF /Gy /no
logo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32
/Fdout32dll -DOPENSSL_NO_K
RB5  -c .\crypto\evp\evp_test.c
evp_test.c
.\crypto\evp\evp_test.c(361) : error C2220: warning treated as error - no
object file generated
.\crypto\evp\evp_test.c(361) : warning C4013: 'strsep' undefined; assuming
extern returning int
.\crypto\evp\evp_test.c(361) : warning C4047: 'function' : 'const char *'
differs in levels of indir
ection from 'int '
.\crypto\evp\evp_test.c(361) : warning C4024: 'atoi' : different types for
formal and actual paramet
er 1
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

On removing /WX from ntdll.mak got a linking error:
        link /nologo /subsystem:console /machine:I386 /opt:ref
/out:out32dll\evp_test.exe @C:\DOCUME
~1\BSHAH~1.PSI\LOCALS~1\Temp\nma01300.
evp_test.obj : error LNK2001: unresolved external symbol _strsep
out32dll\evp_test.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.

Finally, changed evp_test.c. On line 361 of crypto\evp\evp_test.c changed
the function call from strsep() to sstrsep() which is an existing function.
The code compiled this time. Also, ran ms\test.bat and it passed all the
tests.
Is this the right fix though ?

Regards,
Bhavin

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to