curl-library
Re: [RELEASE] curl and libcurl 7.40.1
From: Jan Ehrhardt <phpdev_at_ehrhardt.nl>
Date: Wed, 25 Feb 2015 10:58:21 +0100
Date: Wed, 25 Feb 2015 10:58:21 +0100
When compiling with VC11 I am getting a lot of errors, starting with
OCSP_BASICRESP: undeclared identifier.
Configure line:
nmake /f Makefile.vc mode=static VC=11 WITH_DEVEL=D:\repo\curl_deps.x86
WITH_SSL=dll WITH_ZLIB=static WITH_SSH2=static ENABLE_WINSSL=no
USE_IDN=yes ENABLE_IPV6=yes GEN_PDB=yes DEBUG=no MACHINE=x86
This is the same commandline as the PHP devs use, with the exception
that I link ssh2 statically. See https://github.com/winlibs/cURL
If I copy everything from the 7.41.0 release except the openssl.h and
openssl.c it builds fine. My OpenSSL version: 1.0.1L
Jan
PS. Shouldn't the subject be referring to 7.41.0 in stead of 7.40.1?
-- cl.exe /O2 /DNDEBUG /MD /DCURL_STATICLIB /I. /I ../lib /I../include /nologo /W3 /EH sc /DWIN32 /FD /c /DBUILDING_LIBCURL /I"..\..\win32build.vc11/include" /DUSE_SSLEAY /I"..\. .\win32build.vc11/include/openssl" /DHAVE_ZLIB_H /DHAVE_ZLIB /DHAVE_LIBZ /DHAVE_LIBSSH2 /DH AVE_LIBSSH2_H /DLIBSSH2_WIN32 /DLIBSSH2_LIBRARY /DUSE_LIBSSH2 /I..\..\win32build.vc11/inclu de/libssh2 /DUSE_WIN32_IDN /DWANT_IDN_PROTOTYPES /DUSE_IPV6 /DUSE_WINDOWS_SSPI /Zi /Fd". .\builds\libcurl-vc11-x86-release-static-ssl-dll-zlib-static-ssh2-static-ipv6-sspi-obj-lib\ libcurl_a.pdb" /Fo"..\builds\libcurl-vc11-x86-release-static-ssl-dll-zlib-static-ssh2-stati c-ipv6-sspi-obj-lib/vtls/openssl.obj" ..\lib\vtls\openssl.c openssl.c ..\lib\vtls\openssl.c(1337) : error C2065: 'OCSP_BASICRESP' : undeclared identifier ..\lib\vtls\openssl.c(1337) : error C2065: 'br' : undeclared identifier ..\lib\vtls\openssl.c(1337) : warning C4047: '=' : 'int' differs in levels of indirection f rom 'void *' ..\lib\vtls\openssl.c(1337) : error C2106: '=' : left operand must be l-value ..\lib\vtls\openssl.c(1338) : error C2275: 'X509_STORE' : illegal use of this type as an ex pression C:\php-sdk\win32build.vc11\include\openssl/ossl_typ.h(159) : see declaration of 'X5 09_STORE' ..\lib\vtls\openssl.c(1338) : error C2065: 'st' : undeclared identifier ..\lib\vtls\openssl.c(1339) : error C2143: syntax error : missing ';' before 'type' ..\lib\vtls\openssl.c(1341) : error C2143: syntax error : missing ';' before 'type' ..\lib\vtls\openssl.c(1349) : warning C4013: 'd2i_OCSP_RESPONSE' undefined; assuming extern returning int ..\lib\vtls\openssl.c(1349) : error C2065: 'len' : undeclared identifier ..\lib\vtls\openssl.c(1349) : warning C4047: '=' : 'OCSP_RESPONSE *' differs in levels of i ndirection from 'int' ..\lib\vtls\openssl.c(1356) : warning C4013: 'OCSP_response_status' undefined; assuming ext ern returning int ..\lib\vtls\openssl.c(1357) : error C2065: 'OCSP_RESPONSE_STATUS_SUCCESSFUL' : undeclared i dentifier ..\lib\vtls\openssl.c(1359) : warning C4013: 'OCSP_response_status_str' undefined; assuming extern returning int ..\lib\vtls\openssl.c(1364) : error C2065: 'br' : undeclared identifier ..\lib\vtls\openssl.c(1364) : warning C4013: 'OCSP_response_get1_basic' undefined; assuming extern returning int ..\lib\vtls\openssl.c(1365) : error C2065: 'br' : undeclared identifier ..\lib\vtls\openssl.c(1371) : error C2065: 'ch' : undeclared identifier ..\lib\vtls\openssl.c(1371) : warning C4047: '=' : 'int' differs in levels of indirection f rom 'stack_st_X509 *' ..\lib\vtls\openssl.c(1372) : error C2065: 'st' : undeclared identifier ..\lib\vtls\openssl.c(1372) : warning C4047: '=' : 'int' differs in levels of indirection f rom 'X509_STORE *' ..\lib\vtls\openssl.c(1382) : error C2065: 'ch' : undeclared identifier ..\lib\vtls\openssl.c(1382) : warning C4047: ':' : 'int' differs in levels of indirection f rom 'stack_st_X509 *' ..\lib\vtls\openssl.c(1382) : error C2065: 'br' : undeclared identifier ..\lib\vtls\openssl.c(1382) : error C2223: left of '->certs' must point to struct/union ..\lib\vtls\openssl.c(1382) : fatal error C1903: unable to recover from previous error(s); stopping compilation NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl. exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nma ke.exe"' : return code '0x2' Stop. ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2015-02-25