Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
More Trouble Installing PHP's SSH2 extension.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pgb205
n00b
n00b


Joined: 28 Jul 2008
Posts: 60

PostPosted: Sun Nov 02, 2008 2:50 am    Post subject: More Trouble Installing PHP's SSH2 extension. Reply with quote

When trying to do pecl install ssh2-beta get an error message as follows:
/tmp/pear/download/ssh2-0.10/ssh2.c:1107: warning: passing argument 2 of '_zend_hash_add_or_update' discards qualifiers from pointer target type
make: *** [ssh2.lo] Error 1
ERROR: `make' failed

the only solid explanation on how to fix this I found at the following link. Unfortunatelly it doesn't work for me
and I still get the same error.
I change the ssh2.c file as described below run the phpize && ./configure --with-ssh2 && make command and then try to do the pecl install command.
Can anyone please explain to me what I'm doing wrong.

thanks

http://pecl.php.net/bugs/bug.php?id=11779

samrat

presuming you've downloaded, and extracted the pecl lib you can patch it
manually by opening up ssh2.c running down the script till you get to
the line that reads:

#if LIBSSH2_APINO < 200412301450

Change it to read

#if LIBSSH2_VERSION_NUM < 0x001000

Save the file and run

phpize && ./configure --with-ssh2 && make

Then carry on from there. You'll now need to edit your PHP.INI to load
in the extension, but you should be good to go.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum