FailedOk

th/SRPMS[OK]
th/x32[OK]
th/i686[OK]
th/x86_64[OK]

ac/SRPMS[OK]
ac/i386[OK]
ac/i586[OK]
ac/i686[OK]
ac/alpha[OK]
ac/amd64[OK]
ac/athlon[OK]
ac/ppc[OK]
ac/sparc[OK]
ac/sparc64[OK]

Advanced Search
main()
Powered by PLD Linux
(c) 2002-2019 PLD Team
$Revision: 1.37 $
Powered by Unix conspiracy.
Your IP: 3.226.243.10

php-pecl-ssh2 0ffc0efa-1d93-40bb-ab7c-0fcbed79f60b

Status:Failed
Source URL:ftp://buildlogs.pld-linux.org/th/x32/FAIL/php-pecl-ssh2,0ffc0efa-1d93-40bb-ab7c-0fcbed79f60b.bz2
text/plain URL:View!
full text:View!
rpm -qa of builder:View!
Date:2019/08/13 17:18:11
Runtime:0:00:04.669915

Toc:

  • error 1
  • rpm: error: Failed build dependencies:
  • error 2
  • rpm: error: Failed build dependencies:
  • prep
  • Executing(%prep): /bin/sh -e /tmp/B.qg2QrY/BUILD/tmp/rpm-tmp.93849
  • build
  • Executing(%build): /bin/sh -e /tmp/B.qg2QrY/BUILD/tmp/rpm-tmp.93849
  • error 3
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:152:25: error: unknown type name 'zend_resource'; did you mean 'term_source'?
  • error 4
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:33:25: error: unknown type name 'zend_resource'; did you mean 'term_source'?
  • error 5
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:152:58: error: unknown type name 'zend_off_t'; did you mean 'zend_op'?
  • error 6
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:152:89: error: unknown type name 'zend_off_t'; did you mean 'zend_op'?
  • error 7
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:212:2: error: 'php_ssh2_sftp_stream_seek' undeclared here (not in a function); did you mean 'php_ssh2_sftp_stream_read'?
  • error 8
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:222:16: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 9
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:278:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 10
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:285:13: error: too few arguments to function 'php_basename'
  • error 11
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:290:51: error: request for member 'len' in something not a structure or union
  • error 12
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:290:51: error: request for member 'len' in something not a structure or union
  • error 13
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:291:30: error: request for member 'val' in something not a structure or union
  • error 14
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:329:16: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 15
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:541:2: error: 'php_ssh2_sftp_stream_opener' undeclared here (not in a function); did you mean 'php_ssh2_sftp_stream_ops'?
  • error 16
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:545:2: error: 'php_ssh2_sftp_dirstream_opener' undeclared here (not in a function); did you mean 'php_ssh2_sftp_dirstream_ops'?
  • error 17
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:578:36: error: too few arguments to function 'zend_fetch_resource'
  • error 18
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:594:42: error: invalid type argument of '->' (have 'int')
  • error 19
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:597:13: error: too few arguments to function 'zend_register_resource'
  • error 20
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:609:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 21
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:615:36: error: too few arguments to function 'zend_fetch_resource'
  • error 22
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:619:53: error: request for member 'val' in something not a structure or union
  • error 23
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:619:63: error: request for member 'len' in something not a structure or union
  • error 24
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:619:73: error: request for member 'val' in something not a structure or union
  • error 25
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:619:83: error: request for member 'len' in something not a structure or union
  • error 26
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:630:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 27
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:636:36: error: too few arguments to function 'zend_fetch_resource'
  • error 28
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:640:58: error: request for member 'val' in something not a structure or union
  • error 29
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:640:73: error: request for member 'len' in something not a structure or union
  • error 30
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:650:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 31
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:651:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'?
  • error 32
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:663:36: error: too few arguments to function 'zend_fetch_resource'
  • error 33
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:669:15: error: request for member 'val' in something not a structure or union
  • error 34
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:671:21: error: request for member 'val' in something not a structure or union
  • error 35
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:671:43: error: request for member 'len' in something not a structure or union
  • error 36
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:674:46: error: request for member 'val' in something not a structure or union
  • error 37
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:674:65: error: request for member 'val' in something not a structure or union
  • error 38
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:679:57: error: request for member 'val' in something not a structure or union
  • error 39
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:679:72: error: request for member 'len' in something not a structure or union
  • error 40
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:689:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 41
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:695:36: error: too few arguments to function 'zend_fetch_resource'
  • error 42
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:699:57: error: request for member 'val' in something not a structure or union
  • error 43
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:699:72: error: request for member 'len' in something not a structure or union
  • error 44
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:709:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 45
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:710:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'?
  • error 46
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:721:36: error: too few arguments to function 'zend_fetch_resource'
  • error 47
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:728:56: error: request for member 'val' in something not a structure or union
  • error 48
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:728:71: error: request for member 'len' in something not a structure or union
  • error 49
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:742:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 50
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:748:36: error: too few arguments to function 'zend_fetch_resource'
  • error 51
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:752:43: error: request for member 'val' in something not a structure or union
  • error 52
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:752:54: error: request for member 'len' in something not a structure or union
  • error 53
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:806:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 54
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:812:36: error: too few arguments to function 'zend_fetch_resource'
  • error 55
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:816:55: error: request for member 'val' in something not a structure or union
  • error 56
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:816:66: error: request for member 'len' in something not a structure or union
  • error 57
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:816:77: error: request for member 'val' in something not a structure or union
  • error 58
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:816:88: error: request for member 'len' in something not a structure or union
  • error 59
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:826:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 60
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:834:36: error: too few arguments to function 'zend_fetch_resource'
  • error 61
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:838:58: error: request for member 'val' in something not a structure or union
  • error 62
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:838:69: error: request for member 'len' in something not a structure or union
  • error 63
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:843:31: error: macro "RETURN_STRINGL" requires 3 arguments, but only 2 given
  • error 64
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:843:2: error: 'RETURN_STRINGL' undeclared (first use in this function)
  • error 65
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:853:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 66
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:861:36: error: too few arguments to function 'zend_fetch_resource'
  • error 67
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:865:58: error: request for member 'val' in something not a structure or union
  • error 68
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:865:69: error: request for member 'len' in something not a structure or union
  • error 69
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:866:80: error: request for member 'val' in something not a structure or union
  • error 70
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:870:31: error: macro "RETURN_STRINGL" requires 3 arguments, but only 2 given
  • error 71
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:870:2: error: 'RETURN_STRINGL' undeclared (first use in this function)
  • error 72
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:152:25: error: unknown type name 'zend_resource'; did you mean 'term_source'?
  • error 73
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:30:2: error: unknown type name 'zend_resource'; did you mean 'term_source'?
  • error 74
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:31:47: error: expected ';' before '{' token
  • error 75
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:54:31: error: too few arguments to function 'zend_fetch_resource'
  • error 76
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:98:31: error: too few arguments to function 'zend_fetch_resource'
  • error 77
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:217:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'?
  • error 78
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:269:38: error: too few arguments to function 'zend_fetch_resource'
  • error 79
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:281:32: error: too few arguments to function 'zend_fetch_resource'
  • error 80
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:297:21: error: too few arguments to function 'zend_register_resource'
  • error 81
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:313:14: error: too few arguments to function 'php_stream_context_get_option'
  • error 82
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:316:37: error: too few arguments to function 'zend_fetch_resource'
  • error 83
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:327:14: error: too few arguments to function 'php_stream_context_get_option'
  • error 84
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:329:32: error: too few arguments to function 'zend_fetch_resource'
  • error 85
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:345:21: error: too few arguments to function 'zend_register_resource'
  • error 86
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:347:37: error: invalid type argument of '->' (have 'int')
  • error 87
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:364:14: error: too few arguments to function 'php_stream_context_get_option'
  • error 88
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:370:14: error: too few arguments to function 'php_stream_context_get_option'
  • error 89
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:376:14: error: too few arguments to function 'php_stream_context_get_option'
  • error 90
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:383:14: error: too few arguments to function 'php_stream_context_get_option'
  • error 91
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:390:14: error: too few arguments to function 'php_stream_context_get_option'
  • error 92
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:396:14: error: too few arguments to function 'php_stream_context_get_option'
  • error 93
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:514:3: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 94
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:519:74: error: macro "zend_hash_get_current_key" requires 4 arguments, but only 3 given
  • error 95
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:519:16: error: 'zend_hash_get_current_key' undeclared (first use in this function); did you mean 'zend_hash_get_current_key_ex'?
  • error 96
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:524:65: error: macro "zend_hash_get_current_data" requires 2 arguments, but only 1 given
  • error 97
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:524:18: error: 'zend_hash_get_current_data' undeclared (first use in this function); did you mean 'zend_hash_get_current_data_ex'?
  • error 98
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:529:48: error: request for member 'val' in something not a structure or union
  • error 99
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:529:58: error: request for member 'len' in something not a structure or union
  • error 100
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:578:127: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 101
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:677:2: error: 'php_ssh2_fopen_wrapper_shell' undeclared here (not in a function); did you mean 'php_ssh2_stream_wrapper_shell'?
  • error 102
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:702:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'?
  • error 103
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:703:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'?
  • error 104
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:704:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'?
  • error 105
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:35: error: too few arguments to function 'zend_fetch_resource'
  • error 106
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:718:57: error: invalid type argument of '->' (have 'int')
  • error 107
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:752:3: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 108
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:758:16: error: too few arguments to function 'zend_hash_get_current_key_ex'
  • error 109
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:763:65: error: macro "zend_hash_get_current_data" requires 2 arguments, but only 1 given
  • error 110
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:763:18: error: 'zend_hash_get_current_data' undeclared (first use in this function); did you mean 'zend_hash_get_current_data_ex'?
  • error 111
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:768:48: error: request for member 'val' in something not a structure or union
  • error 112
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:768:58: error: request for member 'len' in something not a structure or union
  • error 113
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:819:126: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 114
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:893:2: error: 'php_ssh2_fopen_wrapper_exec' undeclared here (not in a function); did you mean 'php_ssh2_stream_wrapper_exec'?
  • error 115
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:921:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'?
  • error 116
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:922:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'?
  • error 117
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:923:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'?
  • error 118
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:35: error: too few arguments to function 'zend_fetch_resource'
  • error 119
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:951:59: error: invalid type argument of '->' (have 'int')
  • error 120
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1002:125: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 121
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1036:2: error: 'php_ssh2_fopen_wrapper_scp' undeclared here (not in a function); did you mean 'php_ssh2_stream_wrapper_scp'?
  • error 122
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:35: error: too few arguments to function 'zend_fetch_resource'
  • error 123
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1117:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'?
  • error 124
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:35: error: too few arguments to function 'zend_fetch_resource'
  • error 125
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1251:128: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 126
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1308:2: error: 'php_ssh2_fopen_wrapper_tunnel' undeclared here (not in a function); did you mean 'php_ssh2_stream_wrapper_tunnel'?
  • error 127
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1332:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'?
  • error 128
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:35: error: too few arguments to function 'zend_fetch_resource'
  • error 129
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1340:59: error: invalid type argument of '->' (have 'int')
  • error 130
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1364:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'?
  • error 131
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:152:25: error: unknown type name 'zend_resource'; did you mean 'term_source'?
  • error 132
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:101:45: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
  • error 133
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:101:2: error: 'ZVAL_STRINGL' undeclared (first use in this function)
  • error 134
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:102:47: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
  • error 135
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:128:45: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
  • error 136
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:128:2: error: 'ZVAL_STRINGL' undeclared (first use in this function)
  • error 137
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:133:28: error: 'IS_UNDEF' undeclared (first use in this function); did you mean 'IS_UNUSED'?
  • error 138
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:158:43: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
  • error 139
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:158:2: error: 'ZVAL_STRINGL' undeclared (first use in this function)
  • error 140
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:165:28: error: 'IS_UNDEF' undeclared (first use in this function); did you mean 'IS_UNUSED'?
  • error 141
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:190:45: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
  • error 142
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:190:2: error: 'ZVAL_STRINGL' undeclared (first use in this function)
  • error 143
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:191:47: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
  • error 144
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:212:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 145
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:215:17: error: too few arguments to function 'zend_hash_find'
  • error 146
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:274:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 147
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:278:15: error: too few arguments to function 'zend_hash_find'
  • error 148
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:301:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 149
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:306:100: error: 'STREAM_SOCKOP_NONE' undeclared (first use in this function)
  • error 150
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:306:11: error: too many arguments to function 'php_network_connect_socket_to_host'
  • error 151
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:337:20: error: too few arguments to function 'zend_hash_find'
  • error 152
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:354:20: error: too few arguments to function 'zend_hash_find'
  • error 153
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:417:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'?
  • error 154
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:430:13: error: too few arguments to function 'zend_register_resource'
  • error 155
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:466:36: error: too few arguments to function 'zend_fetch_resource'
  • error 156
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:482:43: error: macro "add_assoc_string" requires 4 arguments, but only 3 given
  • error 157
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:482:2: error: 'add_assoc_string' undeclared (first use in this function); did you mean 'add_assoc_string_ex'?
  • error 158
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:483:51: error: macro "add_assoc_string" requires 4 arguments, but only 3 given
  • error 159
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:486:47: error: macro "add_assoc_string" requires 4 arguments, but only 3 given
  • error 160
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:487:43: error: macro "add_assoc_string" requires 4 arguments, but only 3 given
  • error 161
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:488:45: error: macro "add_assoc_string" requires 4 arguments, but only 3 given
  • error 162
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:489:45: error: macro "add_assoc_string" requires 4 arguments, but only 3 given
  • error 163
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:493:47: error: macro "add_assoc_string" requires 4 arguments, but only 3 given
  • error 164
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:494:43: error: macro "add_assoc_string" requires 4 arguments, but only 3 given
  • error 165
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:495:45: error: macro "add_assoc_string" requires 4 arguments, but only 3 given
  • error 166
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:496:45: error: macro "add_assoc_string" requires 4 arguments, but only 3 given
  • error 167
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:510:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'?
  • error 168
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:518:36: error: too few arguments to function 'zend_fetch_resource'
  • error 169
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:537:46: error: macro "RETURN_STRINGL" requires 3 arguments, but only 2 given
  • error 170
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:537:3: error: 'RETURN_STRINGL' undeclared (first use in this function)
  • error 171
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:545:59: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
  • error 172
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:545:3: error: 'ZVAL_STRINGL' undeclared (first use in this function)
  • error 173
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:566:36: error: too few arguments to function 'zend_fetch_resource'
  • error 174
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:579:4: error: too few arguments to function 'add_next_index_stringl'
  • error 175
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:584:3: error: too few arguments to function 'add_next_index_string'
  • error 176
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:617:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 177
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:35: error: too few arguments to function 'zend_fetch_resource'
  • error 178
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:626:56: error: request for member 'val' in something not a structure or union
  • error 179
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:626:71: error: request for member 'len' in something not a structure or union
  • error 180
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:629:39: error: request for member 'val' in something not a structure or union
  • error 181
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:631:63: error: request for member 'val' in something not a structure or union
  • error 182
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:631:63: error: request for member 'val' in something not a structure or union
  • error 183
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:637:53: error: request for member 'val' in something not a structure or union
  • error 184
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:637:68: error: request for member 'len' in something not a structure or union
  • error 185
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:637:83: error: request for member 'val' in something not a structure or union
  • error 186
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:637:98: error: request for member 'len' in something not a structure or union
  • error 187
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:638:93: error: request for member 'val' in something not a structure or union
  • error 188
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:35: error: too few arguments to function 'zend_fetch_resource'
  • error 189
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:35: error: too few arguments to function 'zend_fetch_resource'
  • error 190
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:755:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'?
  • error 191
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:758:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'?
  • error 192
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:35: error: too few arguments to function 'zend_fetch_resource'
  • error 193
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:780:13: error: too few arguments to function 'zend_register_resource'
  • error 194
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:799:40: error: too few arguments to function 'zend_fetch_resource'
  • error 195
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:846:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'?
  • error 196
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:851:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 197
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:862:59: error: macro "zend_hash_get_current_data" requires 2 arguments, but only 1 given
  • error 198
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:862:15: error: 'zend_hash_get_current_data' undeclared (first use in this function); did you mean 'zend_hash_get_current_data_ex'?
  • error 199
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:875:18: error: too few arguments to function 'zend_hash_find'
  • error 200
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:885:18: error: too few arguments to function 'zend_hash_find'
  • error 201
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:893:30: error: invalid type argument of '->' (have 'int')
  • error 202
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:933:55: error: macro "zend_hash_del" requires 3 arguments, but only 2 given
  • error 203
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:933:3: error: 'zend_hash_del' undeclared (first use in this function); did you mean 'zend_hash_key'?
  • error 204
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:35: error: too few arguments to function 'zend_fetch_resource'
  • error 205
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:978:42: error: invalid type argument of '->' (have 'int')
  • error 206
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:983:13: error: too few arguments to function 'zend_register_resource'
  • error 207
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1003:43: error: too few arguments to function 'zend_fetch_resource'
  • error 208
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1016:16: error: too few arguments to function 'zend_hash_get_current_data_ex'
  • error 209
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1018:4: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 210
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1023:11: error: too few arguments to function 'zend_hash_get_current_key_ex'
  • error 211
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1035:20: error: request for member 'len' in something not a structure or union
  • error 212
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1035:37: error: request for member 'val' in something not a structure or union
  • error 213
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1048:11: error: request for member 'val' in something not a structure or union
  • error 214
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1050:35: error: request for member 'val' in something not a structure or union
  • error 215
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1051:39: error: request for member 'len' in something not a structure or union
  • error 216
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1054:35: error: request for member 'val' in something not a structure or union
  • error 217
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1055:39: error: request for member 'len' in something not a structure or union
  • error 218
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1098:43: error: too few arguments to function 'zend_fetch_resource'
  • error 219
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1119:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
  • error 220
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1125:43: error: too few arguments to function 'zend_fetch_resource'
  • error 221
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1141:74: error: macro "add_assoc_stringl" requires 5 arguments, but only 4 given
  • error 222
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1141:3: error: 'add_assoc_stringl' undeclared (first use in this function); did you mean 'add_assoc_stringl_ex'?
  • error 223
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1142:74: error: macro "add_assoc_stringl" requires 5 arguments, but only 4 given
  • error 224
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1148:74: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
  • error 225
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1148:4: error: 'ZVAL_STRINGL' undeclared (first use in this function)
  • error 226
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1150:61: error: macro "zend_hash_add" requires 6 arguments, but only 3 given
  • error 227
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1150:4: error: 'zend_hash_add' undeclared (first use in this function); did you mean 'zend_hash_find'?
  • error 228
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:35: error: too few arguments to function 'zend_fetch_resource'
  • error 229
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1247:35: error: unknown type name 'zend_resource'; did you mean 'term_source'?
  • error 230
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1277:36: error: unknown type name 'zend_resource'; did you mean 'term_source'?
  • error 231
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1288:39: error: unknown type name 'zend_resource'; did you mean 'term_source'?
  • error 232
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1303:55: error: 'php_ssh2_session_dtor' undeclared (first use in this function); did you mean 'php_ssh2_session_data'?
  • error 233
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1304:55: error: 'php_ssh2_listener_dtor' undeclared (first use in this function); did you mean 'php_ssh2_listener_data'?
  • error 234
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1305:52: error: 'php_ssh2_sftp_dtor' undeclared (first use in this function); did you mean 'php_ssh2_sftp_data'?
  • error 235
  • /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1306:58: error: 'php_ssh2_pkey_subsys_dtor' undeclared (first use in this function); did you mean 'php_ssh2_pkey_subsys_data'?
  • error 236
  • error: Bad exit status from /tmp/B.qg2QrY/BUILD/tmp/rpm-tmp.93849 (%build)
  • error 237
  • RPM build errors:
  • error 238
  • error: No files produced.

