热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

php5.2.6安装openssl.o扩展,make时报错?

问题:调试支付宝支付时报错:Fatalerror:Calltoundefinedfunctionopenssl_get_privatekey()`

问题:
调试支付宝支付时报错:Fatal error: Call to undefined function openssl_get_privatekey()`



在网上查了 说是没有安装openssl.so扩展。

通过 phpize安装扩展,但是make时报错:



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/bin/sh /opt/php-5.2.6/ext/openssl/libtool --mode=compile gcc  -I. -I/opt/php-5.2.6/ext/openssl -DPHP_ATOM_INC -I/opt/php-5.2.6/ext/openssl/include -I/opt/php-5.2.6/ext/openssl/main -I/opt/php-5.2.6/ext/openssl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /opt/php-5.2.6/ext/openssl/openssl.c -o openssl.lo

mkdir .libs

 gcc -I. -I/opt/php-5.2.6/ext/openssl -DPHP_ATOM_INC -I/opt/php-5.2.6/ext/openssl/include -I/opt/php-5.2.6/ext/openssl/main -I/opt/php-5.2.6/ext/openssl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/php-5.2.6/ext/openssl/openssl.c  -fPIC -DPIC -o .libs/openssl.o

/opt/php-5.2.6/ext/openssl/openssl.c:229: error: expected specifier-qualifier-list before 'LHASH'

/opt/php-5.2.6/ext/openssl/openssl.c:410: error: expected declaration specifiers or '...' before 'LHASH'

/opt/php-5.2.6/ext/openssl/openssl.c: In function 'php_openssl_config_check_syntax':

/opt/php-5.2.6/ext/openssl/openssl.c:416: error: 'config' undeclared (first use in this function)

/opt/php-5.2.6/ext/openssl/openssl.c:416: error: (Each undeclared identifier is reported only once

/opt/php-5.2.6/ext/openssl/openssl.c:416: error: for each function it appears in.)

/opt/php-5.2.6/ext/openssl/openssl.c: In function 'add_oid_section':

/opt/php-5.2.6/ext/openssl/openssl.c:435: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:439: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c: In function 'php_openssl_parse_config':

/opt/php-5.2.6/ext/openssl/openssl.c:485: error: 'struct php_x509_request' has no member named 'config_filename'

/opt/php-5.2.6/ext/openssl/openssl.c:485: error: 'struct php_x509_request' has no member named 'config_filename'

/opt/php-5.2.6/ext/openssl/openssl.c:486: error: 'struct php_x509_request' has no member named 'section_name'

/opt/php-5.2.6/ext/openssl/openssl.c:486: error: 'struct php_x509_request' has no member named 'section_name'

/opt/php-5.2.6/ext/openssl/openssl.c:487: error: 'struct php_x509_request' has no member named 'global_config'

/opt/php-5.2.6/ext/openssl/openssl.c:488: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:488: error: 'struct php_x509_request' has no member named 'config_filename'

/opt/php-5.2.6/ext/openssl/openssl.c:490: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:495: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:506: error: 'struct php_x509_request' has no member named 'digest_name'

/opt/php-5.2.6/ext/openssl/openssl.c:506: error: 'struct php_x509_request' has no member named 'digest_name'

/opt/php-5.2.6/ext/openssl/openssl.c:506: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:506: error: 'struct php_x509_request' has no member named 'section_name'

/opt/php-5.2.6/ext/openssl/openssl.c:508: error: 'struct php_x509_request' has no member named 'extensions_section'

/opt/php-5.2.6/ext/openssl/openssl.c:508: error: 'struct php_x509_request' has no member named 'extensions_section'

/opt/php-5.2.6/ext/openssl/openssl.c:508: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:508: error: 'struct php_x509_request' has no member named 'section_name'

/opt/php-5.2.6/ext/openssl/openssl.c:510: error: 'struct php_x509_request' has no member named 'request_extensions_section'

/opt/php-5.2.6/ext/openssl/openssl.c:510: error: 'struct php_x509_request' has no member named 'request_extensions_section'

