php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56440 ssh2.c:46: error:
Submitted: 2005-07-05 23:32 UTC Modified: 2005-07-06 00:50 UTC
From: rrioux at gmail dot com Assigned: pollita (profile)
Status: Closed Package: ssh2 (PECL)
PHP Version: 5.0.3 OS: Fedora Core 4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rrioux at gmail dot com
New email:
PHP Version: OS:

 

 [2005-07-05 23:32 UTC] rrioux at gmail dot com
Description:
------------
Versions:
php-version 5.0.4
pecl-package ssh2-0.9.tgz
gcc-version 4.0.0

Reproduce:
pear install ssh2-beta
or
phpize; ./configure --with-ssh2; make


[root@roddylaptop ssh2-0.9]# make
/bin/sh /home/rrioux/Downloads/php.ssh/ssh2-0.9/libtool --mode=compile gcc  -I. -I/home/rrioux/Downloads/php.ssh/ssh2-0.9 -DPHP_ATOM_INC -I/home/rrioux/Downloads/php.ssh/ssh2-0.9/include -I/home/rrioux/Downloads/php.ssh/ssh2-0.9/main -I/home/rrioux/Downloads/php.ssh/ssh2-0.9 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /home/rrioux/Downloads/php.ssh/ssh2-0.9/ssh2.c -o ssh2.lo
mkdir .libs
 gcc -I. -I/home/rrioux/Downloads/php.ssh/ssh2-0.9 -DPHP_ATOM_INC -I/home/rrioux/Downloads/php.ssh/ssh2-0.9/include -I/home/rrioux/Downloads/php.ssh/ssh2-0.9/main -I/home/rrioux/Downloads/php.ssh/ssh2-0.9 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /home/rrioux/Downloads/php.ssh/ssh2-0.9/ssh2.c  -fPIC -DPIC -o .libs/ssh2.o
/home/rrioux/Downloads/php.ssh/ssh2-0.9/ssh2.c:46: error: static declaration of 'first_arg_force_ref' follows non-static declaration
/usr/include/php/Zend/zend_modules.h:35: error: previous declaration of 'first_arg_force_ref' was here
/home/rrioux/Downloads/php.ssh/ssh2-0.9/ssh2.c: In function 'zif_ssh2_methods_negotiated':
/home/rrioux/Downloads/php.ssh/ssh2-0.9/ssh2.c:479: warning: assignment discards qualifiers from pointer target type
/home/rrioux/Downloads/php.ssh/ssh2-0.9/ssh2.c:480: warning: assignment discards qualifiers from pointer target type
/home/rrioux/Downloads/php.ssh/ssh2-0.9/ssh2.c:481: warning: assignment discards qualifiers from pointer target type
/home/rrioux/Downloads/php.ssh/ssh2-0.9/ssh2.c:482: warning: assignment discards qualifiers from pointer target type
/home/rrioux/Downloads/php.ssh/ssh2-0.9/ssh2.c:483: warning: assignment discards qualifiers from pointer target type
/home/rrioux/Downloads/php.ssh/ssh2-0.9/ssh2.c:484: warning: assignment discards qualifiers from pointer target type
/home/rrioux/Downloads/php.ssh/ssh2-0.9/ssh2.c:485: warning: assignment discards qualifiers from pointer target type
/home/rrioux/Downloads/php.ssh/ssh2-0.9/ssh2.c:486: warning: assignment discards qualifiers from pointer target type
/home/rrioux/Downloads/php.ssh/ssh2-0.9/ssh2.c:487: warning: assignment discards qualifiers from pointer target type
/home/rrioux/Downloads/php.ssh/ssh2-0.9/ssh2.c:488: warning: assignment discards qualifiers from pointer target type
/home/rrioux/Downloads/php.ssh/ssh2-0.9/ssh2.c: In function 'zif_ssh2_fingerprint':
/home/rrioux/Downloads/php.ssh/ssh2-0.9/ssh2.c:532: warning: assignment discards qualifiers from pointer target type
make: *** [ssh2.lo] Error 1




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-06 00:50 UTC] pollita@php.net
Fix will appear in next version.

For now the simple answer is: Delete lines 44 through 51 of ssh2.c

#ifdef ZEND_ENGINE_2
static
    ZEND_BEGIN_ARG_INFO(first_arg_force_ref, 0)
        ZEND_ARG_PASS_INFO(1)
    ZEND_END_ARG_INFO()
#else
static unsigned char first_arg_force_ref[] = { 1, BYREF_FORCE };
#endif

The real answer is slightly different, but that one should work for you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 16:01:31 2024 UTC