I'm trying to build curl with boringssl on Ubuntu 16.04.
I have boringssl built OK.
With curl 7.53 I configure using:
./configure --with-ssl=/home/john/dev/boringssl
and the output says " SSL support: enabled (BoringSSL)" OK.
But when I make
, I get errors starting with
CC vtls/libcurl_la-openssl.lo
In file included from vtls/openssl.c:86:0:
/usr/include/openssl/ui.h:85:1: error: unknown type name ‘UI’
UI *UI_new(void);
^
/usr/include/openssl/ui.h:86:1: error: unknown type name ‘UI’
UI *UI_new_method(const UI_METHOD *method);
^
/usr/include/openssl/ui.h:86:25: error: unknown type name ‘UI_METHOD’
UI *UI_new_method(const UI_METHOD *method);
^
and ending with
Makefile:2023: recipe for target 'vtls/libcurl_la-openssl.lo' failed
make[2]: *** [vtls/libcurl_la-openssl.lo] Error 1
make[2]: Leaving directory '/home/john/dev/curl-7.53.0/lib'
Makefile:734: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/john/dev/curl-7.53.0/lib'
Makefile:893: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
I'm not sure if this /usr/include/openssl/ui.h
header should be used when curl is configured to build with boringssl, it seems this file only exists in OpenSSL, not boringssl.
lib
dir after building boringssl, so I madelib
a symlink tobuild
(although this only contains one lib, libgtest.a). Which are the two libs which I should put in thelib
dir? The configure run ending with: checking for ssl with RSAglue/rsaref libs in use... checking for SSL_connect in -lssl... (cached) no no configure: error: OpenSSL libs and/or directories were not found where specified! – Sismondi