/opt/php-5.2.6/ext/openssl/openssl.c:510: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:510: error: 'struct php_x509_request' has no member named 'section_name'

/opt/php-5.2.6/ext/openssl/openssl.c:512: error: 'struct php_x509_request' has no member named 'priv_key_bits'

/opt/php-5.2.6/ext/openssl/openssl.c:512: error: 'struct php_x509_request' has no member named 'priv_key_bits'

/opt/php-5.2.6/ext/openssl/openssl.c:512: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:512: error: 'struct php_x509_request' has no member named 'section_name'

/opt/php-5.2.6/ext/openssl/openssl.c:515: error: 'struct php_x509_request' has no member named 'priv_key_type'

/opt/php-5.2.6/ext/openssl/openssl.c:515: error: 'struct php_x509_request' has no member named 'priv_key_type'

/opt/php-5.2.6/ext/openssl/openssl.c:518: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'

/opt/php-5.2.6/ext/openssl/openssl.c:520: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:520: error: 'struct php_x509_request' has no member named 'section_name'

/opt/php-5.2.6/ext/openssl/openssl.c:522: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:522: error: 'struct php_x509_request' has no member named 'section_name'

/opt/php-5.2.6/ext/openssl/openssl.c:525: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'

/opt/php-5.2.6/ext/openssl/openssl.c:527: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'

/opt/php-5.2.6/ext/openssl/openssl.c:532: error: 'struct php_x509_request' has no member named 'digest_name'

/opt/php-5.2.6/ext/openssl/openssl.c:533: error: 'struct php_x509_request' has no member named 'digest_name'

/opt/php-5.2.6/ext/openssl/openssl.c:533: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:533: error: 'struct php_x509_request' has no member named 'section_name'

/opt/php-5.2.6/ext/openssl/openssl.c:535: error: 'struct php_x509_request' has no member named 'digest_name'

/opt/php-5.2.6/ext/openssl/openssl.c:536: error: 'struct php_x509_request' has no member named 'digest'

/opt/php-5.2.6/ext/openssl/openssl.c:536: error: 'struct php_x509_request' has no member named 'md_alg'

/opt/php-5.2.6/ext/openssl/openssl.c:536: error: 'struct php_x509_request' has no member named 'digest_name'

/opt/php-5.2.6/ext/openssl/openssl.c:538: error: 'struct php_x509_request' has no member named 'md_alg'

/opt/php-5.2.6/ext/openssl/openssl.c:539: error: 'struct php_x509_request' has no member named 'md_alg'

/opt/php-5.2.6/ext/openssl/openssl.c:539: error: 'struct php_x509_request' has no member named 'digest'

/opt/php-5.2.6/ext/openssl/openssl.c:542: error: 'struct php_x509_request' has no member named 'extensions_section'

/opt/php-5.2.6/ext/openssl/openssl.c:542: error: 'struct php_x509_request' has no member named 'config_filename'

/opt/php-5.2.6/ext/openssl/openssl.c:542: error: 'struct php_x509_request' has no member named 'extensions_section'

/opt/php-5.2.6/ext/openssl/openssl.c:542: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:542: error: too many arguments to function 'php_openssl_config_check_syntax'

/opt/php-5.2.6/ext/openssl/openssl.c:545: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:545: error: 'struct php_x509_request' has no member named 'section_name'

/opt/php-5.2.6/ext/openssl/openssl.c:551: error: 'struct php_x509_request' has no member named 'request_extensions_section'

/opt/php-5.2.6/ext/openssl/openssl.c:551: error: 'struct php_x509_request' has no member named 'config_filename'

/opt/php-5.2.6/ext/openssl/openssl.c:551: error: 'struct php_x509_request' has no member named 'request_extensions_section'

/opt/php-5.2.6/ext/openssl/openssl.c:551: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:551: error: too many arguments to function 'php_openssl_config_check_syntax'

/opt/php-5.2.6/ext/openssl/openssl.c: In function 'php_openssl_dispose_config':

/opt/php-5.2.6/ext/openssl/openssl.c:559: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:560: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:561: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:563: error: 'struct php_x509_request' has no member named 'global_config'

