Build openvpn with the modified OpenSSL [duplicate]

对着背影说爱祢 提交于 2019-12-12 01:54:54

问题


I installed openssl-1.0.2 with some logging code that added to original version by ./config shared --prefix=/usr, make and make install commands. After that I installed openvpn according to ./configure OPENSSL_SSL_LIBS="-L/usr/ -lssl" OPENSSL_SSL_CFLAGS="-I/usr/include/" OPENSSL_CRYPTO_LIBS="-L/usr/ -lcrypto" OPENSSL_CRYPTO_CFLAGS="-I/usr/include/", make and make install.

When I make vpn tunnel, I dont see any logs in log system file. I think openvpn is using another OpenSSL. I dont know how to resolve this problem...


回答1:


Are you sure the libraries get installed to /usr and not /usr/lib? Because usually, the prefix is only a prefix, not the whole path. The argument for -L however is a full path, so try -L/usr/lib.
If that still doesn't work, try the full path with -l: -l/usr/lib/libcrypto.<x>, where <x> is the shared library extension of your OS, which is .so for Linux, .dylib for OS X and .dll for Windows.

Also, I think people would be grateful if you took a little more time formatting your question.



来源:https://stackoverflow.com/questions/28214304/build-openvpn-with-the-modified-openssl

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!