Jan Ehrhardt in php.internals (Thu, 25 Apr 2013 16:21:15 +0200):
>And for some reason I always have to remove the libssh2* files and fall
>back on my own. I still have got to find out why it goes wrong with the
>'official' dependencies.

With the official libssh2_a.lib there are a lot of unresolved symbols.
This can be fixed by adding the SSL-libs to this line in the Makefile:

LIBS_SSH2=libssh2_a.lib ssleay32.lib libeay32.lib

Or adding these two lines to the config.w32 of ssh2:

if ((CHECK_LIB("libssh2_a.lib;libssh2.lib", "ssh2", PHP_SSH2) &&
+               CHECK_LIB("ssleay32.lib", "ssh2", PHP_SSH2) &&
+               CHECK_LIB("libeay32.lib", "ssh2", PHP_SSH2) &&
                CHECK_HEADER_ADD_INCLUDE("libssh2.h", "CFLAGS_SSH2",
PHP_PHP_BUILD + "\\include\\libssh2"))) {

Jan
-- 
libssh2_a.lib(openssl.obj) : error LNK2019: unresolved external symbol
_DSA_do_verify referenced in function __libssh2_dsa_sha1_verify
libssh2_a.lib(openssl.obj) : error LNK2019: unresolved external symbol
_DSA_new referenced in function __libssh2_dsa_new
libssh2_a.lib(openssl.obj) : error LNK2019: unresolved external symbol
_PEM_read_bio_RSAPrivateKey referenced in function
__libssh2_rsa_new_private
libssh2_a.lib(openssl.obj) : error LNK2019: unresolved external symbol
_PEM_read_bio_DSAPrivateKey referenced in function
__libssh2_dsa_new_private
libssh2_a.lib(openssl.obj) : error LNK2019: unresolved external symbol
_PEM_read_bio_PrivateKey referenced in function
__libssh2_pub_priv_keyfile
libssh2_a.lib(crypt.obj) : error LNK2001: unresolved external symbol
_EVP_des_ede3_cbc
libssh2_a.lib(crypt.obj) : error LNK2001: unresolved external symbol
_EVP_rc4
libssh2_a.lib(crypt.obj) : error LNK2001: unresolved external symbol
_EVP_bf_cbc
libssh2_a.lib(crypt.obj) : error LNK2001: unresolved external symbol
_EVP_cast5_cbc

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to