Subject: Re: [libssh2] libssh2 - Fatal Error During Make

Re: [libssh2] libssh2 - Fatal Error During Make

From: Mononen Jussi <>
Date: Thu, 28 Aug 2008 13:51:58 +0300

> Hi,
> I am using Solaris 10 on X86 platform. I have installed
> coolstack from Sun that includes Apache, PHP and MySQL.
> Now I need to enable ssh2 support in the same. For the same,
> I need to installed libphp2 on my server.
> I ran ./configure && make all install and got some fatal
> errors. I gave /usr/
> Please let me know if I am missing something. I have even
> tried with upgrading my gcc.
> gcc -g -O2 -I/usr/sfw/include -I/usr/local/include -o
> .libs/ssh2 ssh2.o -L/usr/sfw/lib -L/usr/local/lib
> ../../src/.libs/ -lssl -lcrypto -ldl -lz -lnsl
> -lsocket -R/usr/local/lib -R/usr/sfw/lib
> Undefined first referenced
> symbol in file
> EVP_aes_192_cbc ../../src/.libs/
> EVP_aes_256_cbc ../../src/.libs/
> ld: fatal: Symbol referencing errors. No output written to .libs/ssh2
> collect2: ld returned 1 exit status
> *** Error code 1


Solaris 10's libcrypto does not support the above mentioned functions by
default. You could install extra crypto packages (SUNWcry, SUNWcryr) but
you could try to download and install OpenSSL and use its libcrypto
instead of the default.



perl -e '$@=[[0,0112,0,0],[0,0101,0,0],
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
libssh2-devel mailing list
Received on 2008-08-28