компиляция — PHP 5.6.x с исходной установкой с Apache, но происходит openssl erorr, разыменовывающий указатель на неполный тип

Я устанавливаю PHP 5.6.39 с Apache.
Мои параметры настройки, как показано ниже.

./configure --with-apxs2=/home1/apache/bin/apxs
--with-config-file-path=/home1/apache/conf/
--prefix=/home1/php
--enable-sysvsem
--enable-sysvshm
--enable-ftp
--enable-pdo
--with-zlib
--with-mcrypt=/home1/apache
--with-openssl=/home1/openssl

Я использую с опцией-openssl, как это. —с-OpenSSL = / home1 / OpenSSL
Потому что версия ОС openssl 1.0.1e, и я хочу использовать 1.1.0, как показано ниже

[root@localhost bin]# ./openssl //This openssl is located /home1/openssl/bin
OpenSSL> version
OpenSSL 1.1.0f  25 May 2017

На самом деле команда настройки проходит, но когда я вхожу делать я вижу этот экран.

/home1/php-5.6.39/ext/openssl/openssl.c: In function ‘zif_openssl_x509_parse’:
/home1/php-5.6.39/ext/openssl/openssl.c:1982: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:1983: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:2011: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c: In function ‘php_openssl_generate_private_key’:
/home1/php-5.6.39/ext/openssl/openssl.c:3420: warning: ‘RSA_generate_key’ is deprecated (declared at /home1/openssl/include/openssl/rsa.h:193)
/home1/php-5.6.39/ext/openssl/openssl.c:3428: warning: ‘DSA_generate_parameters’ is deprecated (declared at /home1/openssl/include/openssl/dsa.h:122)
/home1/php-5.6.39/ext/openssl/openssl.c:3446: warning: ‘DH_generate_parameters’ is deprecated (declared at /home1/openssl/include/openssl/dh.h:135)
/home1/php-5.6.39/ext/openssl/openssl.c: In function ‘php_openssl_is_private_key’:
/home1/php-5.6.39/ext/openssl/openssl.c:3485: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:3490: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:3490: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:3490: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:3503: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:3503: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:3503: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:3512: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:3512: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:3521: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c: In function ‘php_openssl_pkey_init_dsa’:
/home1/php-5.6.39/ext/openssl/openssl.c:3557: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:3557: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:3557: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:3560: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:3560: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:3569: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:3569: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c: In function ‘php_openssl_pkey_init_dh’:
/home1/php-5.6.39/ext/openssl/openssl.c:3580: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:3580: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c:3583: error: dereferencing pointer to incomplete type
/home1/php-5.6.39/ext/openssl/openssl.c: In function ‘zif_openssl_pkey_new’:

Я уже ищу об этом и нахожу этот пост. Но не помогите мне.
https://github.com/fpoirotte/phpfarm/issues/23

Если я не использую опции —with-openssl = / home1 / openssl, тогда команда configure и make успешна. Но мне нужны эти варианты. что я что-то пропустил?

0

Решение

Я решаю эту проблему с помощью этой ссылки, патч для PHP 5.6.x с Openssl 1.1.0
https://github.com/oerdnj/deb.sury.org/issues/566

0

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector