FAQ

[PECL-DEV] ssh2 build on windows

Jbondc
Jan 8, 2013 at 1:25 pm
I'm trying to build the ssh2 extension for PHP 5.4 on Windows:

configure --disable-all --enable-cli --with-openssl=shared --with-ssh2=shared

C:\Utils\PHP-sdk\php-5.4\vc9\x86\php-5.4.10>nmake

Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

Recreating build dirs
Recreating build dirs
Recreating build dirs
Creating library Release_TS\php5ts.lib and object Release_TS\php5ts.exp
Creating library Release_TS\php_openssl.lib and object Release_TS\php_openssl.exp
EXT openssl build complete
Creating library Release_TS\php_ssh2.lib and object Release_TS\php_ssh2.exp
libssh2_a.lib(kex.obj) : error LNK2019: unresolved external symbol _BN_CTX_free referenced in function _diffie_hellman_sha1
libssh2_a.lib(kex.obj) : error LNK2019: unresolved external symbol _BN_clear_free referenced in function _diffie_hellman_sha1
libssh2_a.lib(openssl.obj) : error LNK2001: unresolved external symbol _BN_clear_free
libssh2_a.lib(kex.obj) : error LNK2019: unresolved external symbol _BN_bin2bn referenced in function _diffie_hellman_sha1
...

Any ideas what I can do here? I'm using this dependency:
http://windows.php.net/downloads/php-sdk/deps/libssh2-1.4.2-vc9-x86.zip<http://windows.php.net/downloads/php-sdk/deps/libssh2-1.4.2-vc9-x86.zip>
reply

Search Discussions

2 responses

  • Anatoliy Belsky at Jan 8, 2013 at 2:21 pm
    Hi,

    There is a ready to use build under
    http://windows.php.net/downloads/pecl/releases/ssh2/

    Regards

    Anatoliy
    On Tue, January 8, 2013 14:26, jbondc@openmv.com wrote:
    I'm trying to build the ssh2 extension for PHP 5.4 on Windows:


    configure --disable-all --enable-cli --with-openssl=shared
    --with-ssh2=shared


    C:\Utils\PHP-sdk\php-5.4\vc9\x86\php-5.4.10>nmake


    Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
    Copyright (C) Microsoft Corporation. All rights reserved.


    Recreating build dirs
    Recreating build dirs
    Recreating build dirs
    Creating library Release_TS\php5ts.lib and object Release_TS\php5ts.exp
    Creating library Release_TS\php_openssl.lib and object
    Release_TS\php_openssl.exp
    EXT openssl build complete
    Creating library Release_TS\php_ssh2.lib and object
    Release_TS\php_ssh2.exp
    libssh2_a.lib(kex.obj) : error LNK2019: unresolved external symbol
    _BN_CTX_free referenced in function _diffie_hellman_sha1
    libssh2_a.lib(kex.obj) : error LNK2019: unresolved external symbol
    _BN_clear_free referenced in function _diffie_hellman_sha1
    libssh2_a.lib(openssl.obj) : error LNK2001: unresolved external symbol
    _BN_clear_free
    libssh2_a.lib(kex.obj) : error LNK2019: unresolved external symbol
    _BN_bin2bn referenced in function _diffie_hellman_sha1
    ...


    Any ideas what I can do here? I'm using this dependency:
    http://windows.php.net/downloads/php-sdk/deps/libssh2-1.4.2-vc9-x86.zip<ht
    tp://windows.php.net/downloads/php-sdk/deps/libssh2-1.4.2-vc9-x86.zip>




  • Jan Ehrhardt at Jan 8, 2013 at 4:10 pm
    "jbondc@openmv.com" in php.pecl.dev (Tue, 8 Jan 2013 13:26:41 +0000):
    I'm trying to build the ssh2 extension for PHP 5.4 on Windows:

    configure --disable-all --enable-cli --with-openssl=shared --with-ssh2=shared
    Follow the link in this post:
    http://www.apachehaus.com/forum/index.php?topic=839.0

    Sob patched SSH2. I am not sure if that one is needed, but you might try
    it.

    And use the SSL libs from
    http://windows.php.net/downloads/php-sdk/deps-5.4-vc9-x86.7z

    Jan

Related Discussions

Discussion Navigation
viewthread | post