V
V
Vladimir Revyakin2018-07-18 16:38:17
PHP
Vladimir Revyakin, 2018-07-18 16:38:17

Problem compiling php 7.1?

make does not pass after compilation, it displays errors:

ext/openssl/.libs/xp_ssl.o: In function `sk_X509_num':
/usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `sk_X509_value':
/usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/xp_ssl.o: In function `sk_X509_num':
/usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `enable_server_sni':
/opt/php-7.1.19/ext/openssl/xp_ssl.c:1359: undefined reference to `TLS_server_method'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto':
/opt/php-7.1.19/ext/openssl/xp_ssl.c:1512: undefined reference to `TLS_client_method'
/opt/php-7.1.19/ext/openssl/xp_ssl.c:1594: undefined reference to `SSL_CTX_set_options'
ext/openssl/.libs/xp_ssl.o: In function `set_server_specific_opts':
/opt/php-7.1.19/ext/openssl/xp_ssl.c:1241: undefined reference to `SSL_CTX_get_options'
/opt/php-7.1.19/ext/openssl/xp_ssl.c:1268: undefined reference to `SSL_CTX_set_options'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto':
/opt/php-7.1.19/ext/openssl/xp_ssl.c:1512: undefined reference to `TLS_server_method'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_num':
/usr/local/include/openssl/x509v3.h:165: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_value':
/usr/local/include/openssl/x509v3.h:165: undefined reference to `OPENSSL_sk_value'
ext/ftp/.libs/php_ftp.o: In function `zm_startup_ftp':
/opt/php-7.1.19/ext/ftp/php_ftp.c:313: undefined reference to `OPENSSL_init_ssl'
/opt/php-7.1.19/ext/ftp/php_ftp.c:314: undefined reference to `OPENSSL_init_crypto'
/opt/php-7.1.19/ext/ftp/php_ftp.c:315: undefined reference to `OPENSSL_init_crypto'
/opt/php-7.1.19/ext/ftp/php_ftp.c:316: undefined reference to `OPENSSL_init_crypto'
/opt/php-7.1.19/ext/ftp/php_ftp.c:318: undefined reference to `OPENSSL_init_ssl'
ext/ftp/.libs/ftp.o: In function `ftp_login':
/opt/php-7.1.19/ext/ftp/ftp.c:283: undefined reference to `TLS_client_method'
/opt/php-7.1.19/ext/ftp/ftp.c:292: undefined reference to `SSL_CTX_set_options'
ext/phar/.libs/util.o: In function `phar_verify_signature':
/opt/php-7.1.19/ext/phar/util.c:1563: undefined reference to `EVP_MD_CTX_new'
/opt/php-7.1.19/ext/phar/util.c:1595: undefined reference to `EVP_MD_CTX_free'
/opt/php-7.1.19/ext/phar/util.c:1586: undefined reference to `EVP_MD_CTX_free'
ext/phar/.libs/util.o: In function `phar_create_signature':
/opt/php-7.1.19/ext/phar/util.c:1860: undefined reference to `EVP_MD_CTX_new'
/opt/php-7.1.19/ext/phar/util.c:1892: undefined reference to `EVP_MD_CTX_free'
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Ошибка 1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
trincoder, 2019-07-11
@yoker360

check openssl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question