Content:

checking if we should skip the build
started at: Tue Aug 13 17:17:45 2019
killing old processes on a builder
sending signal 9 to pid -1
Killed
cleaning up /tmp
fetching https://srcbuilder.pld-linux.org/th//srpms/0ffc0efa-1d93-40bb-ab7c-0fcbed79f60b/php56-pecl-ssh2-1.1.2-1.src.rpm
fetched 43570 bytes, 127.1 K/s
installing srpm: php56-pecl-ssh2-1.1.2-1.src.rpm
+ install -d /tmp/B.qg2QrY/BUILD /tmp/B.qg2QrY/RPMS
+ LC_ALL=en_US.UTF-8
+ rpm -qp --changelog php56-pecl-ssh2-1.1.2-1.src.rpm
* Tue Aug 13 2019 PLD Linux Team <feedback@pld-linux.org>
- For complete changelog see: http://git.pld-linux.org/?p=packages/php-pecl-ssh2.git;a=log;h=auto/th/php-pecl-ssh2-1.1.2-1
* Tue Aug 13 2019 Elan Ruusamäe <glen@pld-linux.org> 0fcbc98
- use 00 prefix for extname * Tue Aug 13 2019 Elan Ruusamäe <glen@pld-linux.org> 50d4685
- up to 1.1.2 + rpm -Uhv --nodeps --define '_topdir /tmp/B.qg2QrY' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --define 'php_suffix 56' php56-pecl-ssh2-1.1.2-1.src.rpm Preparing... ################################################## php56-pecl-ssh2 ################################################## + rm -f php56-pecl-ssh2-1.1.2-1.src.rpm + install -m 700 -d /tmp/B.qg2QrY/BUILD/tmp + TMPDIR=/tmp/B.qg2QrY/BUILD/tmp + exec nice -n 0 rpmbuild -bp --short-circuit --nodeps --define '_topdir /tmp/B.qg2QrY' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x32-pld-linux --define 'php_suffix 56' --define 'prep exit 0' /tmp/B.qg2QrY/php-pecl-ssh2.spec Building target platforms: x32-pld-linux checking BuildConflict-ing packages no BuildConflicts found checking BR rpm: error: Failed build dependencies: rpm: php56-devel >= 4:5.0.4 is needed by php56-pecl-ssh2-1.1.2-1.src rpm: Building target platforms: x32-pld-linux updating poldek cache... ready is up to date Retrieving th::packages.ndir.md... th is up to date Retrieving th::packages.ndir.md... th is up to date Retrieving th-ready::packages.ndir.md... th-ready is up to date Retrieving th-ready::packages.ndir.md... th-ready is up to date Retrieving th-test::packages.ndir.md... th-test is up to date Retrieving th-test::packages.ndir.md... th-test is up to date checking conflicting packages in BRed packages poldek: Loading [pndir]ready... poldek: Loading [pndir]th-test... poldek: Loading [pndir]th-test... poldek: Loading [pndir]th-ready... poldek: Loading [pndir]th-ready... poldek: Loading [pndir]th... poldek: Loading [pndir]th... poldek: 27577 packages read poldek: Removed 3078 duplicate packages from available set poldek: Processing dependencies... poldek: php56-devel-5.6.40-3.x32 marks php56-common-5.6.40-3.x32 (cap /usr/libx32/php56) poldek: There are 2 packages to install (1 marked by dependencies): poldek: I php56-devel-5.6.40-3.x32 poldek: D php56-common-5.6.40-3.x32 poldek: This operation will use 6.9MB of disk space. poldek: Need to get 1.7MB of archives (1.7MB to download). poldek: poldek: Retrieving [1/2] th::php56-common-5.6.40-3.x32.rpm... poldek: ..............................done poldek: Retrieving [2/2] th::php56-devel-5.6.40-3.x32.rpm... poldek: ..............................done poldek: Executing pm-command.sh --upgrade -vh --test --root / --define _check_dirname_deps 1... poldek: Preparing... ################################################## no conflicts found checking BR rpm: error: Failed build dependencies: rpm: php56-devel >= 4:5.0.4 is needed by php56-pecl-ssh2-1.1.2-1.src rpm: Building target platforms: x32-pld-linux installing BR: php56\-devel + poldek --noask --caplookup -Q -v '--ignore=hhvm-*' '--ignore=php4-*' '--ignore=php52-*' '--ignore=php53-*' '--ignore=php54-*' '--ignore=php55-*' '--ignore=php70-*' '--ignore=php71-*' '--ignore=php72-*' '--ignore=php73-*' '--ignore=php74-*' --upgrade php56-devel Loading [pndir]ready... Loading [pndir]th-test... Loading [pndir]th-test... Loading [pndir]th-ready... Loading [pndir]th-ready... Loading [pndir]th... Loading [pndir]th... 27577 packages read Removed 3078 duplicate packages from available set Processing dependencies... php56-devel-5.6.40-3.x32 marks php56-common-5.6.40-3.x32 (cap /usr/libx32/php56) There are 2 packages to install (1 marked by dependencies): I php56-devel-5.6.40-3.x32 D php56-common-5.6.40-3.x32 This operation will use 6.9MB of disk space. Need to get 1.7MB of archives. Executing pm-command.sh --upgrade -vh --root / --define _check_dirname_deps 1... Preparing... ################################################## php56-common ################################################## php56-devel ################################################## building RPM using: set -ex; : build-id: 0ffc0efa-1d93-40bb-ab7c-0fcbed79f60b; TMPDIR=/tmp/B.qg2QrY/BUILD/tmp exec nice -n 0 rpmbuild -bb --define '_smp_mflags -j9' --define '_make_opts -Otarget' --define '_pld_builder 1' --define '_topdir /tmp/B.qg2QrY' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x32-pld-linux --define 'php_suffix 56' /tmp/B.qg2QrY/php-pecl-ssh2.spec + : build-id: 0ffc0efa-1d93-40bb-ab7c-0fcbed79f60b + TMPDIR=/tmp/B.qg2QrY/BUILD/tmp + exec nice -n 0 rpmbuild -bb --define '_smp_mflags -j9' --define '_make_opts -Otarget' --define '_pld_builder 1' --define '_topdir /tmp/B.qg2QrY' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x32-pld-linux --define 'php_suffix 56' /tmp/B.qg2QrY/php-pecl-ssh2.spec Building target platforms: x32-pld-linux Executing(%prep): /bin/sh -e /tmp/B.qg2QrY/BUILD/tmp/rpm-tmp.93849 + umask 022 + cd /tmp/B.qg2QrY/BUILD + cd /tmp/B.qg2QrY/BUILD + rm -rf php56-pecl-ssh2-1.1.2 + /bin/mkdir -p php56-pecl-ssh2-1.1.2 + cd php56-pecl-ssh2-1.1.2 + /usr/bin/gzip -dc /tmp/B.qg2QrY/ssh2-1.1.2.tgz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /bin/id -u + '[' 1000 '=' 0 ']' + /bin/id -u + '[' 1000 '=' 0 ']' + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv ssh2-1.1.2/LICENSE ssh2-1.1.2/README.md ssh2-1.1.2/config.m4 ssh2-1.1.2/config.w32 ssh2-1.1.2/php_ssh2.h ssh2-1.1.2/ssh2.c ssh2-1.1.2/ssh2_fopen_wrappers.c ssh2-1.1.2/ssh2_sftp.c ssh2-1.1.2/tests . + exit 0 Executing(%build): /bin/sh -e /tmp/B.qg2QrY/BUILD/tmp/rpm-tmp.93849 HOME=/home/users/builder PATH=/home/users/builder/GNUstep/Tools:/usr/local/bin:/usr/bin:/bin TMPDIR=/tmp/B.qg2QrY/BUILD/tmp + umask 022 + cd /tmp/B.qg2QrY/BUILD + cd php56-pecl-ssh2-1.1.2 + phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 + ./configure 'LDFLAGS=-Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc ' 'CFLAGS=-O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 ' 'CXXFLAGS=-O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 ' 'FFLAGS=-O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 ' 'FCFLAGS=-O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 ' 'CPPFLAGS=' 'CC=x86_64-pld-linux-gnux32-gcc' 'CXX=x86_64-pld-linux-gnux32-g++' '--host=x86_64-pld-linux-gnux32' '--build=x86_64-pld-linux-gnux32' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/libx32' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--x-libraries=/usr/libx32' checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking for x86_64-pld-linux-gnux32-cc... x86_64-pld-linux-gnux32-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pld-linux-gnux32-gcc accepts -g... yes checking for x86_64-pld-linux-gnux32-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... x86_64-pld-linux-gnux32-gcc -E checking for icc... no checking for suncc... no checking whether x86_64-pld-linux-gnux32-gcc and cc understand -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-pld-linux-gnux32 checking host system type... x86_64-pld-linux-gnux32 checking target system type... x86_64-pld-linux-gnux32 checking for PHP prefix... /usr checking for PHP includes... -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 checking for PHP extension directory... /usr/libx32/php56 checking for PHP installed headers prefix... /usr/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... re2c checking for re2c version... 1.2 (ok) checking for gawk... gawk checking for ssh2 support... yes, shared checking for ssh2 files in default path... found in /usr checking for libssh2_session_hostkey in -lssh2... yes checking for libssh2_agent_init in -lssh2... yes checking for libssh2_session_set_timeout in -lssh2... yes checking how to print strings... print -r checking for a sed that does not truncate output... (cached) /bin/sed checking for fgrep... /bin/grep -F checking for ld used by x86_64-pld-linux-gnux32-gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pld-linux-gnux32 file names to x86_64-pld-linux-gnux32 format... func_convert_file_noop checking how to convert x86_64-pld-linux-gnux32 file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-pld-linux-gnux32-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-pld-linux-gnux32-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... print -r -- checking for x86_64-pld-linux-gnux32-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-pld-linux-gnux32-strip... no checking for strip... strip checking for x86_64-pld-linux-gnux32-ranlib... no checking for ranlib... ranlib checking for mawk... (cached) gawk checking command to parse /usr/bin/nm -B output from x86_64-pld-linux-gnux32-gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for x86_64-pld-linux-gnux32-mt... no checking for mt... no checking if : is a manifest tool... no checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if x86_64-pld-linux-gnux32-gcc supports -fno-rtti -fno-exceptions... no checking for x86_64-pld-linux-gnux32-gcc option to produce PIC... -fPIC -DPIC checking if x86_64-pld-linux-gnux32-gcc PIC flag -fPIC -DPIC works... yes checking if x86_64-pld-linux-gnux32-gcc static flag -static works... yes checking if x86_64-pld-linux-gnux32-gcc supports -c -o file.o... yes checking if x86_64-pld-linux-gnux32-gcc supports -c -o file.o... (cached) yes checking whether the x86_64-pld-linux-gnux32-gcc linker (/usr/bin/ld -m elf32_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating ./config.status config.status: creating config.h config.status: executing libtool commands + /usr/bin/make -Otarget -j9 /bin/sh /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/libtool --mode=compile x86_64-pld-linux-gnux32-gcc -I. -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2 -DPHP_ATOM_INC -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/include -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/main -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2 -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 -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -c /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c -o ssh2_sftp.lo libtool: compile: x86_64-pld-linux-gnux32-gcc -I. -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2 -DPHP_ATOM_INC -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/include -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/main -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2 -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 -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -c /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c -fPIC -DPIC -o .libs/ssh2_sftp.o In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:152:25: error: unknown type name 'zend_resource'; did you mean 'term_source'? 152 | void php_ssh2_sftp_dtor(zend_resource *rsrc); | ^~~~~~~~~~~~~ | term_source /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:33:25: error: unknown type name 'zend_resource'; did you mean 'term_source'? 33 | void php_ssh2_sftp_dtor(zend_resource *rsrc) | ^~~~~~~~~~~~~ | term_source /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:152:58: error: unknown type name 'zend_off_t'; did you mean 'zend_op'? 152 | static int php_ssh2_sftp_stream_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset) | ^~~~~~~~~~ | zend_op /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:152:89: error: unknown type name 'zend_off_t'; did you mean 'zend_op'? 152 | static int php_ssh2_sftp_stream_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset) | ^~~~~~~~~~ | zend_op /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:212:2: error: 'php_ssh2_sftp_stream_seek' undeclared here (not in a function); did you mean 'php_ssh2_sftp_stream_read'? 212 | php_ssh2_sftp_stream_seek, | ^~~~~~~~~~~~~~~~~~~~~~~~~ | php_ssh2_sftp_stream_read /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:222:16: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 222 | int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c: In function 'php_ssh2_sftp_dirstream_read': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:278:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 278 | zend_string *basename; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:285:13: error: too few arguments to function 'php_basename' 285 | basename = php_basename(ent->d_name, bytesread, NULL, 0); | ^~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:27: /usr/include/php/ext/standard/php_string.h:128:13: note: declared here 128 | PHPAPI void php_basename(const char *s, size_t len, char *suffix, size_t sufflen, char **p_ret, size_t *p_len TSRMLS_DC); | ^~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:210, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:290:51: error: request for member 'len' in something not a structure or union 290 | bytesread = MIN(sizeof(ent->d_name) - 1, basename->len); | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:290:51: error: request for member 'len' in something not a structure or union 290 | bytesread = MIN(sizeof(ent->d_name) - 1, basename->len); | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:291:30: error: request for member 'val' in something not a structure or union 291 | memcpy(ent->d_name, basename->val, bytesread); | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:293:2: warning: implicit declaration of function 'zend_string_release' [-Wimplicit-function-declaration] 293 | zend_string_release(basename); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c: At top level: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:329:16: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 329 | int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:541:2: error: 'php_ssh2_sftp_stream_opener' undeclared here (not in a function); did you mean 'php_ssh2_sftp_stream_ops'? 541 | php_ssh2_sftp_stream_opener, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | php_ssh2_sftp_stream_ops /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:545:2: error: 'php_ssh2_sftp_dirstream_opener' undeclared here (not in a function); did you mean 'php_ssh2_sftp_dirstream_ops'? 545 | php_ssh2_sftp_dirstream_opener, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | php_ssh2_sftp_dirstream_ops /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c: In function 'zif_ssh2_sftp': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:578:56: warning: implicit declaration of function 'Z_RES_P' [-Wimplicit-function-declaration] 578 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { | ^~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:578:56: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 578 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { | ^~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:578:75: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 578 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:578:102: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 578 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { | ^~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:578:36: error: too few arguments to function 'zend_fetch_resource' 578 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:594:42: error: invalid type argument of '->' (have 'int') 594 | data->session_rsrcid = Z_RES_P(zsession)->handle; | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:597:2: warning: implicit declaration of function 'RETURN_RES'; did you mean 'RETURN_TRUE'? [-Wimplicit-function-declaration] 597 | RETURN_RES(zend_register_resource(data, le_ssh2_sftp)); | ^~~~~~~~~~ | RETURN_TRUE /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:597:36: warning: passing argument 1 of 'zend_register_resource' from incompatible pointer type [-Wincompatible-pointer-types] 597 | RETURN_RES(zend_register_resource(data, le_ssh2_sftp)); | ^~~~ | | | php_ssh2_sftp_data * {aka struct _php_ssh2_sftp_data *} In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:82:43: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'php_ssh2_sftp_data *' {aka 'struct _php_ssh2_sftp_data *'} 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ~~~~~~^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:597:42: warning: passing argument 2 of 'zend_register_resource' makes pointer from integer without a cast [-Wint-conversion] 597 | RETURN_RES(zend_register_resource(data, le_ssh2_sftp)); | ^~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:82:62: note: expected 'void *' but argument is of type 'int' 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ~~~~~~^~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:597:13: error: too few arguments to function 'zend_register_resource' 597 | RETURN_RES(zend_register_resource(data, le_ssh2_sftp)); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:82:14: note: declared here 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ^~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c: In function 'zif_ssh2_sftp_rename': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:609:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 609 | zend_string *src, *dst; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:615:56: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 615 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:48:34: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 48 | #define PHP_SSH2_SFTP_RES_NAME "SSH2 SFTP" | ^~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:615:72: note: in expansion of macro 'PHP_SSH2_SFTP_RES_NAME' 615 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:615:96: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 615 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:615:36: error: too few arguments to function 'zend_fetch_resource' 615 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:619:53: error: request for member 'val' in something not a structure or union 619 | RETURN_BOOL(!libssh2_sftp_rename_ex(data->sftp, src->val, src->len, dst->val, dst->len, | ^~ /usr/include/php/Zend/zend_API.h:558:21: note: in definition of macro 'ZVAL_BOOL' 558 | Z_LVAL_P(__z) = ((b) != 0); \ | ^ /usr/include/php/Zend/zend_API.h:635:31: note: in expansion of macro 'RETVAL_BOOL' 635 | #define RETURN_BOOL(b) { RETVAL_BOOL(b); return; } | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:619:2: note: in expansion of macro 'RETURN_BOOL' 619 | RETURN_BOOL(!libssh2_sftp_rename_ex(data->sftp, src->val, src->len, dst->val, dst->len, | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:619:63: error: request for member 'len' in something not a structure or union 619 | RETURN_BOOL(!libssh2_sftp_rename_ex(data->sftp, src->val, src->len, dst->val, dst->len, | ^~ /usr/include/php/Zend/zend_API.h:558:21: note: in definition of macro 'ZVAL_BOOL' 558 | Z_LVAL_P(__z) = ((b) != 0); \ | ^ /usr/include/php/Zend/zend_API.h:635:31: note: in expansion of macro 'RETVAL_BOOL' 635 | #define RETURN_BOOL(b) { RETVAL_BOOL(b); return; } | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:619:2: note: in expansion of macro 'RETURN_BOOL' 619 | RETURN_BOOL(!libssh2_sftp_rename_ex(data->sftp, src->val, src->len, dst->val, dst->len, | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:619:73: error: request for member 'val' in something not a structure or union 619 | RETURN_BOOL(!libssh2_sftp_rename_ex(data->sftp, src->val, src->len, dst->val, dst->len, | ^~ /usr/include/php/Zend/zend_API.h:558:21: note: in definition of macro 'ZVAL_BOOL' 558 | Z_LVAL_P(__z) = ((b) != 0); \ | ^ /usr/include/php/Zend/zend_API.h:635:31: note: in expansion of macro 'RETVAL_BOOL' 635 | #define RETURN_BOOL(b) { RETVAL_BOOL(b); return; } | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:619:2: note: in expansion of macro 'RETURN_BOOL' 619 | RETURN_BOOL(!libssh2_sftp_rename_ex(data->sftp, src->val, src->len, dst->val, dst->len, | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:619:83: error: request for member 'len' in something not a structure or union 619 | RETURN_BOOL(!libssh2_sftp_rename_ex(data->sftp, src->val, src->len, dst->val, dst->len, | ^~ /usr/include/php/Zend/zend_API.h:558:21: note: in definition of macro 'ZVAL_BOOL' 558 | Z_LVAL_P(__z) = ((b) != 0); \ | ^ /usr/include/php/Zend/zend_API.h:635:31: note: in expansion of macro 'RETVAL_BOOL' 635 | #define RETURN_BOOL(b) { RETVAL_BOOL(b); return; } | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:619:2: note: in expansion of macro 'RETURN_BOOL' 619 | RETURN_BOOL(!libssh2_sftp_rename_ex(data->sftp, src->val, src->len, dst->val, dst->len, | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c: In function 'zif_ssh2_sftp_unlink': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:630:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 630 | zend_string *filename; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:636:56: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 636 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:48:34: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 48 | #define PHP_SSH2_SFTP_RES_NAME "SSH2 SFTP" | ^~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:636:72: note: in expansion of macro 'PHP_SSH2_SFTP_RES_NAME' 636 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:636:96: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 636 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:636:36: error: too few arguments to function 'zend_fetch_resource' 636 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:640:58: error: request for member 'val' in something not a structure or union 640 | RETURN_BOOL(!libssh2_sftp_unlink_ex(data->sftp, filename->val, filename->len)); | ^~ /usr/include/php/Zend/zend_API.h:558:21: note: in definition of macro 'ZVAL_BOOL' 558 | Z_LVAL_P(__z) = ((b) != 0); \ | ^ /usr/include/php/Zend/zend_API.h:635:31: note: in expansion of macro 'RETVAL_BOOL' 635 | #define RETURN_BOOL(b) { RETVAL_BOOL(b); return; } | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:640:2: note: in expansion of macro 'RETURN_BOOL' 640 | RETURN_BOOL(!libssh2_sftp_unlink_ex(data->sftp, filename->val, filename->len)); | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:640:73: error: request for member 'len' in something not a structure or union 640 | RETURN_BOOL(!libssh2_sftp_unlink_ex(data->sftp, filename->val, filename->len)); | ^~ /usr/include/php/Zend/zend_API.h:558:21: note: in definition of macro 'ZVAL_BOOL' 558 | Z_LVAL_P(__z) = ((b) != 0); \ | ^ /usr/include/php/Zend/zend_API.h:635:31: note: in expansion of macro 'RETVAL_BOOL' 635 | #define RETURN_BOOL(b) { RETVAL_BOOL(b); return; } | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:640:2: note: in expansion of macro 'RETURN_BOOL' 640 | RETURN_BOOL(!libssh2_sftp_unlink_ex(data->sftp, filename->val, filename->len)); | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c: In function 'zif_ssh2_sftp_mkdir': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:650:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 650 | zend_string *filename; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:651:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'? 651 | zend_long mode = 0777; | ^~~~~~~~~ | zend_ulong /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:663:56: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 663 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:48:34: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 48 | #define PHP_SSH2_SFTP_RES_NAME "SSH2 SFTP" | ^~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:663:72: note: in expansion of macro 'PHP_SSH2_SFTP_RES_NAME' 663 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:663:96: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 663 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:663:36: error: too few arguments to function 'zend_fetch_resource' 663 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:669:15: error: request for member 'val' in something not a structure or union 669 | p = filename->val; | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:671:21: error: request for member 'val' in something not a structure or union 671 | if ((p - filename->val) + 1 == filename->len) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:671:43: error: request for member 'len' in something not a structure or union 671 | if ((p - filename->val) + 1 == filename->len) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:674:46: error: request for member 'val' in something not a structure or union 674 | libssh2_sftp_mkdir_ex(data->sftp, filename->val, p - filename->val, mode); | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:674:65: error: request for member 'val' in something not a structure or union 674 | libssh2_sftp_mkdir_ex(data->sftp, filename->val, p - filename->val, mode); | ^~ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:679:57: error: request for member 'val' in something not a structure or union 679 | RETURN_BOOL(!libssh2_sftp_mkdir_ex(data->sftp, filename->val, filename->len, mode)); | ^~ /usr/include/php/Zend/zend_API.h:558:21: note: in definition of macro 'ZVAL_BOOL' 558 | Z_LVAL_P(__z) = ((b) != 0); \ | ^ /usr/include/php/Zend/zend_API.h:635:31: note: in expansion of macro 'RETVAL_BOOL' 635 | #define RETURN_BOOL(b) { RETVAL_BOOL(b); return; } | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:679:2: note: in expansion of macro 'RETURN_BOOL' 679 | RETURN_BOOL(!libssh2_sftp_mkdir_ex(data->sftp, filename->val, filename->len, mode)); | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:679:72: error: request for member 'len' in something not a structure or union 679 | RETURN_BOOL(!libssh2_sftp_mkdir_ex(data->sftp, filename->val, filename->len, mode)); | ^~ /usr/include/php/Zend/zend_API.h:558:21: note: in definition of macro 'ZVAL_BOOL' 558 | Z_LVAL_P(__z) = ((b) != 0); \ | ^ /usr/include/php/Zend/zend_API.h:635:31: note: in expansion of macro 'RETVAL_BOOL' 635 | #define RETURN_BOOL(b) { RETVAL_BOOL(b); return; } | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:679:2: note: in expansion of macro 'RETURN_BOOL' 679 | RETURN_BOOL(!libssh2_sftp_mkdir_ex(data->sftp, filename->val, filename->len, mode)); | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c: In function 'zif_ssh2_sftp_rmdir': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:689:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 689 | zend_string *filename; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:695:56: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 695 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:48:34: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 48 | #define PHP_SSH2_SFTP_RES_NAME "SSH2 SFTP" | ^~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:695:72: note: in expansion of macro 'PHP_SSH2_SFTP_RES_NAME' 695 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:695:96: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 695 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:695:36: error: too few arguments to function 'zend_fetch_resource' 695 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:699:57: error: request for member 'val' in something not a structure or union 699 | RETURN_BOOL(!libssh2_sftp_rmdir_ex(data->sftp, filename->val, filename->len)); | ^~ /usr/include/php/Zend/zend_API.h:558:21: note: in definition of macro 'ZVAL_BOOL' 558 | Z_LVAL_P(__z) = ((b) != 0); \ | ^ /usr/include/php/Zend/zend_API.h:635:31: note: in expansion of macro 'RETVAL_BOOL' 635 | #define RETURN_BOOL(b) { RETVAL_BOOL(b); return; } | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:699:2: note: in expansion of macro 'RETURN_BOOL' 699 | RETURN_BOOL(!libssh2_sftp_rmdir_ex(data->sftp, filename->val, filename->len)); | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:699:72: error: request for member 'len' in something not a structure or union 699 | RETURN_BOOL(!libssh2_sftp_rmdir_ex(data->sftp, filename->val, filename->len)); | ^~ /usr/include/php/Zend/zend_API.h:558:21: note: in definition of macro 'ZVAL_BOOL' 558 | Z_LVAL_P(__z) = ((b) != 0); \ | ^ /usr/include/php/Zend/zend_API.h:635:31: note: in expansion of macro 'RETVAL_BOOL' 635 | #define RETURN_BOOL(b) { RETVAL_BOOL(b); return; } | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:699:2: note: in expansion of macro 'RETURN_BOOL' 699 | RETURN_BOOL(!libssh2_sftp_rmdir_ex(data->sftp, filename->val, filename->len)); | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c: In function 'zif_ssh2_sftp_chmod': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:709:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 709 | zend_string *filename; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:710:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'? 710 | zend_long mode; | ^~~~~~~~~ | zend_ulong /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:717:6: warning: implicit declaration of function 'ZSTR_LEN'; did you mean 'Z_STRLEN'? [-Wimplicit-function-declaration] 717 | if (ZSTR_LEN(filename) < 1) { | ^~~~~~~~ | Z_STRLEN /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:721:56: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 721 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:48:34: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 48 | #define PHP_SSH2_SFTP_RES_NAME "SSH2 SFTP" | ^~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:721:72: note: in expansion of macro 'PHP_SSH2_SFTP_RES_NAME' 721 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:721:96: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 721 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:721:36: error: too few arguments to function 'zend_fetch_resource' 721 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:728:56: error: request for member 'val' in something not a structure or union 728 | RETURN_BOOL(!libssh2_sftp_stat_ex(data->sftp, filename->val, filename->len, LIBSSH2_SFTP_SETSTAT, &attrs)); | ^~ /usr/include/php/Zend/zend_API.h:558:21: note: in definition of macro 'ZVAL_BOOL' 558 | Z_LVAL_P(__z) = ((b) != 0); \ | ^ /usr/include/php/Zend/zend_API.h:635:31: note: in expansion of macro 'RETVAL_BOOL' 635 | #define RETURN_BOOL(b) { RETVAL_BOOL(b); return; } | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:728:2: note: in expansion of macro 'RETURN_BOOL' 728 | RETURN_BOOL(!libssh2_sftp_stat_ex(data->sftp, filename->val, filename->len, LIBSSH2_SFTP_SETSTAT, &attrs)); | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:728:71: error: request for member 'len' in something not a structure or union 728 | RETURN_BOOL(!libssh2_sftp_stat_ex(data->sftp, filename->val, filename->len, LIBSSH2_SFTP_SETSTAT, &attrs)); | ^~ /usr/include/php/Zend/zend_API.h:558:21: note: in definition of macro 'ZVAL_BOOL' 558 | Z_LVAL_P(__z) = ((b) != 0); \ | ^ /usr/include/php/Zend/zend_API.h:635:31: note: in expansion of macro 'RETVAL_BOOL' 635 | #define RETURN_BOOL(b) { RETVAL_BOOL(b); return; } | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:728:2: note: in expansion of macro 'RETURN_BOOL' 728 | RETURN_BOOL(!libssh2_sftp_stat_ex(data->sftp, filename->val, filename->len, LIBSSH2_SFTP_SETSTAT, &attrs)); | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c: In function 'php_ssh2_sftp_stat_func': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:742:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 742 | zend_string *path; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:748:56: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 748 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:48:34: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 48 | #define PHP_SSH2_SFTP_RES_NAME "SSH2 SFTP" | ^~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:748:72: note: in expansion of macro 'PHP_SSH2_SFTP_RES_NAME' 748 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:748:96: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 748 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:748:36: error: too few arguments to function 'zend_fetch_resource' 748 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:752:43: error: request for member 'val' in something not a structure or union 752 | if (libssh2_sftp_stat_ex(data->sftp, path->val, path->len, stat_type, &attrs)) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:752:54: error: request for member 'len' in something not a structure or union 752 | if (libssh2_sftp_stat_ex(data->sftp, path->val, path->len, stat_type, &attrs)) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c: In function 'zif_ssh2_sftp_symlink': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:806:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 806 | zend_string *targ, *link; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:812:56: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 812 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:48:34: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 48 | #define PHP_SSH2_SFTP_RES_NAME "SSH2 SFTP" | ^~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:812:72: note: in expansion of macro 'PHP_SSH2_SFTP_RES_NAME' 812 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:812:96: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 812 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:812:36: error: too few arguments to function 'zend_fetch_resource' 812 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:816:55: error: request for member 'val' in something not a structure or union 816 | RETURN_BOOL(!libssh2_sftp_symlink_ex(data->sftp, targ->val, targ->len, link->val, link->len, LIBSSH2_SFTP_SYMLINK)); | ^~ /usr/include/php/Zend/zend_API.h:558:21: note: in definition of macro 'ZVAL_BOOL' 558 | Z_LVAL_P(__z) = ((b) != 0); \ | ^ /usr/include/php/Zend/zend_API.h:635:31: note: in expansion of macro 'RETVAL_BOOL' 635 | #define RETURN_BOOL(b) { RETVAL_BOOL(b); return; } | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:816:2: note: in expansion of macro 'RETURN_BOOL' 816 | RETURN_BOOL(!libssh2_sftp_symlink_ex(data->sftp, targ->val, targ->len, link->val, link->len, LIBSSH2_SFTP_SYMLINK)); | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:816:66: error: request for member 'len' in something not a structure or union 816 | RETURN_BOOL(!libssh2_sftp_symlink_ex(data->sftp, targ->val, targ->len, link->val, link->len, LIBSSH2_SFTP_SYMLINK)); | ^~ /usr/include/php/Zend/zend_API.h:558:21: note: in definition of macro 'ZVAL_BOOL' 558 | Z_LVAL_P(__z) = ((b) != 0); \ | ^ /usr/include/php/Zend/zend_API.h:635:31: note: in expansion of macro 'RETVAL_BOOL' 635 | #define RETURN_BOOL(b) { RETVAL_BOOL(b); return; } | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:816:2: note: in expansion of macro 'RETURN_BOOL' 816 | RETURN_BOOL(!libssh2_sftp_symlink_ex(data->sftp, targ->val, targ->len, link->val, link->len, LIBSSH2_SFTP_SYMLINK)); | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:816:77: error: request for member 'val' in something not a structure or union 816 | RETURN_BOOL(!libssh2_sftp_symlink_ex(data->sftp, targ->val, targ->len, link->val, link->len, LIBSSH2_SFTP_SYMLINK)); | ^~ /usr/include/php/Zend/zend_API.h:558:21: note: in definition of macro 'ZVAL_BOOL' 558 | Z_LVAL_P(__z) = ((b) != 0); \ | ^ /usr/include/php/Zend/zend_API.h:635:31: note: in expansion of macro 'RETVAL_BOOL' 635 | #define RETURN_BOOL(b) { RETVAL_BOOL(b); return; } | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:816:2: note: in expansion of macro 'RETURN_BOOL' 816 | RETURN_BOOL(!libssh2_sftp_symlink_ex(data->sftp, targ->val, targ->len, link->val, link->len, LIBSSH2_SFTP_SYMLINK)); | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:816:88: error: request for member 'len' in something not a structure or union 816 | RETURN_BOOL(!libssh2_sftp_symlink_ex(data->sftp, targ->val, targ->len, link->val, link->len, LIBSSH2_SFTP_SYMLINK)); | ^~ /usr/include/php/Zend/zend_API.h:558:21: note: in definition of macro 'ZVAL_BOOL' 558 | Z_LVAL_P(__z) = ((b) != 0); \ | ^ /usr/include/php/Zend/zend_API.h:635:31: note: in expansion of macro 'RETVAL_BOOL' 635 | #define RETURN_BOOL(b) { RETVAL_BOOL(b); return; } | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:816:2: note: in expansion of macro 'RETURN_BOOL' 816 | RETURN_BOOL(!libssh2_sftp_symlink_ex(data->sftp, targ->val, targ->len, link->val, link->len, LIBSSH2_SFTP_SYMLINK)); | ^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c: In function 'zif_ssh2_sftp_readlink': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:826:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 826 | zend_string *link; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:834:56: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 834 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:48:34: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 48 | #define PHP_SSH2_SFTP_RES_NAME "SSH2 SFTP" | ^~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:834:72: note: in expansion of macro 'PHP_SSH2_SFTP_RES_NAME' 834 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:834:96: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 834 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:834:36: error: too few arguments to function 'zend_fetch_resource' 834 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:838:58: error: request for member 'val' in something not a structure or union 838 | if ((targ_len = libssh2_sftp_symlink_ex(data->sftp, link->val, link->len, targ, 8192, LIBSSH2_SFTP_READLINK)) < 0) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:838:69: error: request for member 'len' in something not a structure or union 838 | if ((targ_len = libssh2_sftp_symlink_ex(data->sftp, link->val, link->len, targ, 8192, LIBSSH2_SFTP_READLINK)) < 0) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:839:60: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int *' [-Wformat=] 839 | php_error_docref(NULL, E_WARNING, "Unable to read link '%s'", link); | ~^ ~~~~ | | | | | int * | char * | %n /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:843:31: error: macro "RETURN_STRINGL" requires 3 arguments, but only 2 given 843 | RETURN_STRINGL(targ, targ_len); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_API.h:640: note: macro "RETURN_STRINGL" defined here 640 | #define RETURN_STRINGL(s, l, duplicate) { RETVAL_STRINGL(s, l, duplicate); return; } | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:843:2: error: 'RETURN_STRINGL' undeclared (first use in this function) 843 | RETURN_STRINGL(targ, targ_len); | ^~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:843:2: note: each undeclared identifier is reported only once for each function it appears in /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c: In function 'zif_ssh2_sftp_realpath': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:853:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 853 | zend_string *link; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:861:56: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 861 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:48:34: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 48 | #define PHP_SSH2_SFTP_RES_NAME "SSH2 SFTP" | ^~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:861:72: note: in expansion of macro 'PHP_SSH2_SFTP_RES_NAME' 861 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:861:96: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 861 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:861:36: error: too few arguments to function 'zend_fetch_resource' 861 | if ((data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zsftp), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:865:58: error: request for member 'val' in something not a structure or union 865 | if ((targ_len = libssh2_sftp_symlink_ex(data->sftp, link->val, link->len, targ, 8192, LIBSSH2_SFTP_REALPATH)) < 0) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:865:69: error: request for member 'len' in something not a structure or union 865 | if ((targ_len = libssh2_sftp_symlink_ex(data->sftp, link->val, link->len, targ, 8192, LIBSSH2_SFTP_REALPATH)) < 0) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:866:80: error: request for member 'val' in something not a structure or union 866 | php_error_docref(NULL, E_WARNING, "Unable to resolve realpath for '%s'", link->val); | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:870:31: error: macro "RETURN_STRINGL" requires 3 arguments, but only 2 given 870 | RETURN_STRINGL(targ, targ_len); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:25: /usr/include/php/Zend/zend_API.h:640: note: macro "RETURN_STRINGL" defined here 640 | #define RETURN_STRINGL(s, l, duplicate) { RETVAL_STRINGL(s, l, duplicate); return; } | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_sftp.c:870:2: error: 'RETURN_STRINGL' undeclared (first use in this function) 870 | RETURN_STRINGL(targ, targ_len); | ^~~~~~~~~~~~~~ make: *** [Makefile:205: ssh2_sftp.lo] Error 1 make: *** Waiting for unfinished jobs.... /bin/sh /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/libtool --mode=compile x86_64-pld-linux-gnux32-gcc -I. -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2 -DPHP_ATOM_INC -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/include -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/main -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2 -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 -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -c /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c -o ssh2_fopen_wrappers.lo libtool: compile: x86_64-pld-linux-gnux32-gcc -I. -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2 -DPHP_ATOM_INC -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/include -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/main -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2 -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 -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -c /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c -fPIC -DPIC -o .libs/ssh2_fopen_wrappers.o In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:152:25: error: unknown type name 'zend_resource'; did you mean 'term_source'? 152 | void php_ssh2_sftp_dtor(zend_resource *rsrc); | ^~~~~~~~~~~~~ | term_source /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c: In function 'php_ssh2_zval_from_resource_handle': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:30:2: error: unknown type name 'zend_resource'; did you mean 'term_source'? 30 | zend_resource *zr; | ^~~~~~~~~~~~~ | term_source /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:31:2: warning: implicit declaration of function 'ZEND_HASH_FOREACH_VAL' [-Wimplicit-function-declaration] 31 | ZEND_HASH_FOREACH_VAL(&EG(regular_list), val) { | ^~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:31:47: error: expected ';' before '{' token 31 | ZEND_HASH_FOREACH_VAL(&EG(regular_list), val) { | ^~ | ; /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c: In function 'php_ssh2_channel_stream_write': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:54:51: warning: implicit declaration of function 'Z_RES_P' [-Wimplicit-function-declaration] 54 | session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zresource), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); | ^~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:54:51: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 54 | session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zresource), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); | ^~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:54:71: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 54 | session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zresource), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:54:98: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 54 | session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zresource), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); | ^~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:54:31: error: too few arguments to function 'zend_fetch_resource' 54 | session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zresource), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:78:55: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 78 | php_error_docref(NULL, E_WARNING, "Failure '%s' (%ld)", error_msg, writestate); | ~~^ ~~~~~~~~~~ | | | | long int size_t {aka unsigned int} | %d /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c: In function 'php_ssh2_channel_stream_read': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:98:51: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 98 | session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zresource), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); | ^~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:98:71: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 98 | session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zresource), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:98:98: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 98 | session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zresource), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); | ^~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:98:31: error: too few arguments to function 'zend_fetch_resource' 98 | session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zresource), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:120:55: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'ssize_t' {aka 'int'} [-Wformat=] 120 | php_error_docref(NULL, E_WARNING, "Failure '%s' (%ld)", error_msg, readstate); | ~~^ ~~~~~~~~~ | | | | long int ssize_t {aka int} | %d /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c: In function 'php_ssh2_fopen_wraper_parse_path': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:217:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'? 217 | zend_long resource_id; | ^~~~~~~~~ | zend_ulong /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:262:38: warning: passing argument 3 of 'is_numeric_string' from incompatible pointer type [-Wincompatible-pointer-types] 262 | if (is_numeric_string(s, strlen(s), &resource_id, NULL, 0) == IS_LONG) { | ^~~~~~~~~~~~ | | | int * In file included from /usr/include/php/Zend/zend.h:849, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_operators.h:269:79: note: expected 'long int *' but argument is of type 'int *' 269 | static inline zend_uchar is_numeric_string(const char *str, int length, long *lval, double *dval, int allow_errors) { | ~~~~~~^~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:269:58: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 269 | sftp_data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zresource), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp); | ^~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:48:34: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 48 | #define PHP_SSH2_SFTP_RES_NAME "SSH2 SFTP" | ^~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:269:78: note: in expansion of macro 'PHP_SSH2_SFTP_RES_NAME' 269 | sftp_data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zresource), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:269:102: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 269 | sftp_data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zresource), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp); | ^~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:269:38: error: too few arguments to function 'zend_fetch_resource' 269 | sftp_data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(zresource), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp); | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:281:52: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 281 | session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zresource), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); | ^~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:281:72: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 281 | session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zresource), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:281:99: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 281 | session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zresource), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); | ^~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:281:32: error: too few arguments to function 'zend_fetch_resource' 281 | session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zresource), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:297:44: warning: passing argument 1 of 'zend_register_resource' from incompatible pointer type [-Wincompatible-pointer-types] 297 | *psftp_rsrcid = zend_register_resource(sftp_data, le_ssh2_sftp)->handle; | ^~~~~~~~~ | | | php_ssh2_sftp_data * {aka struct _php_ssh2_sftp_data *} In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:82:43: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'php_ssh2_sftp_data *' {aka 'struct _php_ssh2_sftp_data *'} 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ~~~~~~^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:297:55: warning: passing argument 2 of 'zend_register_resource' makes pointer from integer without a cast [-Wint-conversion] 297 | *psftp_rsrcid = zend_register_resource(sftp_data, le_ssh2_sftp)->handle; | ^~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:82:62: note: expected 'void *' but argument is of type 'int' 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ~~~~~~^~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:297:21: error: too few arguments to function 'zend_register_resource' 297 | *psftp_rsrcid = zend_register_resource(sftp_data, le_ssh2_sftp)->handle; | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:82:14: note: declared here 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ^~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:313:14: error: too few arguments to function 'php_stream_context_get_option' 313 | (tmpzval = php_stream_context_get_option(context, "ssh2", "sftp")) != NULL && | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php_streams.h:103, from /usr/include/php/main/php.h:398, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/main/streams/php_stream_context.h:62:12: note: declared here 62 | PHPAPI int php_stream_context_get_option(php_stream_context *context, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:316:57: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 316 | sftp_data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(tmpzval), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp); | ^~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:48:34: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 48 | #define PHP_SSH2_SFTP_RES_NAME "SSH2 SFTP" | ^~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:316:75: note: in expansion of macro 'PHP_SSH2_SFTP_RES_NAME' 316 | sftp_data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(tmpzval), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:316:99: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 316 | sftp_data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(tmpzval), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp); | ^~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:316:37: error: too few arguments to function 'zend_fetch_resource' 316 | sftp_data = (php_ssh2_sftp_data *)zend_fetch_resource(Z_RES_P(tmpzval), PHP_SSH2_SFTP_RES_NAME, le_ssh2_sftp); | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:327:14: error: too few arguments to function 'php_stream_context_get_option' 327 | (tmpzval = php_stream_context_get_option(context, "ssh2", "session")) != NULL && | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php_streams.h:103, from /usr/include/php/main/php.h:398, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/main/streams/php_stream_context.h:62:12: note: declared here 62 | PHPAPI int php_stream_context_get_option(php_stream_context *context, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:329:52: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 329 | session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(tmpzval), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); | ^~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:329:70: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 329 | session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(tmpzval), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:329:97: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 329 | session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(tmpzval), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); | ^~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:329:32: error: too few arguments to function 'zend_fetch_resource' 329 | session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(tmpzval), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:345:44: warning: passing argument 1 of 'zend_register_resource' from incompatible pointer type [-Wincompatible-pointer-types] 345 | *psftp_rsrcid = zend_register_resource(sftp_data, le_ssh2_sftp)->handle; | ^~~~~~~~~ | | | php_ssh2_sftp_data * {aka struct _php_ssh2_sftp_data *} In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:82:43: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'php_ssh2_sftp_data *' {aka 'struct _php_ssh2_sftp_data *'} 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ~~~~~~^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:345:55: warning: passing argument 2 of 'zend_register_resource' makes pointer from integer without a cast [-Wint-conversion] 345 | *psftp_rsrcid = zend_register_resource(sftp_data, le_ssh2_sftp)->handle; | ^~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:82:62: note: expected 'void *' but argument is of type 'int' 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ~~~~~~^~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:345:21: error: too few arguments to function 'zend_register_resource' 345 | *psftp_rsrcid = zend_register_resource(sftp_data, le_ssh2_sftp)->handle; | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:82:14: note: declared here 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ^~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:347:37: error: invalid type argument of '->' (have 'int') 347 | *presource_id = Z_RES_P(tmpzval)->handle; | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:364:14: error: too few arguments to function 'php_stream_context_get_option' 364 | (tmpzval = php_stream_context_get_option(context, "ssh2", "methods")) != NULL && | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php_streams.h:103, from /usr/include/php/main/php.h:398, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/main/streams/php_stream_context.h:62:12: note: declared here 62 | PHPAPI int php_stream_context_get_option(php_stream_context *context, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:370:14: error: too few arguments to function 'php_stream_context_get_option' 370 | (tmpzval = php_stream_context_get_option(context, "ssh2", "callbacks")) != NULL && | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php_streams.h:103, from /usr/include/php/main/php.h:398, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/main/streams/php_stream_context.h:62:12: note: declared here 62 | PHPAPI int php_stream_context_get_option(php_stream_context *context, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:376:14: error: too few arguments to function 'php_stream_context_get_option' 376 | (tmpzval = php_stream_context_get_option(context, "ssh2", "username")) != NULL && | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php_streams.h:103, from /usr/include/php/main/php.h:398, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/main/streams/php_stream_context.h:62:12: note: declared here 62 | PHPAPI int php_stream_context_get_option(php_stream_context *context, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:383:14: error: too few arguments to function 'php_stream_context_get_option' 383 | (tmpzval = php_stream_context_get_option(context, "ssh2", "password")) != NULL && | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php_streams.h:103, from /usr/include/php/main/php.h:398, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/main/streams/php_stream_context.h:62:12: note: declared here 62 | PHPAPI int php_stream_context_get_option(php_stream_context *context, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:390:14: error: too few arguments to function 'php_stream_context_get_option' 390 | (tmpzval = php_stream_context_get_option(context, "ssh2", "pubkey_file")) != NULL && | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php_streams.h:103, from /usr/include/php/main/php.h:398, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/main/streams/php_stream_context.h:62:12: note: declared here 62 | PHPAPI int php_stream_context_get_option(php_stream_context *context, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:396:14: error: too few arguments to function 'php_stream_context_get_option' 396 | (tmpzval = php_stream_context_get_option(context, "ssh2", "privkey_file")) != NULL && | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php_streams.h:103, from /usr/include/php/main/php.h:398, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/main/streams/php_stream_context.h:62:12: note: declared here 62 | PHPAPI int php_stream_context_get_option(php_stream_context *context, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c: In function 'php_ssh2_shell_open': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:514:3: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 514 | zend_string *key; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:519:74: error: macro "zend_hash_get_current_key" requires 4 arguments, but only 3 given 519 | (key_type = zend_hash_get_current_key(HASH_OF(environment), &key, &idx)) != HASH_KEY_NON_EXISTENT; | ^ In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_hash.h:201: note: macro "zend_hash_get_current_key" defined here 201 | #define zend_hash_get_current_key(ht, str_index, num_index, duplicate) \ | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:519:16: error: 'zend_hash_get_current_key' undeclared (first use in this function); did you mean 'zend_hash_get_current_key_ex'? 519 | (key_type = zend_hash_get_current_key(HASH_OF(environment), &key, &idx)) != HASH_KEY_NON_EXISTENT; | ^~~~~~~~~~~~~~~~~~~~~~~~~ | zend_hash_get_current_key_ex /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:519:16: note: each undeclared identifier is reported only once for each function it appears in /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:524:65: error: macro "zend_hash_get_current_data" requires 2 arguments, but only 1 given 524 | if ((value = zend_hash_get_current_data(HASH_OF(environment))) != NULL) { | ^ In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_hash.h:207: note: macro "zend_hash_get_current_data" defined here 207 | #define zend_hash_get_current_data(ht, pData) \ | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:524:18: error: 'zend_hash_get_current_data' undeclared (first use in this function); did you mean 'zend_hash_get_current_data_ex'? 524 | if ((value = zend_hash_get_current_data(HASH_OF(environment))) != NULL) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | zend_hash_get_current_data_ex /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:529:48: error: request for member 'val' in something not a structure or union 529 | if (libssh2_channel_setenv_ex(channel, key->val, key->len, Z_STRVAL(copyval), Z_STRLEN(copyval))) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:529:58: error: request for member 'len' in something not a structure or union 529 | if (libssh2_channel_setenv_ex(channel, key->val, key->len, Z_STRVAL(copyval), Z_STRLEN(copyval))) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:530:58: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int *' [-Wformat=] 530 | php_error_docref(NULL, E_WARNING, "Failed setting %s=%s on remote end", key, Z_STRVAL(copyval)); | ~^ ~~~ | | | | char * int * | %n /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c: At top level: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:578:127: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 578 | static php_stream *php_ssh2_fopen_wrapper_shell(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:677:2: error: 'php_ssh2_fopen_wrapper_shell' undeclared here (not in a function); did you mean 'php_ssh2_stream_wrapper_shell'? 677 | php_ssh2_fopen_wrapper_shell, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | php_ssh2_stream_wrapper_shell /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c: In function 'zif_ssh2_shell': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:702:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'? 702 | zend_long width = PHP_SSH2_DEFAULT_TERM_WIDTH; | ^~~~~~~~~ | zend_ulong /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:703:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'? 703 | zend_long height = PHP_SSH2_DEFAULT_TERM_HEIGHT; | ^~~~~~~~~ | zend_ulong /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:704:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'? 704 | zend_long type = PHP_SSH2_DEFAULT_TERM_UNIT; | ^~~~~~~~~ | zend_ulong In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:55: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:716:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 716 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:74: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:716:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 716 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:101: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:716:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 716 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:35: error: too few arguments to function 'zend_fetch_resource' 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:716:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 716 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:718:57: error: invalid type argument of '->' (have 'int') 718 | stream = php_ssh2_shell_open(session, Z_RES_P(zsession)->handle, term, term_len, environment, width, height, type); | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c: In function 'php_ssh2_exec_command': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:752:3: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 752 | zend_string *key = NULL; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:758:67: warning: passing argument 2 of 'zend_hash_get_current_key_ex' from incompatible pointer type [-Wincompatible-pointer-types] 758 | (key_type = zend_hash_get_current_key_ex(HASH_OF(environment), &key, &idx, &pos)) != HASH_KEY_NON_EXISTENT; | ^~~~ | | | int ** In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_hash.h:179:71: note: expected 'char **' but argument is of type 'int **' 179 | ZEND_API int zend_hash_get_current_key_ex(const HashTable *ht, char **str_index, uint *str_length, ulong *num_index, zend_bool duplicate, HashPosition *pos); | ~~~~~~~^~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:758:73: warning: passing argument 3 of 'zend_hash_get_current_key_ex' from incompatible pointer type [-Wincompatible-pointer-types] 758 | (key_type = zend_hash_get_current_key_ex(HASH_OF(environment), &key, &idx, &pos)) != HASH_KEY_NON_EXISTENT; | ^~~~ | | | zend_ulong * {aka long unsigned int *} In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_hash.h:179:88: note: expected 'uint *' {aka 'unsigned int *'} but argument is of type 'zend_ulong *' {aka 'long unsigned int *'} 179 | ZEND_API int zend_hash_get_current_key_ex(const HashTable *ht, char **str_index, uint *str_length, ulong *num_index, zend_bool duplicate, HashPosition *pos); | ~~~~~~^~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:758:79: warning: passing argument 4 of 'zend_hash_get_current_key_ex' from incompatible pointer type [-Wincompatible-pointer-types] 758 | (key_type = zend_hash_get_current_key_ex(HASH_OF(environment), &key, &idx, &pos)) != HASH_KEY_NON_EXISTENT; | ^~~~ | | | Bucket ** {aka struct bucket **} In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_hash.h:179:107: note: expected 'ulong *' {aka 'long unsigned int *'} but argument is of type 'Bucket **' {aka 'struct bucket **'} 179 | ZEND_API int zend_hash_get_current_key_ex(const HashTable *ht, char **str_index, uint *str_length, ulong *num_index, zend_bool duplicate, HashPosition *pos); | ~~~~~~~^~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:758:16: error: too few arguments to function 'zend_hash_get_current_key_ex' 758 | (key_type = zend_hash_get_current_key_ex(HASH_OF(environment), &key, &idx, &pos)) != HASH_KEY_NON_EXISTENT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_hash.h:179:14: note: declared here 179 | ZEND_API int zend_hash_get_current_key_ex(const HashTable *ht, char **str_index, uint *str_length, ulong *num_index, zend_bool duplicate, HashPosition *pos); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:763:65: error: macro "zend_hash_get_current_data" requires 2 arguments, but only 1 given 763 | if ((value = zend_hash_get_current_data(HASH_OF(environment))) != NULL) { | ^ In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_hash.h:207: note: macro "zend_hash_get_current_data" defined here 207 | #define zend_hash_get_current_data(ht, pData) \ | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:763:18: error: 'zend_hash_get_current_data' undeclared (first use in this function); did you mean 'zend_hash_get_current_data_ex'? 763 | if ((value = zend_hash_get_current_data(HASH_OF(environment))) != NULL) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | zend_hash_get_current_data_ex /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:768:48: error: request for member 'val' in something not a structure or union 768 | if (libssh2_channel_setenv_ex(channel, key->val, key->len, Z_STRVAL(copyval), Z_STRLEN(copyval))) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:768:58: error: request for member 'len' in something not a structure or union 768 | if (libssh2_channel_setenv_ex(channel, key->val, key->len, Z_STRVAL(copyval), Z_STRLEN(copyval))) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:769:58: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int *' [-Wformat=] 769 | php_error_docref(NULL, E_WARNING, "Failed setting %s=%s on remote end", key, Z_STRVAL(copyval)); | ~^ ~~~ | | | | char * int * | %n /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c: At top level: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:819:126: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 819 | static php_stream *php_ssh2_fopen_wrapper_exec(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:893:2: error: 'php_ssh2_fopen_wrapper_exec' undeclared here (not in a function); did you mean 'php_ssh2_stream_wrapper_exec'? 893 | php_ssh2_fopen_wrapper_exec, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | php_ssh2_stream_wrapper_exec /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c: In function 'zif_ssh2_exec': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:921:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'? 921 | zend_long width = PHP_SSH2_DEFAULT_TERM_WIDTH; | ^~~~~~~~~ | zend_ulong /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:922:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'? 922 | zend_long height = PHP_SSH2_DEFAULT_TERM_HEIGHT; | ^~~~~~~~~ | zend_ulong /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:923:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'? 923 | zend_long type = PHP_SSH2_DEFAULT_TERM_UNIT; | ^~~~~~~~~ | zend_ulong In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:55: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:949:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 949 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:74: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:949:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 949 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:101: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:949:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 949 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:35: error: too few arguments to function 'zend_fetch_resource' 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:949:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 949 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:951:59: error: invalid type argument of '->' (have 'int') 951 | stream = php_ssh2_exec_command(session, Z_RES_P(zsession)->handle, command, term, term_len, environment, width, height, type); | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c: At top level: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1002:125: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 1002 | static php_stream *php_ssh2_fopen_wrapper_scp(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1036:2: error: 'php_ssh2_fopen_wrapper_scp' undeclared here (not in a function); did you mean 'php_ssh2_stream_wrapper_scp'? 1036 | php_ssh2_fopen_wrapper_scp, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | php_ssh2_stream_wrapper_scp In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c: In function 'zif_ssh2_scp_recv': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:55: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1068:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 1068 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:74: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1068:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 1068 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:101: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1068:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 1068 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:35: error: too few arguments to function 'zend_fetch_resource' 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1068:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 1068 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c: In function 'zif_ssh2_scp_send': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1117:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'? 1117 | zend_long create_mode = 0644; | ^~~~~~~~~ | zend_ulong In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:55: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1126:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 1126 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:74: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1126:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 1126 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:101: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1126:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 1126 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:35: error: too few arguments to function 'zend_fetch_resource' 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1126:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 1126 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c: At top level: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1251:128: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 1251 | static php_stream *php_ssh2_fopen_wrapper_tunnel(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1308:2: error: 'php_ssh2_fopen_wrapper_tunnel' undeclared here (not in a function); did you mean 'php_ssh2_stream_wrapper_tunnel'? 1308 | php_ssh2_fopen_wrapper_tunnel, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | php_ssh2_stream_wrapper_tunnel /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c: In function 'zif_ssh2_tunnel': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1332:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'? 1332 | zend_long port; | ^~~~~~~~~ | zend_ulong In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:55: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1338:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 1338 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:74: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1338:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 1338 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:101: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1338:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 1338 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:26: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:35: error: too few arguments to function 'zend_fetch_resource' 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1338:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 1338 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1340:59: error: invalid type argument of '->' (have 'int') 1340 | stream = php_ssh2_direct_tcpip(session, Z_RES_P(zsession)->handle, host, port); | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c: In function 'zif_ssh2_fetch_stream': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1364:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'? 1364 | zend_long streamid; | ^~~~~~~~~ | zend_ulong In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:25: /usr/include/php/main/php_streams.h:258:87: warning: passing argument 1 of 'zend_fetch_resource' from incompatible pointer type [-Wincompatible-pointer-types] 258 | #define php_stream_from_zval(xstr, ppzval) ZEND_FETCH_RESOURCE2((xstr), php_stream *, (ppzval), -1, "stream", php_file_le_stream(), php_file_le_pstream()) | ^~~~~~~~ | | | zval * {aka struct _zval_struct *} /usr/include/php/Zend/zend_list.h:103:41: note: in definition of macro 'ZEND_FETCH_RESOURCE2' 103 | rsrc = (rsrc_type) zend_fetch_resource(passed_id TSRMLS_CC, default_id, resource_type_name, NULL, 2, resource_type1, resource_type2); \ | ^~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2_fopen_wrappers.c:1375:2: note: in expansion of macro 'php_stream_from_zval' 1375 | php_stream_from_zval(parent, zparent); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'zval *' {aka 'struct _zval_struct *'} 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ make: *** [Makefile:203: ssh2_fopen_wrappers.lo] Error 1 /bin/sh /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/libtool --mode=compile x86_64-pld-linux-gnux32-gcc -I. -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2 -DPHP_ATOM_INC -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/include -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/main -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2 -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 -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -c /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c -o ssh2.lo libtool: compile: x86_64-pld-linux-gnux32-gcc -I. -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2 -DPHP_ATOM_INC -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/include -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/main -I/tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2 -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 -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -c /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c -fPIC -DPIC -o .libs/ssh2.o In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:152:25: error: unknown type name 'zend_resource'; did you mean 'term_source'? 152 | void php_ssh2_sftp_dtor(zend_resource *rsrc); | ^~~~~~~~~~~~~ | term_source /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'php_ssh2_debug_cb': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:101:45: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given 101 | ZVAL_STRINGL(&args[0], message, message_len); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:589: note: macro "ZVAL_STRINGL" defined here 589 | #define ZVAL_STRINGL(z, s, l, duplicate) do { \ | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:101:2: error: 'ZVAL_STRINGL' undeclared (first use in this function) 101 | ZVAL_STRINGL(&args[0], message, message_len); | ^~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:101:2: note: each undeclared identifier is reported only once for each function it appears in /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:102:47: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given 102 | ZVAL_STRINGL(&args[1], language, language_len); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:589: note: macro "ZVAL_STRINGL" defined here 589 | #define ZVAL_STRINGL(z, s, l, duplicate) do { \ | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:105:81: warning: passing argument 6 of 'call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types] 105 | if (FAILURE == call_user_function_ex(NULL, NULL, data->disconnect_cb, NULL, 3, args, 0, NULL)) { | ^~~~ | | | zval * {aka struct _zval_struct *} In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:455:155: note: expected 'zval ***' {aka 'struct _zval_struct ***'} but argument is of type 'zval *' {aka 'struct _zval_struct *'} 455 | ZEND_API int call_user_function_ex(HashTable *function_table, zval **object_pp, zval *function_name, zval **retval_ptr_ptr, zend_uint param_count, zval **params[], int no_separation, HashTable *symbol_table TSRMLS_DC); | ~~~~~~~^~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'php_ssh2_ignore_cb': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:128:45: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given 128 | ZVAL_STRINGL(&args[0], message, message_len); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:589: note: macro "ZVAL_STRINGL" defined here 589 | #define ZVAL_STRINGL(z, s, l, duplicate) do { \ | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:128:2: error: 'ZVAL_STRINGL' undeclared (first use in this function) 128 | ZVAL_STRINGL(&args[0], message, message_len); | ^~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:130:68: warning: passing argument 4 of 'call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types] 130 | if (FAILURE == call_user_function_ex(NULL, NULL, data->ignore_cb, &zretval, 1, args, 0, NULL)) { | ^~~~~~~~ | | | zval * {aka struct _zval_struct *} In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:455:109: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'zval *' {aka 'struct _zval_struct *'} 455 | ZEND_API int call_user_function_ex(HashTable *function_table, zval **object_pp, zval *function_name, zval **retval_ptr_ptr, zend_uint param_count, zval **params[], int no_separation, HashTable *symbol_table TSRMLS_DC); | ~~~~~~~^~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:130:81: warning: passing argument 6 of 'call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types] 130 | if (FAILURE == call_user_function_ex(NULL, NULL, data->ignore_cb, &zretval, 1, args, 0, NULL)) { | ^~~~ | | | zval * {aka struct _zval_struct *} In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:455:155: note: expected 'zval ***' {aka 'struct _zval_struct ***'} but argument is of type 'zval *' {aka 'struct _zval_struct *'} 455 | ZEND_API int call_user_function_ex(HashTable *function_table, zval **object_pp, zval *function_name, zval **retval_ptr_ptr, zend_uint param_count, zval **params[], int no_separation, HashTable *symbol_table TSRMLS_DC); | ~~~~~~~^~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:133:28: error: 'IS_UNDEF' undeclared (first use in this function); did you mean 'IS_UNUSED'? 133 | if (Z_TYPE_P(&zretval) != IS_UNDEF) { | ^~~~~~~~ | IS_UNUSED In file included from /usr/include/php/Zend/zend.h:850, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:134:17: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types] 134 | zval_ptr_dtor(&zretval); /usr/include/php/Zend/zend_variables.h:57:49: note: in definition of macro 'zval_ptr_dtor' 57 | #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC) | ^~~~~~~~ /usr/include/php/Zend/zend_variables.h:51:37: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'zval *' {aka 'struct _zval_struct *'} 51 | ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC); | ~~~~~~~^~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'php_ssh2_macerror_cb': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:158:43: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given 158 | ZVAL_STRINGL(&args[0], packet, packet_len); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:589: note: macro "ZVAL_STRINGL" defined here 589 | #define ZVAL_STRINGL(z, s, l, duplicate) do { \ | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:158:2: error: 'ZVAL_STRINGL' undeclared (first use in this function) 158 | ZVAL_STRINGL(&args[0], packet, packet_len); | ^~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:160:70: warning: passing argument 4 of 'call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types] 160 | if (FAILURE == call_user_function_ex(NULL, NULL, data->macerror_cb, &zretval, 1, args, 0, NULL)) { | ^~~~~~~~ | | | zval * {aka struct _zval_struct *} In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:455:109: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'zval *' {aka 'struct _zval_struct *'} 455 | ZEND_API int call_user_function_ex(HashTable *function_table, zval **object_pp, zval *function_name, zval **retval_ptr_ptr, zend_uint param_count, zval **params[], int no_separation, HashTable *symbol_table TSRMLS_DC); | ~~~~~~~^~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:160:83: warning: passing argument 6 of 'call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types] 160 | if (FAILURE == call_user_function_ex(NULL, NULL, data->macerror_cb, &zretval, 1, args, 0, NULL)) { | ^~~~ | | | zval * {aka struct _zval_struct *} In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:455:155: note: expected 'zval ***' {aka 'struct _zval_struct ***'} but argument is of type 'zval *' {aka 'struct _zval_struct *'} 455 | ZEND_API int call_user_function_ex(HashTable *function_table, zval **object_pp, zval *function_name, zval **retval_ptr_ptr, zend_uint param_count, zval **params[], int no_separation, HashTable *symbol_table TSRMLS_DC); | ~~~~~~~^~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:165:28: error: 'IS_UNDEF' undeclared (first use in this function); did you mean 'IS_UNUSED'? 165 | if (Z_TYPE_P(&zretval) != IS_UNDEF) { | ^~~~~~~~ | IS_UNUSED In file included from /usr/include/php/Zend/zend.h:850, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:166:17: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types] 166 | zval_ptr_dtor(&zretval); /usr/include/php/Zend/zend_variables.h:57:49: note: in definition of macro 'zval_ptr_dtor' 57 | #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC) | ^~~~~~~~ /usr/include/php/Zend/zend_variables.h:51:37: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'zval *' {aka 'struct _zval_struct *'} 51 | ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC); | ~~~~~~~^~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'php_ssh2_disconnect_cb': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:190:45: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given 190 | ZVAL_STRINGL(&args[1], message, message_len); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:589: note: macro "ZVAL_STRINGL" defined here 589 | #define ZVAL_STRINGL(z, s, l, duplicate) do { \ | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:190:2: error: 'ZVAL_STRINGL' undeclared (first use in this function) 190 | ZVAL_STRINGL(&args[1], message, message_len); | ^~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:191:47: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given 191 | ZVAL_STRINGL(&args[2], language, language_len); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:589: note: macro "ZVAL_STRINGL" defined here 589 | #define ZVAL_STRINGL(z, s, l, duplicate) do { \ | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:193:81: warning: passing argument 6 of 'call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types] 193 | if (FAILURE == call_user_function_ex(NULL, NULL, data->disconnect_cb, NULL, 3, args, 0, NULL)) { | ^~~~ | | | zval * {aka struct _zval_struct *} In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:455:155: note: expected 'zval ***' {aka 'struct _zval_struct ***'} but argument is of type 'zval *' {aka 'struct _zval_struct *'} 455 | ZEND_API int call_user_function_ex(HashTable *function_table, zval **object_pp, zval *function_name, zval **retval_ptr_ptr, zend_uint param_count, zval **params[], int no_separation, HashTable *symbol_table TSRMLS_DC); | ~~~~~~~^~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'php_ssh2_set_callback': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:212:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 212 | zend_string *callback_zstring; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:214:21: warning: implicit declaration of function 'zend_string_init'; did you mean 'zend_stack_init'? [-Wimplicit-function-declaration] 214 | callback_zstring = zend_string_init(callback, callback_len, 0); | ^~~~~~~~~~~~~~~~ | zend_stack_init /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:214:19: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 214 | callback_zstring = zend_string_init(callback, callback_len, 0); | ^ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:215:36: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] 215 | if ((handler = zend_hash_find(ht, callback_zstring)) == NULL) { | ^~~~~~~~~~~~~~~~ | | | int * In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:164:62: note: expected 'const char *' but argument is of type 'int *' 164 | ZEND_API int zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData); | ~~~~~~~~~~~~^~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:215:17: error: too few arguments to function 'zend_hash_find' 215 | if ((handler = zend_hash_find(ht, callback_zstring)) == NULL) { | ^~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:164:14: note: declared here 164 | ZEND_API int zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData); | ^~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:216:4: warning: implicit declaration of function 'zend_string_release' [-Wimplicit-function-declaration] 216 | zend_string_release(callback_zstring); | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:850, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:232:23: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types] 232 | zval_ptr_dtor(data->ignore_cb); /usr/include/php/Zend/zend_variables.h:57:49: note: in definition of macro 'zval_ptr_dtor' 57 | #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC) | ^~~~~~~~ /usr/include/php/Zend/zend_variables.h:51:37: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'zval *' {aka 'struct _zval_struct *'} 51 | ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC); | ~~~~~~~^~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:239:23: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types] 239 | zval_ptr_dtor(data->debug_cb); /usr/include/php/Zend/zend_variables.h:57:49: note: in definition of macro 'zval_ptr_dtor' 57 | #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC) | ^~~~~~~~ /usr/include/php/Zend/zend_variables.h:51:37: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'zval *' {aka 'struct _zval_struct *'} 51 | ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC); | ~~~~~~~^~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:246:23: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types] 246 | zval_ptr_dtor(data->macerror_cb); /usr/include/php/Zend/zend_variables.h:57:49: note: in definition of macro 'zval_ptr_dtor' 57 | #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC) | ^~~~~~~~ /usr/include/php/Zend/zend_variables.h:51:37: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'zval *' {aka 'struct _zval_struct *'} 51 | ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC); | ~~~~~~~^~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:253:23: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types] 253 | zval_ptr_dtor(data->disconnect_cb); /usr/include/php/Zend/zend_variables.h:57:49: note: in definition of macro 'zval_ptr_dtor' 57 | #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC) | ^~~~~~~~ /usr/include/php/Zend/zend_variables.h:51:37: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'zval *' {aka 'struct _zval_struct *'} 51 | ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC); | ~~~~~~~^~~~~~~~ /usr/include/php/Zend/zend_variables.h:57:48: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types] 57 | #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC) | ^~~~~~~~~~ | | | zval * {aka struct _zval_struct *} /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:258:4: note: in expansion of macro 'zval_ptr_dtor' 258 | zval_ptr_dtor(copyval); | ^~~~~~~~~~~~~ /usr/include/php/Zend/zend_variables.h:51:37: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'zval *' {aka 'struct _zval_struct *'} 51 | ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC); | ~~~~~~~^~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'php_ssh2_set_method': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:274:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 274 | zend_string *method_zstring; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:277:17: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 277 | method_zstring = zend_string_init(method, method_len, 0); | ^ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:278:34: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] 278 | if ((value = zend_hash_find(ht, method_zstring)) == NULL) { | ^~~~~~~~~~~~~~ | | | int * In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:164:62: note: expected 'const char *' but argument is of type 'int *' 164 | ZEND_API int zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData); | ~~~~~~~~~~~~^~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:278:15: error: too few arguments to function 'zend_hash_find' 278 | if ((value = zend_hash_find(ht, method_zstring)) == NULL) { | ^~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:164:14: note: declared here 164 | ZEND_API int zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData); | ^~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'php_ssh2_session_connect': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:301:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 301 | zend_string *hash_lookup_zstring; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:306:100: error: 'STREAM_SOCKOP_NONE' undeclared (first use in this function) 306 | socket = php_network_connect_socket_to_host(host, port, SOCK_STREAM, 0, &tv, NULL, NULL, NULL, 0, STREAM_SOCKOP_NONE); | ^~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:306:11: error: too many arguments to function 'php_network_connect_socket_to_host' 306 | socket = php_network_connect_socket_to_host(host, port, SOCK_STREAM, 0, &tv, NULL, NULL, NULL, 0, STREAM_SOCKOP_NONE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:29: /usr/include/php/main/php_network.h:230:21: note: declared here 230 | PHPAPI php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short port, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:336:23: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 336 | hash_lookup_zstring = zend_string_init("client_to_server", sizeof("client_to_server") - 1, 0); | ^ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:337:53: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] 337 | if ((container = zend_hash_find(HASH_OF(methods), hash_lookup_zstring)) != NULL && Z_TYPE_P(container) == IS_ARRAY) { | ^~~~~~~~~~~~~~~~~~~ | | | int * In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:164:62: note: expected 'const char *' but argument is of type 'int *' 164 | ZEND_API int zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData); | ~~~~~~~~~~~~^~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:337:20: error: too few arguments to function 'zend_hash_find' 337 | if ((container = zend_hash_find(HASH_OF(methods), hash_lookup_zstring)) != NULL && Z_TYPE_P(container) == IS_ARRAY) { | ^~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:164:14: note: declared here 164 | ZEND_API int zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData); | ^~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:353:23: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 353 | hash_lookup_zstring = zend_string_init("server_to_client", sizeof("server_to_client") - 1, 0); | ^ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:354:53: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] 354 | if ((container = zend_hash_find(HASH_OF(methods), hash_lookup_zstring)) != NULL && Z_TYPE_P(container) == IS_ARRAY) { | ^~~~~~~~~~~~~~~~~~~ | | | int * In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:164:62: note: expected 'const char *' but argument is of type 'int *' 164 | ZEND_API int zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData); | ~~~~~~~~~~~~^~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:354:20: error: too few arguments to function 'zend_hash_find' 354 | if ((container = zend_hash_find(HASH_OF(methods), hash_lookup_zstring)) != NULL && Z_TYPE_P(container) == IS_ARRAY) { | ^~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:164:14: note: declared here 164 | ZEND_API int zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData); | ^~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'zif_ssh2_connect': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:417:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'? 417 | zend_long port = PHP_SSH2_DEFAULT_PORT; | ^~~~~~~~~ | zend_ulong /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:430:2: warning: implicit declaration of function 'RETURN_RES'; did you mean 'RETURN_TRUE'? [-Wimplicit-function-declaration] 430 | RETURN_RES(zend_register_resource(session, le_ssh2_session)); | ^~~~~~~~~~ | RETURN_TRUE /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:430:36: warning: passing argument 1 of 'zend_register_resource' from incompatible pointer type [-Wincompatible-pointer-types] 430 | RETURN_RES(zend_register_resource(session, le_ssh2_session)); | ^~~~~~~ | | | LIBSSH2_SESSION * {aka struct _LIBSSH2_SESSION *} In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:82:43: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'LIBSSH2_SESSION *' {aka 'struct _LIBSSH2_SESSION *'} 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ~~~~~~^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:430:45: warning: passing argument 2 of 'zend_register_resource' makes pointer from integer without a cast [-Wint-conversion] 430 | RETURN_RES(zend_register_resource(session, le_ssh2_session)); | ^~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:82:62: note: expected 'void *' but argument is of type 'int' 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ~~~~~~^~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:430:13: error: too few arguments to function 'zend_register_resource' 430 | RETURN_RES(zend_register_resource(session, le_ssh2_session)); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:82:14: note: declared here 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ^~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'zif_ssh2_disconnect': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:445:6: warning: implicit declaration of function 'zend_list_close'; did you mean 'zend_llist_copy'? [-Wimplicit-function-declaration] 445 | if (zend_list_close(Z_RES_P(zsession)) != SUCCESS) { | ^~~~~~~~~~~~~~~ | zend_llist_copy /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:445:22: warning: implicit declaration of function 'Z_RES_P' [-Wimplicit-function-declaration] 445 | if (zend_list_close(Z_RES_P(zsession)) != SUCCESS) { | ^~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'zif_ssh2_methods_negotiated': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:466:56: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 466 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { | ^~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:466:75: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 466 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:466:102: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 466 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { | ^~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:466:36: error: too few arguments to function 'zend_fetch_resource' 466 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:482:43: error: macro "add_assoc_string" requires 4 arguments, but only 3 given 482 | add_assoc_string(return_value, "kex", kex); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:394: note: macro "add_assoc_string" defined here 394 | #define add_assoc_string(__arg, __key, __str, __duplicate) add_assoc_string_ex(__arg, __key, strlen(__key)+1, __str, __duplicate) | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:482:2: error: 'add_assoc_string' undeclared (first use in this function); did you mean 'add_assoc_string_ex'? 482 | add_assoc_string(return_value, "kex", kex); | ^~~~~~~~~~~~~~~~ | add_assoc_string_ex /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:483:51: error: macro "add_assoc_string" requires 4 arguments, but only 3 given 483 | add_assoc_string(return_value, "hostkey", hostkey); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:394: note: macro "add_assoc_string" defined here 394 | #define add_assoc_string(__arg, __key, __str, __duplicate) add_assoc_string_ex(__arg, __key, strlen(__key)+1, __str, __duplicate) | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:486:47: error: macro "add_assoc_string" requires 4 arguments, but only 3 given 486 | add_assoc_string(&endpoint, "crypt", crypt_cs); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:394: note: macro "add_assoc_string" defined here 394 | #define add_assoc_string(__arg, __key, __str, __duplicate) add_assoc_string_ex(__arg, __key, strlen(__key)+1, __str, __duplicate) | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:487:43: error: macro "add_assoc_string" requires 4 arguments, but only 3 given 487 | add_assoc_string(&endpoint, "mac", mac_cs); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:394: note: macro "add_assoc_string" defined here 394 | #define add_assoc_string(__arg, __key, __str, __duplicate) add_assoc_string_ex(__arg, __key, strlen(__key)+1, __str, __duplicate) | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:488:45: error: macro "add_assoc_string" requires 4 arguments, but only 3 given 488 | add_assoc_string(&endpoint, "comp", comp_cs); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:394: note: macro "add_assoc_string" defined here 394 | #define add_assoc_string(__arg, __key, __str, __duplicate) add_assoc_string_ex(__arg, __key, strlen(__key)+1, __str, __duplicate) | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:489:45: error: macro "add_assoc_string" requires 4 arguments, but only 3 given 489 | add_assoc_string(&endpoint, "lang", lang_cs); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:394: note: macro "add_assoc_string" defined here 394 | #define add_assoc_string(__arg, __key, __str, __duplicate) add_assoc_string_ex(__arg, __key, strlen(__key)+1, __str, __duplicate) | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:493:47: error: macro "add_assoc_string" requires 4 arguments, but only 3 given 493 | add_assoc_string(&endpoint, "crypt", crypt_sc); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:394: note: macro "add_assoc_string" defined here 394 | #define add_assoc_string(__arg, __key, __str, __duplicate) add_assoc_string_ex(__arg, __key, strlen(__key)+1, __str, __duplicate) | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:494:43: error: macro "add_assoc_string" requires 4 arguments, but only 3 given 494 | add_assoc_string(&endpoint, "mac", mac_sc); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:394: note: macro "add_assoc_string" defined here 394 | #define add_assoc_string(__arg, __key, __str, __duplicate) add_assoc_string_ex(__arg, __key, strlen(__key)+1, __str, __duplicate) | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:495:45: error: macro "add_assoc_string" requires 4 arguments, but only 3 given 495 | add_assoc_string(&endpoint, "comp", comp_sc); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:394: note: macro "add_assoc_string" defined here 394 | #define add_assoc_string(__arg, __key, __str, __duplicate) add_assoc_string_ex(__arg, __key, strlen(__key)+1, __str, __duplicate) | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:496:45: error: macro "add_assoc_string" requires 4 arguments, but only 3 given 496 | add_assoc_string(&endpoint, "lang", lang_sc); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:394: note: macro "add_assoc_string" defined here 394 | #define add_assoc_string(__arg, __key, __str, __duplicate) add_assoc_string_ex(__arg, __key, strlen(__key)+1, __str, __duplicate) | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'zif_ssh2_fingerprint': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:510:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'? 510 | zend_long flags = 0; | ^~~~~~~~~ | zend_ulong /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:518:56: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 518 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { | ^~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:518:75: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 518 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:518:102: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 518 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { | ^~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:518:36: error: too few arguments to function 'zend_fetch_resource' 518 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:537:46: error: macro "RETURN_STRINGL" requires 3 arguments, but only 2 given 537 | RETURN_STRINGL(fingerprint, fingerprint_len); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:640: note: macro "RETURN_STRINGL" defined here 640 | #define RETURN_STRINGL(s, l, duplicate) { RETVAL_STRINGL(s, l, duplicate); return; } | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:537:3: error: 'RETURN_STRINGL' undeclared (first use in this function) 537 | RETURN_STRINGL(fingerprint, fingerprint_len); | ^~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:545:59: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given 545 | ZVAL_STRINGL(return_value, hexchars, 2 * fingerprint_len); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:589: note: macro "ZVAL_STRINGL" defined here 589 | #define ZVAL_STRINGL(z, s, l, duplicate) do { \ | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:545:3: error: 'ZVAL_STRINGL' undeclared (first use in this function) 545 | ZVAL_STRINGL(return_value, hexchars, 2 * fingerprint_len); | ^~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'zif_ssh2_auth_none': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:566:56: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 566 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { | ^~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:566:75: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 566 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:566:102: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 566 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { | ^~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:566:36: error: too few arguments to function 'zend_fetch_resource' 566 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:579:4: error: too few arguments to function 'add_next_index_stringl' 579 | add_next_index_stringl(return_value, s, p - s); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:419:14: note: declared here 419 | ZEND_API int add_next_index_stringl(zval *arg, const char *str, uint length, int duplicate); | ^~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:584:3: error: too few arguments to function 'add_next_index_string' 584 | add_next_index_string(return_value, s); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:418:14: note: declared here 418 | ZEND_API int add_next_index_string(zval *arg, const char *str, int duplicate); | ^~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'zif_ssh2_auth_password': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:617:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 617 | zend_string *username, *password; | ^~~~~~~~~~~ | zend_stream In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:55: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 96 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:624:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION' 624 | SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:74: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 96 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:624:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION' 624 | SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:101: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 96 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:624:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION' 624 | SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:35: error: too few arguments to function 'zend_fetch_resource' 96 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:624:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION' 624 | SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:626:56: error: request for member 'val' in something not a structure or union 626 | userauthlist = libssh2_userauth_list(session, username->val, username->len); | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:626:71: error: request for member 'len' in something not a structure or union 626 | userauthlist = libssh2_userauth_list(session, username->val, username->len); | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:629:39: error: request for member 'val' in something not a structure or union 629 | password_for_kbd_callback = password->val; | ^~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:24, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:631:63: error: request for member 'val' in something not a structure or union 631 | if (libssh2_userauth_keyboard_interactive(session, username->val, &kbd_callback) == 0) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:631:63: error: request for member 'val' in something not a structure or union 631 | if (libssh2_userauth_keyboard_interactive(session, username->val, &kbd_callback) == 0) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:637:53: error: request for member 'val' in something not a structure or union 637 | if (libssh2_userauth_password_ex(session, username->val, username->len, password->val, password->len, NULL)) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:637:68: error: request for member 'len' in something not a structure or union 637 | if (libssh2_userauth_password_ex(session, username->val, username->len, password->val, password->len, NULL)) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:637:83: error: request for member 'val' in something not a structure or union 637 | if (libssh2_userauth_password_ex(session, username->val, username->len, password->val, password->len, NULL)) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:637:98: error: request for member 'len' in something not a structure or union 637 | if (libssh2_userauth_password_ex(session, username->val, username->len, password->val, password->len, NULL)) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:638:93: error: request for member 'val' in something not a structure or union 638 | php_error_docref(NULL, E_WARNING, "Authentication failed for %s using password", username->val); | ^~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'zif_ssh2_auth_pubkey_file': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:55: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 96 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:672:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION' 672 | SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:74: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 96 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:672:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION' 672 | SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:101: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 96 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:672:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION' 672 | SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:35: error: too few arguments to function 'zend_fetch_resource' 96 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:672:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION' 672 | SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'zif_ssh2_auth_hostbased_file': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:55: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 96 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:729:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION' 729 | SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:74: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 96 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:729:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION' 729 | SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:101: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 96 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:729:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION' 729 | SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:35: error: too few arguments to function 'zend_fetch_resource' 96 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:729:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION' 729 | SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'zif_ssh2_forward_listen': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:755:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'? 755 | zend_long port; | ^~~~~~~~~ | zend_ulong /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:758:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'? 758 | zend_long max_connections = PHP_SSH2_LISTEN_MAX_QUEUED; | ^~~~~~~~~ | zend_ulong In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:55: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:764:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 764 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:74: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:764:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 764 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:101: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:764:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 764 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:35: error: too few arguments to function 'zend_fetch_resource' 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:764:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 764 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:780:36: warning: passing argument 1 of 'zend_register_resource' from incompatible pointer type [-Wincompatible-pointer-types] 780 | RETURN_RES(zend_register_resource(data, le_ssh2_listener)); | ^~~~ | | | php_ssh2_listener_data * {aka struct _php_ssh2_listener_data *} In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:82:43: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'php_ssh2_listener_data *' {aka 'struct _php_ssh2_listener_data *'} 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ~~~~~~^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:780:42: warning: passing argument 2 of 'zend_register_resource' makes pointer from integer without a cast [-Wint-conversion] 780 | RETURN_RES(zend_register_resource(data, le_ssh2_listener)); | ^~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:82:62: note: expected 'void *' but argument is of type 'int' 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ~~~~~~^~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:780:13: error: too few arguments to function 'zend_register_resource' 780 | RETURN_RES(zend_register_resource(data, le_ssh2_listener)); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:82:14: note: declared here 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ^~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'zif_ssh2_forward_accept': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:799:60: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 799 | if ((data = (php_ssh2_listener_data *)zend_fetch_resource(Z_RES_P(zlistener), PHP_SSH2_LISTENER_RES_NAME, le_ssh2_listener)) == NULL) { | ^~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:47:37: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 47 | #define PHP_SSH2_LISTENER_RES_NAME "SSH2 Listener" | ^~~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:799:80: note: in expansion of macro 'PHP_SSH2_LISTENER_RES_NAME' 799 | if ((data = (php_ssh2_listener_data *)zend_fetch_resource(Z_RES_P(zlistener), PHP_SSH2_LISTENER_RES_NAME, le_ssh2_listener)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:799:108: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 799 | if ((data = (php_ssh2_listener_data *)zend_fetch_resource(Z_RES_P(zlistener), PHP_SSH2_LISTENER_RES_NAME, le_ssh2_listener)) == NULL) { | ^~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:799:40: error: too few arguments to function 'zend_fetch_resource' 799 | if ((data = (php_ssh2_listener_data *)zend_fetch_resource(Z_RES_P(zlistener), PHP_SSH2_LISTENER_RES_NAME, le_ssh2_listener)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'zif_ssh2_poll': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:846:2: error: unknown type name 'zend_long'; did you mean 'zend_ulong'? 846 | zend_long timeout = PHP_SSH2_DEFAULT_POLL_TIMEOUT; | ^~~~~~~~~ | zend_ulong /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:851:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 851 | zend_string *hash_key_zstring; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:862:59: error: macro "zend_hash_get_current_data" requires 2 arguments, but only 1 given 862 | (subarray = zend_hash_get_current_data(Z_ARRVAL_P(zdesc))) != NULL; | ^ In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:207: note: macro "zend_hash_get_current_data" defined here 207 | #define zend_hash_get_current_data(ht, pData) \ | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:862:15: error: 'zend_hash_get_current_data' undeclared (first use in this function); did you mean 'zend_hash_get_current_data_ex'? 862 | (subarray = zend_hash_get_current_data(Z_ARRVAL_P(zdesc))) != NULL; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | zend_hash_get_current_data_ex /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:874:20: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 874 | hash_key_zstring = zend_string_init("events", sizeof("events") - 1, 0); | ^ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:875:55: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] 875 | if ((tmpzval = zend_hash_find(Z_ARRVAL_P(subarray), hash_key_zstring)) == NULL || Z_TYPE_P(tmpzval) != IS_LONG) { | ^~~~~~~~~~~~~~~~ | | | int * In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:164:62: note: expected 'const char *' but argument is of type 'int *' 164 | ZEND_API int zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData); | ~~~~~~~~~~~~^~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:875:18: error: too few arguments to function 'zend_hash_find' 875 | if ((tmpzval = zend_hash_find(Z_ARRVAL_P(subarray), hash_key_zstring)) == NULL || Z_TYPE_P(tmpzval) != IS_LONG) { | ^~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:164:14: note: declared here 164 | ZEND_API int zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData); | ^~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:884:20: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 884 | hash_key_zstring = zend_string_init("resource", sizeof("resource") - 1, 0); | ^ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:885:55: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] 885 | if ((tmpzval = zend_hash_find(Z_ARRVAL_P(subarray), hash_key_zstring)) == NULL || Z_TYPE_P(tmpzval) != IS_RESOURCE) { | ^~~~~~~~~~~~~~~~ | | | int * In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:164:62: note: expected 'const char *' but argument is of type 'int *' 164 | ZEND_API int zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData); | ~~~~~~~~~~~~^~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:885:18: error: too few arguments to function 'zend_hash_find' 885 | if ((tmpzval = zend_hash_find(Z_ARRVAL_P(subarray), hash_key_zstring)) == NULL || Z_TYPE_P(tmpzval) != IS_RESOURCE) { | ^~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:164:14: note: declared here 164 | ZEND_API int zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData); | ^~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:893:30: error: invalid type argument of '->' (have 'int') 893 | res_type = Z_RES_P(tmpzval)->type; | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:894:9: warning: implicit declaration of function 'zend_fetch_resource_ex'; did you mean 'zend_fetch_resource'? [-Wimplicit-function-declaration] 894 | res = zend_fetch_resource_ex(tmpzval, "Poll Resource", res_type); | ^~~~~~~~~~~~~~~~~~~~~~ | zend_fetch_resource /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:894:7: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 894 | res = zend_fetch_resource_ex(tmpzval, "Poll Resource", res_type); | ^ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:932:20: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 932 | hash_key_zstring = zend_string_init("revents", sizeof("revents") - 1, 0); | ^ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:933:55: error: macro "zend_hash_del" requires 3 arguments, but only 2 given 933 | zend_hash_del(Z_ARRVAL_P(subarray), hash_key_zstring); | ^ In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:154: note: macro "zend_hash_del" defined here 154 | #define zend_hash_del(ht, arKey, nKeyLength) \ | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:933:3: error: 'zend_hash_del' undeclared (first use in this function); did you mean 'zend_hash_key'? 933 | zend_hash_del(Z_ARRVAL_P(subarray), hash_key_zstring); | ^~~~~~~~~~~~~ | zend_hash_key In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'zif_ssh2_publickey_init': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:55: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:963:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 963 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:74: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:963:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 963 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:101: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:963:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 963 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:105:35: error: too few arguments to function 'zend_fetch_resource' 105 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:963:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION' 963 | SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:978:42: error: invalid type argument of '->' (have 'int') 978 | data->session_rsrcid = Z_RES_P(zsession)->handle; | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:983:36: warning: passing argument 1 of 'zend_register_resource' from incompatible pointer type [-Wincompatible-pointer-types] 983 | RETURN_RES(zend_register_resource(data, le_ssh2_pkey_subsys)); | ^~~~ | | | php_ssh2_pkey_subsys_data * {aka struct _php_ssh2_pkey_subsys_data *} In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:82:43: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'php_ssh2_pkey_subsys_data *' {aka 'struct _php_ssh2_pkey_subsys_data *'} 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ~~~~~~^~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:983:42: warning: passing argument 2 of 'zend_register_resource' makes pointer from integer without a cast [-Wint-conversion] 983 | RETURN_RES(zend_register_resource(data, le_ssh2_pkey_subsys)); | ^~~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:82:62: note: expected 'void *' but argument is of type 'int' 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ~~~~~~^~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:983:13: error: too few arguments to function 'zend_register_resource' 983 | RETURN_RES(zend_register_resource(data, le_ssh2_pkey_subsys)); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:82:14: note: declared here 82 | ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); | ^~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'zif_ssh2_publickey_add': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1003:63: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 1003 | if ((data = (php_ssh2_pkey_subsys_data *)zend_fetch_resource(Z_RES_P(zpkey_data), PHP_SSH2_PKEY_SUBSYS_RES_NAME, le_ssh2_pkey_subsys)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:49:39: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 49 | #define PHP_SSH2_PKEY_SUBSYS_RES_NAME "SSH2 Publickey Subsystem" | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1003:84: note: in expansion of macro 'PHP_SSH2_PKEY_SUBSYS_RES_NAME' 1003 | if ((data = (php_ssh2_pkey_subsys_data *)zend_fetch_resource(Z_RES_P(zpkey_data), PHP_SSH2_PKEY_SUBSYS_RES_NAME, le_ssh2_pkey_subsys)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1003:115: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 1003 | if ((data = (php_ssh2_pkey_subsys_data *)zend_fetch_resource(Z_RES_P(zpkey_data), PHP_SSH2_PKEY_SUBSYS_RES_NAME, le_ssh2_pkey_subsys)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1003:43: error: too few arguments to function 'zend_fetch_resource' 1003 | if ((data = (php_ssh2_pkey_subsys_data *)zend_fetch_resource(Z_RES_P(zpkey_data), PHP_SSH2_PKEY_SUBSYS_RES_NAME, le_ssh2_pkey_subsys)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1016:66: warning: passing argument 2 of 'zend_hash_get_current_data_ex' from incompatible pointer type [-Wincompatible-pointer-types] 1016 | (attr_val = zend_hash_get_current_data_ex(Z_ARRVAL_P(zattrs), &pos)) != NULL; | ^~~~ | | | Bucket ** {aka struct bucket **} In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:182:66: note: expected 'void **' but argument is of type 'Bucket **' {aka 'struct bucket **'} 182 | ZEND_API int zend_hash_get_current_data_ex(HashTable *ht, void **pData, HashPosition *pos); | ~~~~~~~^~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1016:16: error: too few arguments to function 'zend_hash_get_current_data_ex' 1016 | (attr_val = zend_hash_get_current_data_ex(Z_ARRVAL_P(zattrs), &pos)) != NULL; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:182:14: note: declared here 182 | ZEND_API int zend_hash_get_current_data_ex(HashTable *ht, void **pData, HashPosition *pos); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1018:4: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 1018 | zend_string *key; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1023:60: warning: passing argument 2 of 'zend_hash_get_current_key_ex' from incompatible pointer type [-Wincompatible-pointer-types] 1023 | type = zend_hash_get_current_key_ex(Z_ARRVAL_P(zattrs), &key, &idx, &pos); | ^~~~ | | | int ** In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:179:71: note: expected 'char **' but argument is of type 'int **' 179 | ZEND_API int zend_hash_get_current_key_ex(const HashTable *ht, char **str_index, uint *str_length, ulong *num_index, zend_bool duplicate, HashPosition *pos); | ~~~~~~~^~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1023:66: warning: passing argument 3 of 'zend_hash_get_current_key_ex' from incompatible pointer type [-Wincompatible-pointer-types] 1023 | type = zend_hash_get_current_key_ex(Z_ARRVAL_P(zattrs), &key, &idx, &pos); | ^~~~ | | | zend_ulong * {aka long unsigned int *} In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:179:88: note: expected 'uint *' {aka 'unsigned int *'} but argument is of type 'zend_ulong *' {aka 'long unsigned int *'} 179 | ZEND_API int zend_hash_get_current_key_ex(const HashTable *ht, char **str_index, uint *str_length, ulong *num_index, zend_bool duplicate, HashPosition *pos); | ~~~~~~^~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1023:72: warning: passing argument 4 of 'zend_hash_get_current_key_ex' from incompatible pointer type [-Wincompatible-pointer-types] 1023 | type = zend_hash_get_current_key_ex(Z_ARRVAL_P(zattrs), &key, &idx, &pos); | ^~~~ | | | Bucket ** {aka struct bucket **} In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:179:107: note: expected 'ulong *' {aka 'long unsigned int *'} but argument is of type 'Bucket **' {aka 'struct bucket **'} 179 | ZEND_API int zend_hash_get_current_key_ex(const HashTable *ht, char **str_index, uint *str_length, ulong *num_index, zend_bool duplicate, HashPosition *pos); | ~~~~~~~^~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1023:11: error: too few arguments to function 'zend_hash_get_current_key_ex' 1023 | type = zend_hash_get_current_key_ex(Z_ARRVAL_P(zattrs), &key, &idx, &pos); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:179:14: note: declared here 179 | ZEND_API int zend_hash_get_current_key_ex(const HashTable *ht, char **str_index, uint *str_length, ulong *num_index, zend_bool duplicate, HashPosition *pos); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1035:20: error: request for member 'len' in something not a structure or union 1035 | if (!key || (key->len == 1 && key->val[0] == '*')) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1035:37: error: request for member 'val' in something not a structure or union 1035 | if (!key || (key->len == 1 && key->val[0] == '*')) { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1048:11: error: request for member 'val' in something not a structure or union 1048 | if (key->val[0] == '*') { | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1050:35: error: request for member 'val' in something not a structure or union 1050 | attrs[current_attr].name = key->val + 1; | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1051:39: error: request for member 'len' in something not a structure or union 1051 | attrs[current_attr].name_len = key->len - 2; | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1054:35: error: request for member 'val' in something not a structure or union 1054 | attrs[current_attr].name = key->val; | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1055:39: error: request for member 'len' in something not a structure or union 1055 | attrs[current_attr].name_len = key->len - 1; | ^~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'zif_ssh2_publickey_remove': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1098:63: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 1098 | if ((data = (php_ssh2_pkey_subsys_data *)zend_fetch_resource(Z_RES_P(zpkey_data), PHP_SSH2_PKEY_SUBSYS_RES_NAME, le_ssh2_pkey_subsys)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:49:39: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 49 | #define PHP_SSH2_PKEY_SUBSYS_RES_NAME "SSH2 Publickey Subsystem" | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1098:84: note: in expansion of macro 'PHP_SSH2_PKEY_SUBSYS_RES_NAME' 1098 | if ((data = (php_ssh2_pkey_subsys_data *)zend_fetch_resource(Z_RES_P(zpkey_data), PHP_SSH2_PKEY_SUBSYS_RES_NAME, le_ssh2_pkey_subsys)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1098:115: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 1098 | if ((data = (php_ssh2_pkey_subsys_data *)zend_fetch_resource(Z_RES_P(zpkey_data), PHP_SSH2_PKEY_SUBSYS_RES_NAME, le_ssh2_pkey_subsys)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1098:43: error: too few arguments to function 'zend_fetch_resource' 1098 | if ((data = (php_ssh2_pkey_subsys_data *)zend_fetch_resource(Z_RES_P(zpkey_data), PHP_SSH2_PKEY_SUBSYS_RES_NAME, le_ssh2_pkey_subsys)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'zif_ssh2_publickey_list': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1119:2: error: unknown type name 'zend_string'; did you mean 'zend_stream'? 1119 | zend_string *hash_key_zstring; | ^~~~~~~~~~~ | zend_stream /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1125:63: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 1125 | if ((data = (php_ssh2_pkey_subsys_data *)zend_fetch_resource(Z_RES_P(zpkey_data), PHP_SSH2_PKEY_SUBSYS_RES_NAME, le_ssh2_pkey_subsys)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:49:39: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 49 | #define PHP_SSH2_PKEY_SUBSYS_RES_NAME "SSH2 Publickey Subsystem" | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1125:84: note: in expansion of macro 'PHP_SSH2_PKEY_SUBSYS_RES_NAME' 1125 | if ((data = (php_ssh2_pkey_subsys_data *)zend_fetch_resource(Z_RES_P(zpkey_data), PHP_SSH2_PKEY_SUBSYS_RES_NAME, le_ssh2_pkey_subsys)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1125:115: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 1125 | if ((data = (php_ssh2_pkey_subsys_data *)zend_fetch_resource(Z_RES_P(zpkey_data), PHP_SSH2_PKEY_SUBSYS_RES_NAME, le_ssh2_pkey_subsys)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1125:43: error: too few arguments to function 'zend_fetch_resource' 1125 | if ((data = (php_ssh2_pkey_subsys_data *)zend_fetch_resource(Z_RES_P(zpkey_data), PHP_SSH2_PKEY_SUBSYS_RES_NAME, le_ssh2_pkey_subsys)) == NULL) { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1141:74: error: macro "add_assoc_stringl" requires 5 arguments, but only 4 given 1141 | add_assoc_stringl(&key, "name", (char *) keys[i].name, keys[i].name_len); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:395: note: macro "add_assoc_stringl" defined here 395 | #define add_assoc_stringl(__arg, __key, __str, __length, __duplicate) add_assoc_stringl_ex(__arg, __key, strlen(__key)+1, __str, __length, __duplicate) | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1141:3: error: 'add_assoc_stringl' undeclared (first use in this function); did you mean 'add_assoc_stringl_ex'? 1141 | add_assoc_stringl(&key, "name", (char *) keys[i].name, keys[i].name_len); | ^~~~~~~~~~~~~~~~~ | add_assoc_stringl_ex /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1142:74: error: macro "add_assoc_stringl" requires 5 arguments, but only 4 given 1142 | add_assoc_stringl(&key, "blob", (char *) keys[i].blob, keys[i].blob_len); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:395: note: macro "add_assoc_stringl" defined here 395 | #define add_assoc_stringl(__arg, __key, __str, __length, __duplicate) add_assoc_stringl_ex(__arg, __key, strlen(__key)+1, __str, __length, __duplicate) | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1148:74: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given 1148 | ZVAL_STRINGL(&attr, keys[i].attrs[j].value, keys[i].attrs[j].value_len); | ^ In file included from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_API.h:589: note: macro "ZVAL_STRINGL" defined here 589 | #define ZVAL_STRINGL(z, s, l, duplicate) do { \ | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1148:4: error: 'ZVAL_STRINGL' undeclared (first use in this function) 1148 | ZVAL_STRINGL(&attr, keys[i].attrs[j].value, keys[i].attrs[j].value_len); | ^~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1149:21: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1149 | hash_key_zstring = zend_string_init(keys[i].attrs[j].name, keys[i].attrs[j].name_len, 0); | ^ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1150:61: error: macro "zend_hash_add" requires 6 arguments, but only 3 given 1150 | zend_hash_add(Z_ARRVAL_P(&attrs), hash_key_zstring, &attr); | ^ In file included from /usr/include/php/Zend/zend.h:286, from /usr/include/php/main/php.h:35, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_hash.h:111: note: macro "zend_hash_add" defined here 111 | #define zend_hash_add(ht, arKey, nKeyLength, pData, nDataSize, pDest) \ | /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1150:4: error: 'zend_hash_add' undeclared (first use in this function); did you mean 'zend_hash_find'? 1150 | zend_hash_add(Z_ARRVAL_P(&attrs), hash_key_zstring, &attr); | ^~~~~~~~~~~~~ | zend_hash_find In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'zif_ssh2_auth_agent': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:55: warning: passing argument 1 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 96 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1181:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION' 1181 | SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:45:36: warning: passing argument 2 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion] 45 | #define PHP_SSH2_SESSION_RES_NAME "SSH2 Session" | ^~~~~~~~~~~~~~ | | | char * /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:74: note: in expansion of macro 'PHP_SSH2_SESSION_RES_NAME' 96 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1181:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION' 1181 | SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'int' but argument is of type 'char *' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:101: warning: passing argument 3 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion] 96 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~ | | | int /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1181:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION' 1181 | SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: expected 'const char *' but argument is of type 'int' 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:28: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/php_ssh2.h:96:35: error: too few arguments to function 'zend_fetch_resource' 96 | if ((session = (LIBSSH2_SESSION *)zend_fetch_resource(Z_RES_P(zsession), PHP_SSH2_SESSION_RES_NAME, le_ssh2_session)) == NULL) { \ | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1181:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION' 1181 | SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend_API.h:27, from /usr/include/php/main/php.h:39, from /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:25: /usr/include/php/Zend/zend_list.h:83:16: note: declared here 83 | ZEND_API void *zend_fetch_resource(zval **passed_id TSRMLS_DC, int default_id, const char *resource_type_name, int *found_resource_type, int num_resource_types, ...); | ^~~~~~~~~~~~~~~~~~~ /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: At top level: /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1247:35: error: unknown type name 'zend_resource'; did you mean 'term_source'? 1247 | static void php_ssh2_session_dtor(zend_resource *rsrc) | ^~~~~~~~~~~~~ | term_source /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1277:36: error: unknown type name 'zend_resource'; did you mean 'term_source'? 1277 | static void php_ssh2_listener_dtor(zend_resource *rsrc) | ^~~~~~~~~~~~~ | term_source /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1288:39: error: unknown type name 'zend_resource'; did you mean 'term_source'? 1288 | static void php_ssh2_pkey_subsys_dtor(zend_resource *rsrc) | ^~~~~~~~~~~~~ | term_source /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c: In function 'zm_startup_ssh2': /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1303:55: error: 'php_ssh2_session_dtor' undeclared (first use in this function); did you mean 'php_ssh2_session_data'? 1303 | le_ssh2_session = zend_register_list_destructors_ex(php_ssh2_session_dtor, NULL, PHP_SSH2_SESSION_RES_NAME, module_number); | ^~~~~~~~~~~~~~~~~~~~~ | php_ssh2_session_data /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1304:55: error: 'php_ssh2_listener_dtor' undeclared (first use in this function); did you mean 'php_ssh2_listener_data'? 1304 | le_ssh2_listener = zend_register_list_destructors_ex(php_ssh2_listener_dtor, NULL, PHP_SSH2_LISTENER_RES_NAME, module_number); | ^~~~~~~~~~~~~~~~~~~~~~ | php_ssh2_listener_data /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1305:52: error: 'php_ssh2_sftp_dtor' undeclared (first use in this function); did you mean 'php_ssh2_sftp_data'? 1305 | le_ssh2_sftp = zend_register_list_destructors_ex(php_ssh2_sftp_dtor, NULL, PHP_SSH2_SFTP_RES_NAME, module_number); | ^~~~~~~~~~~~~~~~~~ | php_ssh2_sftp_data /tmp/B.qg2QrY/BUILD/php56-pecl-ssh2-1.1.2/ssh2.c:1306:58: error: 'php_ssh2_pkey_subsys_dtor' undeclared (first use in this function); did you mean 'php_ssh2_pkey_subsys_data'? 1306 | le_ssh2_pkey_subsys = zend_register_list_destructors_ex(php_ssh2_pkey_subsys_dtor, NULL, PHP_SSH2_PKEY_SUBSYS_RES_NAME, module_number); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | php_ssh2_pkey_subsys_data make: *** [Makefile:201: ssh2.lo] Error 1 error: Bad exit status from /tmp/B.qg2QrY/BUILD/tmp/rpm-tmp.93849 (%build) RPM build errors: Bad exit status from /tmp/B.qg2QrY/BUILD/tmp/rpm-tmp.93849 (%build) ended at: Tue Aug 13 17:18:11 2019, done in 0:00:04.669915 error: No files produced. + chmod -R u+rwX /tmp/B.qg2QrY/BUILD + rm -rf /tmp/B.qg2QrY/tmp /tmp/B.qg2QrY/BUILD + rm -rf /tmp/B.qg2QrY Begin-PLD-Builder-Info Build-Time: user:16.31s sys:2.80s real:26.35s (faults io:0 non-io:742730) End-PLD-Builder-Info
[Back to list of logs] [View rpm -qa of builder]