show
gress_ssl.c:377: undefined reference to `SSL_get1_peer_certificate'
SSL_get1_peer_certificate源码里调用的是SSL_get_peer_certificate,而报错的是SSL_get1_peer_certificate这个函数,所以问题和某个编译选项有关
./config --prefix=/usr/local --openssldir=/etc/ssl --libdir=lib -DOPENSSL_NO_GOST zlib shared
make
sudo make install
sudo rm -fr /usr/bin/openssl
sudo ln -s /usr/local/bin/openssl /usr/bin/openssl
sudo ln -s /usr/local/include/openssl/ /usr/include/openssl
echo "/usr/local/lib/" >> /etc/ld.so.conf
ldconfig
阅读(186) | 评论(0) | 转发(0) |