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
本文介绍了解决在编译openssl时遇到的RAND_egd隐式函数声明错误的方法,涉及确保openssl版本升级、指定编译选项CPPFLAGS、LDFLAGS和LIBS,并配置--with-libssl选项。
1152

被折叠的 条评论
为什么被折叠?



