curl-library
Re: Build in mingw for libcurl with OpenSSL and HTTP2 support fails with "undefined reference to 'sk_num'" in openssl.c
Date: Wed, 22 Mar 2017 15:03:34 -0400
On 3/22/2017 11:59 AM, Reese Grimsley wrote:
>
> I built nghttp2 and openssl (1.1.0e), and ran ./configure in the
> mingw32 shell of msys2. The output from configure told me that openssl
> and http2 were both enabled. When calling make, it shows CC
> libcurl_la-foo.lo for a number of files (~50), and then gets down to
> the line "CCLD libcurl.la <http://libcurl.la>", and fails here. I get
> about 15 messages stating an undefined reference (e.g.
> vtls/.libs/libcurl_la-openssl.o:openssl.c:(.text+0xbda): undefined
> reference to '|sk_num' OR
> vtls/.libs/libcurl_la-openssl.o:openssl.c:(.text+0x48f9): undefined
> reference to '|ERR_free_strings'). Following these lines are the
> actual error messages:
>
> vtls/.libs/libcurl_la-openssl.o:openssl.c:(.text+0x4912): undefined
> reference to 'SSL_COMP_free_compression_methods'
>
There was an issue with that but it was fixed last year [1]. Since you
are building 7.53.1 I can only guess that some earlier version of
OpenSSL includes was used, since libcurl only calls that function in
certain 1.0.2 versions [2]. You may need to specify
--with-ssl=/your/ssl/dir or set PKG_CONFIG_LIBDIR. You should be able to
see in the configure output what version it detects, it will look like this:
checking for OpenSSL headers version... 1.0.2 - 0x100020bfL
checking for OpenSSL library version... 1.0.2
checking for OpenSSL headers and library versions matching... yes
[1]: https://github.com/curl/curl/issues/860
[2]:
https://github.com/curl/curl/blob/curl-7_53_1/lib/vtls/openssl.c#L136-L140
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-03-22