首页 新闻 会员 周边

龙蜥(Aolis8.4)国产操作系统部署php5.6.40 报错

0
悬赏园豆:20 [待解决问题]

/php-5.6.40/ext/openssl/openssl.c: In function ‘add_assoc_name_entry’:
/php-5.6.40/ext/openssl/openssl.c:664: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 /php-5.6.40/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))
^~~~~~~~~~~~~~~~~~
/php-5.6.40/ext/openssl/openssl.c: In function ‘asn1_time_to_time_t’:
/php-5.6.40/ext/openssl/openssl.c:717: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 /php-5.6.40/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))
^~~~~~~~~~~~~~~~~~
/php-5.6.40/ext/openssl/openssl.c:732: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 /php-5.6.40/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))
^~~~~~~~~~~~~~~~~~
/php-5.6.40/ext/openssl/openssl.c: In function ‘php_openssl_get_evp_md_from_algo’:
/php-5.6.40/ext/openssl/openssl.c:1057:24: warning: implicit declaration of function ‘EVP_dss1’; did you mean ‘EVP_sm3’? [-Wimplicit-function-declaration]
mdtype = (EVP_MD *) EVP_dss1();
^~~~~~~~
EVP_sm3
/php-5.6.40/ext/openssl/openssl.c:1057:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
mdtype = (EVP_MD *) EVP_dss1();
^
/php-5.6.40/ext/openssl/openssl.c: In function ‘zif_openssl_spki_export_challenge’:
/php-5.6.40/ext/openssl/openssl.c:1726:2: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations]
RETVAL_STRING((char *) ASN1_STRING_data(spki->spkac->challenge), 1);
^~~~~~~~~~~~~
In file included from /usr/include/openssl/opensslconf.h:42,
from /usr/include/openssl/evp.h:13,
from /php-5.6.40/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))
^~~~~~~~~~~~~~~~~~
/php-5.6.40/ext/openssl/openssl.c: In function ‘openssl_x509v3_subjectAltName’:
/php-5.6.40/ext/openssl/openssl.c:1904:15: error: dereferencing pointer to incomplete type ‘X509_EXTENSION’ {aka ‘struct X509_extension_st’}
p = extension->value->data;
^~
/php-5.6.40/ext/openssl/openssl.c:1925: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 /php-5.6.40/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))
^~~~~~~~~~~~~~~~~~
/php-5.6.40/ext/openssl/openssl.c:1931: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 /php-5.6.40/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))
^~~~~~~~~~~~~~~~~~
/php-5.6.40/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 /php-5.6.40/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))
^~~~~~~~~~~~~~~~~~
/php-5.6.40/ext/openssl/openssl.c: In function ‘zif_openssl_x509_parse’:
/php-5.6.40/ext/openssl/openssl.c:1982:10: error: dereferencing pointer to incomplete type ‘X509’ {aka ‘struct x509_st’}
if (cert->name) {
^~
/php-5.6.40/ext/openssl/openssl.c: In function ‘php_openssl_generate_private_key’:
/php-5.6.40/ext/openssl/openssl.c:3420:5: warning: ‘RSA_generate_key’ is deprecated [-Wdeprecated-declarations]
if (EVP_PKEY_assign_RSA(req->priv_key, RSA_generate_key(req->priv_key_bits, 0x10001, NULL, NULL))) {
^~
In file included from /usr/include/openssl/opensslconf.h:42,
from /usr/include/openssl/evp.h:13,
from /php-5.6.40/ext/openssl/openssl.c:44:
/usr/include/openssl/rsa.h:235:1: note: declared here
DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
^~~~~~~~~~~~~~~~~~
/php-5.6.40/ext/openssl/openssl.c:3428:6: warning: ‘DSA_generate_parameters’ is deprecated [-Wdeprecated-declarations]
DSA *dsapar = DSA_generate_parameters(req->priv_key_bits, NULL, 0, NULL, NULL, NULL, NULL);
^~~
In file included from /usr/include/openssl/opensslconf.h:42,
from /usr/include/openssl/evp.h:13,
from /php-5.6.40/ext/openssl/openssl.c:44:
/usr/include/openssl/dsa.h:118:1: note: declared here
DEPRECATEDIN_0_9_8(DSA *DSA_generate_parameters(int bits,
^~~~~~~~~~~~~~~~~~
/php-5.6.40/ext/openssl/openssl.c:3446:6: warning: ‘DH_generate_parameters’ is deprecated [-Wdeprecated-declarations]
DH *dhpar = DH_generate_parameters(req->priv_key_bits, 2, NULL, NULL);
^~
In file included from /usr/include/openssl/opensslconf.h:42,
from /usr/include/openssl/evp.h:13,
from /php-5.6.40/ext/openssl/openssl.c:44:
/usr/include/openssl/dh.h:137:1: note: declared here
DEPRECATEDIN_0_9_8(DH *DH_generate_parameters(int prime_len, int generator,
^~~~~~~~~~~~~~~~~~
/php-5.6.40/ext/openssl/openssl.c: In function ‘php_openssl_is_private_key’:
/php-5.6.40/ext/openssl/openssl.c:3485:14: error: dereferencing pointer to incomplete type ‘EVP_PKEY’ {aka ‘struct evp_pkey_st’}
switch (pkey->type) {
^~
/php-5.6.40/ext/openssl/openssl.c: In function ‘php_openssl_pkey_init_dsa’:
/php-5.6.40/ext/openssl/openssl.c:3557:10: error: dereferencing pointer to incomplete type ‘DSA’ {aka ‘struct dsa_st’}
if (!dsa->p || !dsa->q || !dsa->g) {
^~
/php-5.6.40/ext/openssl/openssl.c: In function ‘php_openssl_pkey_init_dh’:
/php-5.6.40/ext/openssl/openssl.c:3580:9: error: dereferencing pointer to incomplete type ‘DH’ {aka ‘struct dh_st’}
if (!dh->p || !dh->g) {
^~
/php-5.6.40/ext/openssl/openssl.c: In function ‘zif_openssl_pkey_new’:
/php-5.6.40/ext/openssl/openssl.c:3548:9: error: dereferencing pointer to incomplete type ‘RSA’ {aka ‘struct rsa_st’}
_type->_name = BN_bin2bn(
^~
/php-5.6.40/ext/openssl/openssl.c:3617:6: note: in expansion of macro ‘OPENSSL_PKEY_SET_BN’
OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, n);
^~~~~~~~~~~~~~~~~~~
/php-5.6.40/ext/openssl/openssl.c: In function ‘zif_openssl_sign’:
/php-5.6.40/ext/openssl/openssl.c:4801:13: error: storage size of ‘md_ctx’ isn’t known
EVP_MD_CTX md_ctx;
^~~~~~
/php-5.6.40/ext/openssl/openssl.c:4845: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
/php-5.6.40/ext/openssl/openssl.c: In function ‘zif_openssl_verify’:
/php-5.6.40/ext/openssl/openssl.c:4859:17: error: storage size of ‘md_ctx’ isn’t known
EVP_MD_CTX md_ctx;
^~~~~~
/php-5.6.40/ext/openssl/openssl.c: In function ‘zif_openssl_seal’:
/php-5.6.40/ext/openssl/openssl.c:4920:17: error: storage size of ‘ctx’ isn’t known
EVP_CIPHER_CTX ctx;
^~~
/php-5.6.40/ext/openssl/openssl.c: In function ‘zif_openssl_open’:
/php-5.6.40/ext/openssl/openssl.c:5048:17: error: storage size of ‘ctx’ isn’t known
EVP_CIPHER_CTX ctx;
^~~
/php-5.6.40/ext/openssl/openssl.c: In function ‘zif_openssl_digest’:
/php-5.6.40/ext/openssl/openssl.c:5154:13: error: storage size of ‘md_ctx’ isn’t known
EVP_MD_CTX md_ctx;
^~~~~~
/php-5.6.40/ext/openssl/openssl.c: In function ‘zif_openssl_encrypt’:
/php-5.6.40/ext/openssl/openssl.c:5233:17: error: storage size of ‘cipher_ctx’ isn’t known
EVP_CIPHER_CTX cipher_ctx;
^~~~~~~~~~
/php-5.6.40/ext/openssl/openssl.c: In function ‘zif_openssl_decrypt’:
/php-5.6.40/ext/openssl/openssl.c:5316:17: error: storage size of ‘cipher_ctx’ isn’t known
EVP_CIPHER_CTX cipher_ctx;
^~~~~~~~~~
make: *** [Makefile:628: ext/openssl/openssl.lo] Error 1

问题补充:

在网上找了一些原因,说是openssl版本问题,由于版本更新,接口出现变化,EVP_CIPHER_CTX ctx;不会做任何事情

TroyeSiven的主页 TroyeSiven | 初学一级 | 园豆:182
提问于:2022-07-19 17:07
< >
分享
所有回答(1)
0

从报错信息看都是openssl相关的,有一些未定义还有弃用的东西,应该是系统环境中的openssl比较新。

  1. 没用过龙蜥,查看了一下好像是centos有关系,不可以直接从系统提供源安装吗?
  2. 如果自己编译那就下载一个较低版本的openssl,先编译openssl,然后在编译php是通过
    –with-openssl[=DIR]:开启 OpenSSL 扩展,可以指定扩展位置指定openssl目录。
周文靖 | 园豆:304 (菜鸟二级) | 2022-07-20 11:30
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册