Den torsdagen den 8:e januari 2015 kl. 18:29:40 UTC+1 skrev
mpie...@gmail.com:
> On Thursday, January 8, 2015 12:19:07 PM UTC-5, Martin Knafve wrote:
> > I am unable to compile OpenSSL 1.0.1k on Windows. I posted this to openssl-users, but I'm not sure if that mailing list is being monitored by OpenSSL devs and this is an urgent issue to me. I'm sorry if I'm not following the mailing list guide lines.
> >
> > The original post:
> >
> > I've been using the following script to compile OpenSSL previously:
> >
> > Perl Configure no-asm VC-WIN32
> > ms\do_ms
> > nmake -f ms\ntdll.mak
> >
> > This script has been working fine with previous version of OpenSSL. I just confirmed it compiles with 1.0.1i and 1.0.1j without errors.
> >
> > When using the same script to compile 1.0.1k, I get the following compilation error when I run nmake -f ms\ntdll.mak:
> >
> > cl /Fotmp32dll\cversion.obj -Iinc32 -Itmp32dll /MD /Ox /O2 /Ob2 -DOPENSSL_THREADS -DDSO_WIN32 -W3 -Gs0 -GF -Gy -nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -D_CRT_SECURE_
> > NO_DEPRECATE -DOPENSSL_USE_APPLINK -I. -DOPENSSL_NO_RC5 -DOPENSSL_NO_MD2 -DOPENSSL_NO_KRB5 -DOPENSSL_NO_JPAKE -DOPENSSL_NO_STATIC_ENGINE /Zi /Fdtmp32dll/lib -D_WINDLL -DOPENSSL_BUILD_SHLIBCRYPTO -DMK
> > 1MF_BUILD -DMK1MF_PLATFORM_VC_WIN32 -c .\crypto\cversion.c
> > cversion.c
> > .\crypto\cversion.c(80) : error C2065: 'cflags' : undeclared identifier
> > .\crypto\cversion.c(80) : warning C4047: 'return' : 'const char *' differs in levels of indirection from 'int'
> > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.EXE"' : return code '0x2'
> >
> >
>
> I just ran into this as well... I made the same edit as you did and succeeded as well.
The fix is actually incorrect. The function should return something like "compiler: CFLAGS".