Bug 604

Summary: ld: fatal: Symbol referencing errors. No output written to ssh-add
Product: Portable OpenSSH Reporter: Raja Rajan <raja.rajan>
Component: Build systemAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED WORKSFORME    
Severity: major    
Priority: P2    
Version: 3.6.1p2   
Hardware: UltraSPARC   
OS: SunOS   

Description Raja Rajan 2003-06-26 05:25:22 AEST
When we install openSSH in our solaris 2.8 box we're getting the following 
errors... The configuration went smooth without any errors.. We have given the 
following parameter to configure....

 selfreg-root:/opt/openssh-3.6p1
#./configure --prefix=/opt --sysconfdir=/etc/ssh --with-dir-ssl=/usr/local/ssl

After this when we try to run make we're getting the following error... Please 
help....

 selfreg-root:/opt/openssh-3.6p1
# make
:::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::
(cd openbsd-compat && make)
make[1]: Entering directory `/opt/openssh-3.6p1/openbsd-compat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/openssh-3.6p1/openbsd-compat'
gcc -o ssh-add ssh-add.o -L. -Lopenbsd-compat/ -L/usr/local/ssl/lib -
R/usr/local/ssl/lib  -L/usr/local/lib -R/usr/local/lib -lssh -lopenbsd-compat -
lrt -lz -lsocket -lnsl  -lcrypto   
Undefined                       first referenced
 symbol                             in file
OpenSSL_add_all_algorithms          ssh-add.o
ld: fatal: Symbol referencing errors. No output written to ssh-add
collect2: ld returned 1 exit status
make: *** [ssh-add] Error 1
Comment 1 Ben Lindstrom 2003-06-26 07:51:43 AEST
What version of OpenSSL?
Comment 2 Darren Tucker 2003-07-06 23:54:01 AEST
Try --with-ssl-dir rather than --with-dir-ssl:

$ ./configure --help |grep ssl
  --with-ssl-dir=PATH     Specify path to OpenSSL installation
Comment 3 Darren Tucker 2003-07-07 19:34:46 AEST
Please re-open if you can reproduce with --with-dir-ssl.
Comment 4 Darren Tucker 2003-07-07 19:56:04 AEST
Whoops, make that --with-ssl-dir.
Comment 5 Darren Tucker 2003-07-07 22:49:05 AEST
OK then, which version of OpenSSL do you have? Try:
$ /usr/local/ssl/bin/openssl version
Comment 6 Darren Tucker 2003-08-22 12:50:44 AEST
No answer == no bug.
Comment 7 Damien Miller 2004-04-14 12:24:19 AEST
Mass change of RESOLVED bugs to CLOSED