[英]PHP 5.6.x source install with Apache, but openssl error occurs, dereferencing pointer to incomplete type
我在Apache上安裝了PHP 5.6.39。 我的配置選項如下。
./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
我這樣使用with-openssl選項。 --with-openssl = / home1 / openssl因為OS 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
實際上配置命令是通過的,但是當我輸入make時,我會看到此屏幕。
/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選項,則配置並執行命令成功。 但是我需要這個選項。 我想念什么?
我通過此鏈接解決了這個問題,使用Openssl 1.1.0的PHP 5.6.x補丁https://github.com/oerdnj/deb.sury.org/issues/566
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.