/opt/php-5.2.6/ext/openssl/openssl.c:564: error: 'struct php_x509_request' has no member named 'global_config'

/opt/php-5.2.6/ext/openssl/openssl.c:565: error: 'struct php_x509_request' has no member named 'global_config'

/opt/php-5.2.6/ext/openssl/openssl.c:567: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:568: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:569: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c: In function 'php_openssl_x509_from_zval':

/opt/php-5.2.6/ext/openssl/openssl.c:862: warning: passing argument 1 of 'PEM_ASN1_read_bio' from incompatible pointer type

/usr/include/openssl/pem.h:417: note: expected 'void * (*)(void **, const unsigned char **, long int)' but argument is of type 'char * (*)()'

/opt/php-5.2.6/ext/openssl/openssl.c: In function 'php_openssl_make_REQ':

/opt/php-5.2.6/ext/openssl/openssl.c:1673: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:1673: error: 'struct php_x509_request' has no member named 'section_name'

/opt/php-5.2.6/ext/openssl/openssl.c:1677: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:1681: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:1681: error: 'struct php_x509_request' has no member named 'section_name'

/opt/php-5.2.6/ext/openssl/openssl.c:1685: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:1816: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c: In function 'zif_openssl_csr_sign':

/opt/php-5.2.6/ext/openssl/openssl.c:2044: error: 'struct php_x509_request' has no member named 'extensions_section'

/opt/php-5.2.6/ext/openssl/openssl.c:2048: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:2049: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:2049: error: 'struct php_x509_request' has no member named 'extensions_section'

/opt/php-5.2.6/ext/openssl/openssl.c:2055: error: 'struct php_x509_request' has no member named 'digest'

/opt/php-5.2.6/ext/openssl/openssl.c: In function 'zif_openssl_csr_new':

/opt/php-5.2.6/ext/openssl/openssl.c:2110: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:2111: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:2115: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:2118: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:2127: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:2130: error: 'struct php_x509_request' has no member named 'request_extensions_section'

/opt/php-5.2.6/ext/openssl/openssl.c:2130: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:2131: error: 'struct php_x509_request' has no member named 'request_extensions_section'

/opt/php-5.2.6/ext/openssl/openssl.c:2133: error: 'struct php_x509_request' has no member named 'request_extensions_section'

/opt/php-5.2.6/ext/openssl/openssl.c:2137: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:2137: error: 'struct php_x509_request' has no member named 'digest'

/opt/php-5.2.6/ext/openssl/openssl.c:2147: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:2148: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:2150: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:2157: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c: In function 'php_openssl_generate_private_key':

/opt/php-5.2.6/ext/openssl/openssl.c:2406: error: 'struct php_x509_request' has no member named 'priv_key_bits'

/opt/php-5.2.6/ext/openssl/openssl.c:2408: error: 'struct php_x509_request' has no member named 'priv_key_bits'

/opt/php-5.2.6/ext/openssl/openssl.c:2412: error: 'struct php_x509_request' has no member named 'req_config'

/opt/php-5.2.6/ext/openssl/openssl.c:2412: error: 'struct php_x509_request' has no member named 'section_name'

/opt/php-5.2.6/ext/openssl/openssl.c:2415: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:2416: error: 'struct php_x509_request' has no member named 'priv_key_type'

/opt/php-5.2.6/ext/openssl/openssl.c:2418: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:2418: error: 'struct php_x509_request' has no member named 'priv_key_bits'

/opt/php-5.2.6/ext/openssl/openssl.c:2419: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:2425: error: 'struct php_x509_request' has no member named 'priv_key_bits'

/opt/php-5.2.6/ext/openssl/openssl.c:2429: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:2430: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:2447: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:2448: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c: In function 'zif_openssl_pkey_new':

/opt/php-5.2.6/ext/openssl/openssl.c:2521: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c:2523: error: 'struct php_x509_request' has no member named 'priv_key'

/opt/php-5.2.6/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export_to_file':

/opt/php-5.2.6/ext/openssl/openssl.c:2564: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'

