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 09:11:34 +0000

Haha, I have no idea. OpenSSL's ocsp.h was probably pulled in indirectly before (Maybe by older OpenSSL versions? I built a fresh copy of the latest version for this project just now.) Some other change within libcurl might be related to this too. This must be something more recent than the USE_OPENSSL check that I initially suspected - it cannot be coincidence that a similar post appeared on the mailing list a week ago.

Verification of that issue however is trivial: Insert an #error directive right after the #ifdef USE_OPENSSL, and it will abort the compilation without the suggested patch.

---
** [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 09:05 AM UTC
**Owner:** Daniel Stenberg
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.