centos8 php7 生成 openssl.so 文件执行make时报错:【已解决】
解决办法:
宝塔默认是开启openssl的。无需配置。
重新生成私钥,配置上就不会报错。
用up浏览器进行测试支付。
# 下载到/var/www/php5目录下 cd /var/www/php5 wget http://mirrors.sohu.com/php/php-5.5.7.tar.gz # 解压 tar zxvf php-5.5.7.tar.gz # 进入PHP的openssl扩展模块目录 cd php-5.5.7/ext/openssl/ /var/www/php5/bin/phpize # 这里为你自己的phpize路径,如果找不到,使用whereis phpize查找 # 执行后,发现错误 无法找到config.m4 ,config0.m4就是config.m4。直接重命名 mv config0.m4 config.m4 /var/www/php5/bin/phpize ./configure --with-openssl --with-php-config=/var/www/php5/bin/php-config make make install # 安装完成后,会返回一个.so文件(openssl.so)的目录。在此目录下把openssl.so 文件拷贝到你在php.ini 中指定的 extension_dir 下(在php.ini文件中查找:extension_dir =),我这里的目录是 var/www/php5/lib/php/extensions # 编辑php.ini文件,在文件最后添加 extension=openssl.so # 重启Apache即可 /usr/local/apache2/bin/apachectl restart
[root@localhost openssl]# make /bin/sh /var/server/php7/php-7.0.0/ext/openssl/libtool --mode=compile cc -I. -I/var/server/php7/php-7.0.0/ext/openssl -DPHP_ATOM_INC -I/var/server/php7/php-7.0.0/ext/openssl/include -I/var/server/php7/php-7.0.0/ext/openssl/main -I/var/server/php7/php-7.0.0/ext/openssl -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/server/php7/php-7.0.0/ext/openssl/openssl.c -o openssl.lo libtool: compile: cc -I. -I/var/server/php7/php-7.0.0/ext/openssl -DPHP_ATOM_INC -I/var/server/php7/php-7.0.0/ext/openssl/include -I/var/server/php7/php-7.0.0/ext/openssl/main -I/var/server/php7/php-7.0.0/ext/openssl -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/server/php7/php-7.0.0/ext/openssl/openssl.c -fPIC -DPIC -o .libs/openssl.o /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘add_assoc_name_entry’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:688:4: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations] to_add = ASN1_STRING_data(str); ^~~~~~ In file included from /usr/include/openssl/opensslconf.h:42, from /usr/include/openssl/evp.h:13, from /var/server/php7/php-7.0.0/ext/openssl/openssl.c:44: /usr/include/openssl/asn1.h:554:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘asn1_time_to_time_t’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:739:2: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations] if (ASN1_STRING_length(timestr) != strlen((const char*)ASN1_STRING_data(timestr))) { ^~ In file included from /usr/include/openssl/opensslconf.h:42, from /usr/include/openssl/evp.h:13, from /var/server/php7/php-7.0.0/ext/openssl/openssl.c:44: /usr/include/openssl/asn1.h:554:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:754:2: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations] strbuf = estrdup((char *)ASN1_STRING_data(timestr)); ^~~~~~ In file included from /usr/include/openssl/opensslconf.h:42, from /usr/include/openssl/evp.h:13, from /var/server/php7/php-7.0.0/ext/openssl/openssl.c:44: /usr/include/openssl/asn1.h:554:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘php_openssl_get_evp_md_from_algo’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:1078:24: warning: implicit declaration of function ‘EVP_dss1’; did you mean ‘EVP_sm3’? [-Wimplicit-function-declaration] mdtype = (EVP_MD *) EVP_dss1(); ^~~~~~~~ EVP_sm3 /var/server/php7/php-7.0.0/ext/openssl/openssl.c:1078:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] mdtype = (EVP_MD *) EVP_dss1(); ^ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_spki_export_challenge’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:1758:2: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations] RETVAL_STRING((char *) ASN1_STRING_data(spki->spkac->challenge)); ^~~~~~~~~~~~~ In file included from /usr/include/openssl/opensslconf.h:42, from /usr/include/openssl/evp.h:13, from /var/server/php7/php-7.0.0/ext/openssl/openssl.c:44: /usr/include/openssl/asn1.h:554:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘openssl_x509v3_subjectAltName’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:1916:15: error: dereferencing pointer to incomplete type X509_EXTENSION’ {aka ‘struct X509_extension_st’} p = extension->value->data; ^~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:1937:6: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations] BIO_write(bio, ASN1_STRING_data(as), ^~~~~~~~~ In file included from /usr/include/openssl/opensslconf.h:42, from /usr/include/openssl/evp.h:13, from /var/server/php7/php-7.0.0/ext/openssl/openssl.c:44: /usr/include/openssl/asn1.h:554:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:1943:6: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations] BIO_write(bio, ASN1_STRING_data(as), ^~~~~~~~~ In file included from /usr/include/openssl/opensslconf.h:42, from /usr/include/openssl/evp.h:13, from /var/server/php7/php-7.0.0/ext/openssl/openssl.c:44: /usr/include/openssl/asn1.h:554:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:1949:6: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations] BIO_write(bio, ASN1_STRING_data(as), ^~~~~~~~~ In file included from /usr/include/openssl/opensslconf.h:42, from /usr/include/openssl/evp.h:13, from /var/server/php7/php-7.0.0/ext/openssl/openssl.c:44: /usr/include/openssl/asn1.h:554:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_x509_parse’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:1994:10: error: dereferencing pointer to incomplete type X509’ {aka ‘struct x509_st’} if (cert->name) { ^~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘php_openssl_is_private_key’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:3492:14: error: dereferencing pointer to incomplete type EVP_PKEY’ {aka ‘struct evp_pkey_st’} switch (pkey->type) { ^~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_pkey_new’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:3555:9: error: dereferencing pointer to incomplete type ‘RSA’ {aka ‘struct rsa_st’} _type->_name = BN_bin2bn( \ ^~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:3584:6: note: in expansion of macro ‘OPENSSL_PKEY_SET_BN’ OPENSSL_PKEY_SET_BN(Z_ARRVAL_P(data), rsa, n); ^~~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:3555:9: error: dereferencing pointer to incomplete type ‘DSA’ {aka ‘struct dsa_st’} _type->_name = BN_bin2bn( \ ^~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:3608:6: note: in expansion of macro ‘OPENSSL_PKEY_SET_BN’ OPENSSL_PKEY_SET_BN(Z_ARRVAL_P(data), dsa, p); ^~~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:3555:9: error: dereferencing pointer to incomplete type ‘DH’ {aka ‘struct dh_st’} _type->_name = BN_bin2bn( \ ^~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:3632:6: note: in expansion of macro ‘OPENSSL_PKEY_SET_BN’ OPENSSL_PKEY_SET_BN(Z_ARRVAL_P(data), dh, p); ^~~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_sign’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:4779:13: error: storage size of ‘md_ctx’ isn’t known EVP_MD_CTX md_ctx; ^~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:4824:2: warning: implicit declaration of function ‘EVP_MD_CTX_cleanup’; did you mean ‘EVP_MD_CTX_create’? [-Wimplicit-function-declaration] EVP_MD_CTX_cleanup(&md_ctx); ^~~~~~~~~~~~~~~~~~ EVP_MD_CTX_create /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_verify’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:4838:17: error: storage size of ‘md_ctx’ isn’t known EVP_MD_CTX md_ctx; ^~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_seal’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:4903:17: error: storage size of ‘ctx’ isn’t known EVP_CIPHER_CTX ctx; ^~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_open’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:5026:17: error: storage size of ‘ctx’ isn’t known EVP_CIPHER_CTX ctx; ^~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_digest’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:5154:13: error: storage size of ‘md_ctx’ isn’t known EVP_MD_CTX md_ctx; ^~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_encrypt’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:5235:17: error: storage size of ‘cipher_ctx’ isn’t known EVP_CIPHER_CTX cipher_ctx; ^~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_decrypt’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:5318:17: error: storage size of ‘cipher_ctx’ isn’t known EVP_CIPHER_CTX cipher_ctx; ^~~~~~~~~~ make: *** [Makefile:194: openssl.lo] Error 1 [root@localhost openssl]# make install /bin/sh /var/server/php7/php-7.0.0/ext/openssl/libtool --mode=compile cc -I. -I/var/server/php7/php-7.0.0/ext/openssl -DPHP_ATOM_INC -I/var/server/php7/php-7.0.0/ext/openssl/include -I/var/server/php7/php-7.0.0/ext/openssl/main -I/var/server/php7/php-7.0.0/ext/openssl -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/server/php7/php-7.0.0/ext/openssl/openssl.c -o openssl.lo libtool: compile: cc -I. -I/var/server/php7/php-7.0.0/ext/openssl -DPHP_ATOM_INC -I/var/server/php7/php-7.0.0/ext/openssl/include -I/var/server/php7/php-7.0.0/ext/openssl/main -I/var/server/php7/php-7.0.0/ext/openssl -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/server/php7/php-7.0.0/ext/openssl/openssl.c -fPIC -DPIC -o .libs/openssl.o /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘add_assoc_name_entry’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:688:4: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations] to_add = ASN1_STRING_data(str); ^~~~~~ In file included from /usr/include/openssl/opensslconf.h:42, from /usr/include/openssl/evp.h:13, from /var/server/php7/php-7.0.0/ext/openssl/openssl.c:44: /usr/include/openssl/asn1.h:554:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘asn1_time_to_time_t’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:739:2: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations] if (ASN1_STRING_length(timestr) != strlen((const char*)ASN1_STRING_data(timestr))) { ^~ In file included from /usr/include/openssl/opensslconf.h:42, from /usr/include/openssl/evp.h:13, from /var/server/php7/php-7.0.0/ext/openssl/openssl.c:44: /usr/include/openssl/asn1.h:554:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:754:2: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations] strbuf = estrdup((char *)ASN1_STRING_data(timestr)); ^~~~~~ In file included from /usr/include/openssl/opensslconf.h:42, from /usr/include/openssl/evp.h:13, from /var/server/php7/php-7.0.0/ext/openssl/openssl.c:44: /usr/include/openssl/asn1.h:554:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘php_openssl_get_evp_md_from_algo’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:1078:24: warning: implicit declaration of function ‘EVP_dss1’; did you mean ‘EVP_sm3’? [-Wimplicit-function-declaration] mdtype = (EVP_MD *) EVP_dss1(); ^~~~~~~~ EVP_sm3 /var/server/php7/php-7.0.0/ext/openssl/openssl.c:1078:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] mdtype = (EVP_MD *) EVP_dss1(); ^ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_spki_export_challenge’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:1758:2: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations] RETVAL_STRING((char *) ASN1_STRING_data(spki->spkac->challenge)); ^~~~~~~~~~~~~ In file included from /usr/include/openssl/opensslconf.h:42, from /usr/include/openssl/evp.h:13, from /var/server/php7/php-7.0.0/ext/openssl/openssl.c:44: /usr/include/openssl/asn1.h:554:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘openssl_x509v3_subjectAltName’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:1916:15: error: dereferencing pointer to incomplete type X509_EXTENSION’ {aka ‘struct X509_extension_st’} p = extension->value->data; ^~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:1937:6: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations] BIO_write(bio, ASN1_STRING_data(as), ^~~~~~~~~ In file included from /usr/include/openssl/opensslconf.h:42, from /usr/include/openssl/evp.h:13, from /var/server/php7/php-7.0.0/ext/openssl/openssl.c:44: /usr/include/openssl/asn1.h:554:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:1943:6: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations] BIO_write(bio, ASN1_STRING_data(as), ^~~~~~~~~ In file included from /usr/include/openssl/opensslconf.h:42, from /usr/include/openssl/evp.h:13, from /var/server/php7/php-7.0.0/ext/openssl/openssl.c:44: /usr/include/openssl/asn1.h:554:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:1949:6: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations] BIO_write(bio, ASN1_STRING_data(as), ^~~~~~~~~ In file included from /usr/include/openssl/opensslconf.h:42, from /usr/include/openssl/evp.h:13, from /var/server/php7/php-7.0.0/ext/openssl/openssl.c:44: /usr/include/openssl/asn1.h:554:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_x509_parse’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:1994:10: error: dereferencing pointer to incomplete type X509’ {aka ‘struct x509_st’} if (cert->name) { ^~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘php_openssl_is_private_key’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:3492:14: error: dereferencing pointer to incomplete type EVP_PKEY’ {aka ‘struct evp_pkey_st’} switch (pkey->type) { ^~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_pkey_new’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:3555:9: error: dereferencing pointer to incomplete type ‘RSA’ {aka ‘struct rsa_st’} _type->_name = BN_bin2bn( \ ^~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:3584:6: note: in expansion of macro ‘OPENSSL_PKEY_SET_BN’ OPENSSL_PKEY_SET_BN(Z_ARRVAL_P(data), rsa, n); ^~~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:3555:9: error: dereferencing pointer to incomplete type ‘DSA’ {aka ‘struct dsa_st’} _type->_name = BN_bin2bn( \ ^~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:3608:6: note: in expansion of macro ‘OPENSSL_PKEY_SET_BN’ OPENSSL_PKEY_SET_BN(Z_ARRVAL_P(data), dsa, p); ^~~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:3555:9: error: dereferencing pointer to incomplete type ‘DH’ {aka ‘struct dh_st’} _type->_name = BN_bin2bn( \ ^~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:3632:6: note: in expansion of macro ‘OPENSSL_PKEY_SET_BN’ OPENSSL_PKEY_SET_BN(Z_ARRVAL_P(data), dh, p); ^~~~~~~~~~~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_sign’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:4779:13: error: storage size of ‘md_ctx’ isn’t known EVP_MD_CTX md_ctx; ^~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c:4824:2: warning: implicit declaration of function ‘EVP_MD_CTX_cleanup’; did you mean ‘EVP_MD_CTX_create’? [-Wimplicit-function-declaration] EVP_MD_CTX_cleanup(&md_ctx); ^~~~~~~~~~~~~~~~~~ EVP_MD_CTX_create /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_verify’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:4838:17: error: storage size of ‘md_ctx’ isn’t known EVP_MD_CTX md_ctx; ^~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_seal’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:4903:17: error: storage size of ‘ctx’ isn’t known EVP_CIPHER_CTX ctx; ^~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_open’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:5026:17: error: storage size of ‘ctx’ isn’t known EVP_CIPHER_CTX ctx; ^~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_digest’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:5154:13: error: storage size of ‘md_ctx’ isn’t known EVP_MD_CTX md_ctx; ^~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_encrypt’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:5235:17: error: storage size of ‘cipher_ctx’ isn’t known EVP_CIPHER_CTX cipher_ctx; ^~~~~~~~~~ /var/server/php7/php-7.0.0/ext/openssl/openssl.c: In function ‘zif_openssl_decrypt’: /var/server/php7/php-7.0.0/ext/openssl/openssl.c:5318:17: error: storage size of ‘cipher_ctx’ isn’t known EVP_CIPHER_CTX cipher_ctx; ^~~~~~~~~~ make: *** [Makefile:194: openssl.lo] Error 1
编程学习交流群
QQ群:168703370