Building OpenSSH on Solaris 10

I ran into the following errors when attempting to build OpenSSH 4.2p1 on a Solaris 10 system:

gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o ssh

connect2.o -L. -Lopenbsd-compat/  -lssh -lopenbsd-compat -lresolv -lcrypto -lrt
-lz -lsocket -lnsl
Undefined                       first referenced
 symbol                             in file
EVP_aes_192_cbc                     ./libssh.a(cipher.o)
EVP_aes_256_cbc                     ./libssh.a(cipher.o)
ld: fatal: Symbol referencing errors. No output written to ssh
collect2: ld returned 1 exit status
make: *** [ssh] Error 1

Please read this message for more detail on the problem.

Since I have OpenSSL installed, I was able to build OpenSSH  using OpenSSL's cryptographic libraries with the following commands.
$ ./configure --with-ssl-dir=/usr/local/ssl
$ make
$ su root -c 'PATH=$PATH:/usr/ccs/bin make install'

Without appending --with-ssl-dir=/usr/local/ssl, the configure script will use Solaris 10's default cryptographic libraries, causing the above error messages.

Back to
Last modified: 01/16/2006