Linux下php5.6安装ssh2-0.13扩展

风尘孤子 发布于 2017/12/10 11:26
阅读 597
收藏 0

Linux下php5.6安装ssh2-0.13扩展时make时出现

alifiers from pointer target type

/usr/local/include/php/Zend/zend_alloc.h:78: note: expected ‘void *’ but argument is of type ‘const char *’

/vol/usr/local/lamp/ssh2-0.13/ssh2.c: In function ‘zif_ssh2_publickey_remove’:

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1089: error: expected expression before ‘php_ssh2_pkey_subsys_data’

/vol/usr/local/lamp/ssh2-0.13/ssh2.c: In function ‘zif_ssh2_publickey_list’:

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1113: error: expected expression before ‘php_ssh2_pkey_subsys_data’

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1128:67: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1128: error: ‘add_assoc_stringl’ undeclared (first use in this function)

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1129:67: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1137:76: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1137: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1138:125: error: macro "zend_hash_add" passed 6 arguments, but takes just 3

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1138: error: ‘zend_hash_add’ undeclared (first use in this function)

/vol/usr/local/lamp/ssh2-0.13/ssh2.c: In function ‘zif_ssh2_auth_agent’:

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1168: error: expected expression before ‘LIBSSH2_SESSION’

/vol/usr/local/lamp/ssh2-0.13/ssh2.c: At top level:

/vol/usr/local/lamp/ssh2-0.13/ssh2.c🔢 error: expected ‘)’ before ‘*’ token

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1264: error: expected ‘)’ before ‘*’ token

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1274: error: expected ‘)’ before ‘*’ token

/vol/usr/local/lamp/ssh2-0.13/ssh2.c: In function ‘zm_startup_ssh2’:

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1288: error: ‘php_ssh2_session_dtor’ undeclared (first use in this function)

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1289: error: ‘php_ssh2_listener_dtor’ undeclared (first use in this function)

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1290: error: ‘php_ssh2_sftp_dtor’ undeclared (first use in this function)

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1291: error: ‘php_ssh2_pkey_subsys_dtor’ undeclared (first use in this function)

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

[root@cn21 ssh2-0.13]# vim ssh2.c

alifiers from pointer target type

/usr/local/include/php/Zend/zend_alloc.h:78: note: expected ‘void *’ but argument is of type ‘const char *’

/vol/usr/local/lamp/ssh2-0.13/ssh2.c: In function ‘zif_ssh2_publickey_remove’:

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1089: error: expected expression before ‘php_ssh2_pkey_subsys_data’

/vol/usr/local/lamp/ssh2-0.13/ssh2.c: In function ‘zif_ssh2_publickey_list’:

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1113: error: expected expression before ‘php_ssh2_pkey_subsys_data’

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1128:67: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1128: error: ‘add_assoc_stringl’ undeclared (first use in this function)

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1129:67: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1137:76: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1137: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1138:125: error: macro "zend_hash_add" passed 6 arguments, but takes just 3

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1138: error: ‘zend_hash_add’ undeclared (first use in this function)

/vol/usr/local/lamp/ssh2-0.13/ssh2.c: In function ‘zif_ssh2_auth_agent’:

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1168: error: expected expression before ‘LIBSSH2_SESSION’

/vol/usr/local/lamp/ssh2-0.13/ssh2.c: At top level:

/vol/usr/local/lamp/ssh2-0.13/ssh2.c🔢 error: expected ‘)’ before ‘*’ token

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1264: error: expected ‘)’ before ‘*’ token

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1274: error: expected ‘)’ before ‘*’ token

/vol/usr/local/lamp/ssh2-0.13/ssh2.c: In function ‘zm_startup_ssh2’:

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1288: error: ‘php_ssh2_session_dtor’ undeclared (first use in this function)

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1289: error: ‘php_ssh2_listener_dtor’ undeclared (first use in this function)

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1290: error: ‘php_ssh2_sftp_dtor’ undeclared (first use in this function)

/vol/usr/local/lamp/ssh2-0.13/ssh2.c:1291: error: ‘php_ssh2_pkey_subsys_dtor’ undeclared (first use in this function)

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

这种错误,请问是源码出现了错误吗?已经安装了libssh

加载中
返回顶部
顶部