编译安装openssl3.0.10,在安装httpd出现错误。
一、出现如下错误;
ab.o: In function `ssl_print_cert_info':
/srv/httpd-2.4.57/support/ab.c:666: undefined reference to `X509_get_version'
/srv/httpd-2.4.57/support/ab.c:668: undefined reference to `X509_getm_notBefore'
/srv/httpd-2.4.57/support/ab.c:672: undefined reference to `X509_getm_notAfter'
ab.o: In function `sk_X509_num':
/usr/local/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_num'
ab.o: In function `sk_X509_value':
/usr/local/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_value'
ab.o: In function `main':
/srv/httpd-2.4.57/support/ab.c:2319: undefined reference to `TLS_client_method'
/srv/httpd-2.4.57/support/ab.c:2572: undefined reference to `TLS_client_method'
/srv/httpd-2.4.57/support/ab.c:2650: undefined reference to `OPENSSL_init_ssl'
/srv/httpd-2.4.57/support/ab.c:2651: undefined reference to `OPENSSL_init_ssl'
/srv/httpd-2.4.57/support/ab.c:2660: undefined reference to `SSL_CTX_set_options'
/srv/httpd-2.4.57/support/ab.c:2674: undefined reference to `SSL_CTX_set_ciphersuites'
ab.o: In function `test':
/srv/httpd-2.4.57/support/ab.c:2003: undefined reference to `SSL_in_init'
collect2: error: ld returned 1 exit status
make[2]: *** [ab] Error 1
make[2]: Leaving directory `/srv/httpd-2.4.57/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/srv/httpd-2.4.57/support'
make: *** [all-recursive] Error 1
二、卸载系统本身的openssl-devel
yum remove openssl-devel
在make编译安装httpd正常了
在此做个记录