/opt/php-5.2.6/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export':

/opt/php-5.2.6/ext/openssl/openssl.c:2615: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'

make: *** [openssl.lo] Error 1

在网上查了好久,基本没有给出解决办法,就是让重新安装一个PHP。

有没有其它的不安装PHP的方法。


   



推荐阅读
  • 本文详细介绍了如何使用 Yii2 的 GridView 组件在列表页面实现数据的直接编辑功能。通过具体的代码示例和步骤,帮助开发者快速掌握这一实用技巧。 ... [详细]
  • andr ... [详细]
  • 俗话说得好,“工欲善其事,必先利其器”。这句话不仅强调了工具的重要性,也提醒我们在任何项目开始前,准备合适的工具至关重要。本文将介绍几款C语言编程中常用的工具,帮助初学者更好地选择适合自己学习和工作的编程环境。 ... [详细]
  • 本文将介绍如何编写一些有趣的VBScript脚本,这些脚本可以在朋友之间进行无害的恶作剧。通过简单的代码示例,帮助您了解VBScript的基本语法和功能。 ... [详细]
  • 优化ASM字节码操作:简化类转换与移除冗余指令
    本文探讨如何利用ASM框架进行字节码操作,以优化现有类的转换过程,简化复杂的转换逻辑,并移除不必要的加0操作。通过这些技术手段,可以显著提升代码性能和可维护性。 ... [详细]
  • Explore a common issue encountered when implementing an OAuth 1.0a API, specifically the inability to encode null objects and how to resolve it. ... [详细]
  • 本文详细介绍了如何在Linux系统上安装和配置Smokeping,以实现对网络链路质量的实时监控。通过详细的步骤和必要的依赖包安装,确保用户能够顺利完成部署并优化其网络性能监控。 ... [详细]
  • 本文深入探讨 MyBatis 中动态 SQL 的使用方法,包括 if/where、trim 自定义字符串截取规则、choose 分支选择、封装查询和修改条件的 where/set 标签、批量处理的 foreach 标签以及内置参数和 bind 的用法。 ... [详细]
  • 本文详细介绍了Java中org.eclipse.ui.forms.widgets.ExpandableComposite类的addExpansionListener()方法,并提供了多个实际代码示例,帮助开发者更好地理解和使用该方法。这些示例来源于多个知名开源项目,具有很高的参考价值。 ... [详细]
  • 深入解析Spring Cloud Ribbon负载均衡机制
    本文详细介绍了Spring Cloud中的Ribbon组件如何实现服务调用的负载均衡。通过分析其工作原理、源码结构及配置方式,帮助读者理解Ribbon在分布式系统中的重要作用。 ... [详细]
  • 本文介绍了如何通过扩展 UnityGUI 创建自定义和复合控件,以满足特定的用户界面需求。内容涵盖简单和静态复合控件的实现,并展示了如何创建复杂的 RGB 滑块。 ... [详细]
  • 深入探讨CPU虚拟化与KVM内存管理
    本文详细介绍了现代服务器架构中的CPU虚拟化技术,包括SMP、NUMA和MPP三种多处理器结构,并深入探讨了KVM的内存虚拟化机制。通过对比不同架构的特点和应用场景,帮助读者理解如何选择最适合的架构以优化性能。 ... [详细]
  • Codeforces Round #566 (Div. 2) A~F个人题解
    Dashboard-CodeforcesRound#566(Div.2)-CodeforcesA.FillingShapes题意:给你一个的表格,你 ... [详细]
  • 本文探讨了如何在 PHP 的 Eloquent ORM 中实现数据表之间的关联查询,并通过具体示例详细解释了如何将关联数据嵌入到查询结果中。这不仅提高了数据查询的效率,还简化了代码逻辑。 ... [详细]
  • 深入理解OAuth认证机制
    本文介绍了OAuth认证协议的核心概念及其工作原理。OAuth是一种开放标准,旨在为第三方应用提供安全的用户资源访问授权,同时确保用户的账户信息(如用户名和密码)不会暴露给第三方。 ... [详细]
author-avatar
珠珠VS胖胖
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有