我正在尝试在 Ubuntu 16.04 上使用boringssl 构建 curl。
我的boringssl建好了。
使用 curl 7.53 我配置使用:
./configure --with-ssl=/home/john/dev/boringssl
并且输出显示“SSL 支持:启用(BoringSSL)”OK。
但是当我make
开始时,我会收到错误
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);
^
并以
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
我不确定/usr/include/openssl/ui.h
当 curl 配置为使用boringssl 构建时是否应该使用此标头,看来此文件仅存在于OpenSSL 中,而不存在于boringssl 中。