vtls/openssl.c:276:5: error: implicit declaration of function ‘RAND_egd’ [-Werror=implicit-function-declaration]
int ret = RAND_egd(data->set.str[STRING_SSL_EGDSOCKET]?
解决办法:
1、确保下载并编译安装了openssl1.1;
2、openssl一般安装在 /usr/local/lib64目录下,
CPPFLAGS=-I/usr/local/include LDFLAGS="-L/usr/local/lib64 -Wl,-rpath,/usr/local/lib64" LIBS="-ldl" ./co
nfigure -prefix=/root/curl-7.75.0/out --with-libssl
即需要制定CPPFLAGS LDFLAGS LIBS 并且制定--with-libssl