cURL cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1488 Building libcurl 7.41.0 with OpenSSL on Windows using VC makefile fails (+ solution)

From: Oliver Kuckertz <mologie_at_users.sf.net>
Date: Thu, 05 Mar 2015 08:47:17 +0000

---
** [bugs:#1488] Building libcurl 7.41.0 with OpenSSL on Windows using VC makefile fails (+ solution)**
**Status:** open
**Created:** Thu Mar 05, 2015 08:47 AM UTC by Oliver Kuckertz
**Last Updated:** Thu Mar 05, 2015 08:47 AM UTC
**Owner:** nobody
Hello,
I am building libcurl 7.41.0 using VC 12 on Windows 8.1 64-bit with the following command:
nmake /f Makefile.vc MODE=static WITH_SSL=static WITH_CARES=static WITH_ZLIB=static GEN_PDF=no DEBUG=false VC=12 RTLIBCFG=static
The compiler output contains various errors describing that structures such as OCSP_BASICRESP (access on line lib/vtls/openssl.c:1337) are undefined.
Related thread on mailing list (I did not post there, but it turned up on Google and did not contain a solution) containing compiler output:
http://curl.haxx.se/mail/lib-2015-02/0197.html
The cause for this issue apparently is a recently introduced check for USE_OPENSSL on line 58 of openssl.c. When not defined, some OpenSSL headers (such as ocsp.h) are not included.
The solution is to define USE_OPENSSL in MakefileBuild.vc. Specifically, change line 58 to:
SSL_CFLAGS   = /DUSE_SSLEAY /DUSE_OPENSSL /I"$(DEVEL_INCLUDE)/openssl"
Oliver
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2015-03-05

These mail archives are generated by hypermail.