cURL / Mailing Lists / curl-library / Single Mail

curl-library

CURL 7.45.0 compilation issues in VC9 (Visual Studio 2008)

From: Vipul Mehta <vipulmehta.1989_at_gmail.com>
Date: Wed, 25 Nov 2015 12:56:55 +0530

Hi,

I am getting lot of weird errors in the compilation of vtls/openssl.c while
building libcurl in Visual Studio 2008 (VC9):

C:\DEV\local_repository\third-party-libs\OpenSSL_New\Win64.r\install\include\openssl/ocsp.h(154)
: error C2059: syntax error : 'type'
1>C:\DEV\local_repository\third-party-libs\OpenSSL_New\Win64.r\install\include\openssl/ocsp.h(397)
: error C2059: syntax error : 'type'
1>C:\DEV\local_repository\third-party-libs\OpenSSL_New\Win64.r\install\include\openssl/ocsp.h(398)
: error C2059: syntax error : ','
1>C:\DEV\local_repository\third-party-libs\OpenSSL_New\Win64.r\install\include\openssl/ocsp.h(398)
: error C2143: syntax error : missing ')' before '('
1>C:\DEV\local_repository\third-party-libs\OpenSSL_New\Win64.r\install\include\openssl/ocsp.h(398)
: error C2143: syntax error : missing ')' before '('
1>C:\DEV\local_repository\third-party-libs\OpenSSL_New\Win64.r\install\include\openssl/ocsp.h(398)
: error C2091: function returns function
1>C:\DEV\local_repository\third-party-libs\OpenSSL_New\Win64.r\install\include\openssl/ocsp.h(398)
: error C2091: function returns function
1>C:\DEV\local_repository\third-party-libs\OpenSSL_New\Win64.r\install\include\openssl/ocsp.h(398)
: error C2143: syntax error : missing '{' before 'constant'
1>C:\DEV\local_repository\third-party-libs\OpenSSL_New\Win64.r\install\include\openssl/ocsp.h(398)
: error C2059: syntax error : '<Unknown>'
....
full compilation error stack -> http://ideone.com/7R9jin

OpenSSL version being used is 1.0.2

Build Configuration : x64 DLL Release - DLL OpenSSL
Preprocessor :
WIN64;NDEBUG;BUILDING_LIBCURL;USE_OPENSSL;HAVE_SPNEGO;HAVE_GSSAPI;HAVE_ZLIB_H;HAVE_LIBZ
Linker Input : ws2_32.lib wldap32.lib pmlibeay32.lib ssleay32.lib
gssapi64.lib krb5_64.lib zlib.lib

Code snippet from ocsp.h :
typedef struct ocsp_request_st {
    OCSP_REQINFO *tbsRequest;
    OCSP_SIGNATURE *optionalSignature; /* OPTIONAL */
Line 164 => } OCSP_REQUEST;

Line 398 => OCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, const char *path,
OCSP_REQUEST *req,
                               int maxline);

Looks like some problem with definition of OCSP_REQUEST, OCSP_REQ_CTX. Is
there any macro required to be defined/undefined somewhere ?

-- 
Regards,
Vipul

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-11-25