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

Re: [libssh2] libssh2 - Fatal Error During Make

From: Asimananda Mohanty <>
Date: Thu, 28 Aug 2008 04:44:48 -0700 (PDT)


I already had installed OpenSSL, now I did this for libssh2 :

./configure --enable-threads --prefix=/usr/local --with-ssl-dir=/usr/local/ssl

But still make gives some error. I think configure still doesn't consider the installed ssl. should i uninstall the default ssl that comes with solaris 10? will it be effective?

Thanks for the reply.


----- Original Message ----
From: Mononen Jussi <>
To: Asimananda Mohanty <>;
Sent: Thursday, August 28, 2008 4:21:58 PM
Subject: RE: [libssh2] libssh2 - Fatal Error During Make

> 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