Home > OS >  Libevent openssl installation error
Libevent openssl installation error

Time:10-01

Install libevent today and encountered the following error at compile time, baidu Google search, no similar situation, specially to consult BBS great god,
 
[root @ CLD - test libevent - 2.1.8 - stable] # make
Make all - am
Make [1] : if the directory `/TMP/libevent - 2.1.8 - stable '
CCLD sample/le - proxy
The sample/le - proxy. O: function In ` main ':
/TMP/libevent - 2.1.8 - stable/sample/le - proxy. C: 273: undefined reference to ` TLS_method '
../libs/libevent_openssl. So: undefined reference to ` BIO_meth_set_read '
../libs/libevent_openssl. So: undefined reference to ` BIO_set_shutdown '
../libs/libevent_openssl. So: undefined reference to ` BIO_get_data '
../libs/libevent_openssl. So: undefined reference to ` BIO_meth_set_write '
../libs/libevent_openssl. So: undefined reference to ` BIO_meth_set_ctrl '
../libs/libevent_openssl. So: undefined reference to ` BIO_meth_set_create '
../libs/libevent_openssl. So: undefined reference to ` BIO_meth_set_puts'
../libs/libevent_openssl. So: undefined reference to ` BIO_get_shutdown '
../libs/libevent_openssl. So: undefined reference to ` BIO_meth_new '
../libs/libevent_openssl. So: undefined reference to ` BIO_set_init '
../libs/libevent_openssl. So: undefined reference to ` BIO_get_init '
../libs/libevent_openssl. So: undefined reference to ` BIO_meth_set_destroy '
../libs/libevent_openssl. So: undefined reference to ` BIO_set_data '
Collect2: error: ld returned 1 exit status
Make [1] : * * * sample/le - proxy Error 1
Make [1] : brigade directory `/TMP/libevent - 2.1.8 - stable '
Make: * * * [all] Error 2

CodePudding user response:

General version problem, originally met, can try to change the version

CodePudding user response:

reference 1st floor response: KEL - 1
general version problem, originally met, can try to change the version


Change the 2.1 and 2.0 are useless, later can't, can only be solved through yum install,

CodePudding user response:

refer to the second floor Xia Hui ah response:
Quote: refer to 1st floor response: KEL - 1

General version problem, originally met, can try to change the version


Change the 2.1 and 2.0 are useless, later can't, can only be solved through yum install,
this is pretty troubling, that seemed to solve for a long time, various rely on,,, the solution is OK

CodePudding user response:

Tested 2.1.8 anyway can't install, then tin 2.0.22 version installed successfully, but has yet to find the reason,

CodePudding user response:

Just use 2.1.8 version I also encountered this problem, depend on the header file with a layer of more openssl, it is ok to remove,
Depends on the correct header file option is:
CFLAGS="-i/home/smile/openssl - 1.0.2 e/libs - build/include/"

Note: 2.1.8 libevnt need openssl dynamic library to compile,
  • Related