php安装出错

问答中心分类: PHPphp安装出错
moyang asked 7 年 ago
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c: In function ‘zif_openssl_public_decrypt’:
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c:4731:14: error: dereferencing pointer to incomplete type
switch (pkey->type) {
^
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c:4737:10: error: dereferencing pointer to incomplete type
pkey->pkey.rsa,
^
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c: In function ‘zif_openssl_sign’:
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c:4801:13: error: storage size of ‘md_ctx’ isn’t known
EVP_MD_CTX md_ctx;
^
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c: In function ‘zif_openssl_verify’:
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c:4859:17: error: storage size of ‘md_ctx’ isn’t known
EVP_MD_CTX md_ctx;
^
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c: In function ‘zif_openssl_seal’:
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c:4920:17: error: storage size of ‘ctx’ isn’t known
EVP_CIPHER_CTX ctx;
^
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c: In function ‘zif_openssl_open’:
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c:5048:17: error: storage size of ‘ctx’ isn’t known
EVP_CIPHER_CTX ctx;
^
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c: In function ‘zif_openssl_digest’:
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c:5154:13: error: storage size of ‘md_ctx’ isn’t known
EVP_MD_CTX md_ctx;
^
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c: In function ‘zif_openssl_encrypt’:
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c:5233:17: error: storage size of ‘cipher_ctx’ isn’t known
EVP_CIPHER_CTX cipher_ctx;
^
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c: In function ‘zif_openssl_decrypt’:
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c:5316:17: error: storage size of ‘cipher_ctx’ isn’t known
EVP_CIPHER_CTX cipher_ctx;
^
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c: In function ‘zif_openssl_dh_compute_key’:
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c:5436:33: error: dereferencing pointer to incomplete type
if (!pkey || EVP_PKEY_type(pkey->type) != EVP_PKEY_DH || !pkey->pkey.dh) {
^
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c:5436:64: error: dereferencing pointer to incomplete type
if (!pkey || EVP_PKEY_type(pkey->type) != EVP_PKEY_DH || !pkey->pkey.dh) {
^
In file included from /root/oneinstack/src/php-5.6.30/Zend/zend.h:252:0,
from /root/oneinstack/src/php-5.6.30/main/php.h:35,
from /root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c:29:
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c:5442:29: error: dereferencing pointer to incomplete type
data = emalloc(DH_size(pkey->pkey.dh) + 1);
^
/root/oneinstack/src/php-5.6.30/Zend/zend_alloc.h:71:38: note: in definition of macro ‘emalloc’
#define emalloc(size) _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/root/oneinstack/src/php-5.6.30/ext/openssl/openssl.c:5443:54: error: dereferencing pointer to incomplete type
len = DH_compute_key((unsigned char*)data, pub, pkey->pkey.dh);
^
make: *** [ext/openssl/openssl.lo] Error 1
PHP install failed, Please Contact the author!
Killed
[root@xumu oneinstack]# Starting php-fpm /etc/init.d/php-fpm: line 57: /usr/local/php/sbin/php-fpm: No such file or directory
failed
 服务器系统centos7.0
Linux xumu.jcloud.local 3.10.0-514.6.1.el7.x86_64 #1 SMP Wed Jan 18 13:06:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux内核版本
安装模式lnmp
Question Tags:

1 Answers
oneinstack answered 7 年 ago
jcloud京东云,这个问题已经修复,这个是因为jcloud默认升级了openssl1.1.0 php安装时候不支持该openssl版本导致