Santanu Misra
2002-Jun-21 00:29 UTC
configure problem --- Can't find recent OpenSSL libcrypto
Hello Gurus, I tried my best as I can to do RTFM and Googling to find any information to solve the problem myself which I failed. I installed OpenSSL 0.9.6d 9 May 2002 with this option on a Solaris 8 box using Sun Forte6-2 $config solaris64-sparcv9-cc --prefix=/local/santanu/pkg/ssl Now I am trying to install openssh 3.2.3p1 and getting this error. configure:8285: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) *** I tried ./configure --with-ssl-dir=/local/santanu/pkg/ssl and ./configure --with-ssl-dir=/local/santanu/pkg/ssl/lib and then I tried to export LIBRARY_PATH as some one mentioned in the mailing list. No luck yet. configure:8285: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) *** I am not a programmer but after looking details in config.log I found it is giving this error when it looks for symbol 'RAND_add'. But when I do nm on libcrypto I get like this. /local/santanu/pkg/ssl/lib> nm libcrypto.a | grep -i RAND_add [27] | 0| 0|FUNC |GLOB |0 |UNDEF |RAND_add [3] | 248| 1068|FUNC |LOCL |0 |2 |ssleay_rand_add [25] | 0| 0|FUNC |GLOB |0 |UNDEF |RAND_add [18] | 360| 68|FUNC |GLOB |0 |2 |RAND_add [23] | 0| 0|FUNC |GLOB |0 |UNDEF |RAND_add [57] | 0| 0|FUNC |GLOB |0 |UNDEF |RAND_add [96] | 0| 0|FUNC |GLOB |0 |UNDEF |RAND_add Any help will be great. But PLEASE think and read twice my mail before U mention to do RTFM for me. -Thanks in advance, Santanu configure:7846: result: yes configure:8215: cc -o conftest -g -I/local/santanu/pkg/ssl/include -I/usr/local/include -L/local/santanu/pkg/ssl/lib -R/lo cal/santanu/pkg/ssl/lib -L/usr/local/lib -R/usr/local/lib conftest.c -lz -lsocket -lnsl -lcrypto >&5 Undefined first referenced symbol in file RAND_add conftest.o ld: fatal: Symbol referencing errors. No output written to conftest configure:8218: $? = 1 configure: failed program was: #line 8189 "configure" #include "confdefs.h" Santanu Misra Email: santanu.misra at reuters.com Sr. System Administrator Direct: 650-461-3110 Reuters Main: 650-461-3000 3375 Hillview Avenue Fax: 650-461-3003 Palo Alto, CA 94304 WWW: http://www.reuters.com/
Darren Tucker
2002-Jun-21 01:30 UTC
configure problem --- Can't find recent OpenSSL libcrypto
Santanu Misra wrote:> I installed OpenSSL 0.9.6d 9 May 2002 with this option on a Solaris 8 box > using Sun Forte6-2[snip]> configure:8285: error: *** Can't find recent OpenSSL libcrypto (see > config.log for details) ***[snip] The last problem of this type I saw was caused because there was an old libcrpyto.so and a new libcrypto.a (or vice versa, I forget) in the same ssl/lib directory. It might be picking up libcrypto from somewhere other than where you expect. Try: $ find / -name 'libcrypto.*' -print -- Darren Tucker (dtucker at zip.com.au) GPG Fingerprint D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
Santanu Misra
2002-Jun-21 18:27 UTC
configure problem --- Can't find recent OpenSSL libcrypto
Hi, Thanks for the input. I do not see any libcrypto.so so I tried libcrypt*.* and this is the result Does it make any sense? woola# find / -name 'libcrypt*.*' -print /usr/lib/sparcv9/libcrypt_i.so /usr/lib/sparcv9/libcrypt_i.so.1 /usr/lib/libcrypt_i.so /usr/lib/libcrypt_i.so.1 /usr/lib/libcrypt.so /usr/lib/libcrypt.so.1 /usr/lib/libcrypt_i.a /usr/lib/libcrypt.a /usr/lib/libcrypto.a /usr/share/man/sman3lib/libcrypt.3lib /local/santanu/pkg/ssl/lib/libcrypto.a /local/santanu/openssl-0.9.6d/libcrypto.a -Regards, Santanu -----Original Message----- From: Darren Tucker [mailto:dtucker at zip.com.au] Sent: Thursday, June 20, 2002 6:30 PM To: Santanu Misra Cc: 'openssh-unix-dev at mindrot.org' Subject: Re: configure problem --- Can't find recent OpenSSL libcrypto Santanu Misra wrote:> I installed OpenSSL 0.9.6d 9 May 2002 with this option on a Solaris 8 box > using Sun Forte6-2[snip]> configure:8285: error: *** Can't find recent OpenSSL libcrypto (see > config.log for details) ***[snip] The last problem of this type I saw was caused because there was an old libcrpyto.so and a new libcrypto.a (or vice versa, I forget) in the same ssl/lib directory. It might be picking up libcrypto from somewhere other than where you expect. Try: $ find / -name 'libcrypto.*' -print -- Darren Tucker (dtucker at zip.com.au) GPG Fingerprint D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement. _______________________________________________ openssh-unix-dev at mindrot.org mailing list http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
Carson Gaspar
2002-Jun-21 21:34 UTC
configure problem --- Can't find recent OpenSSL libcrypto
--On Thursday, June 20, 2002 5:29 PM -0700 Santanu Misra <santanu.misra at reuters.com> wrote:> $config solaris64-sparcv9-cc --prefix=/local/santanu/pkg/sslThis generates a 64-bit OpenSSL library> configure:7846: result: yes > configure:8215: cc -o conftest -g -I/local/santanu/pkg/ssl/include > -I/usr/local/include -L/local/santanu/pkg/ssl/lib -R/lo > cal/santanu/pkg/ssl/lib -L/usr/local/lib -R/usr/local/lib conftest.c -lz > -lsocket -lnsl -lcrypto >&5 > Undefined first referenced > symbol in file > RAND_add conftest.o > ld: fatal: Symbol referencing errors. No output written to conftestThis is looking for a 32-bit OpenSSL library (note the lack of 64-bit options for cc). You may not mix 64-bit and 32-bit objects in Solaris. You must either: - Compile OpenSSL in 32-bit mode or - Add the appropriate 64-bit options to CPPFLAGS when compiling OpenSSH. -- Carson
Santanu Misra
2002-Jun-23 00:50 UTC
configure problem --- Can't find recent OpenSSL libcrypto
Hi Carson, Thanks for mentioning about the 64/32 bit issue. I was able to configure ssh now :) But for further a good document to look. http://www.sun.com/solutions/blueprints/0701/openSSH.pdf Markus, Can it be mentioned in the INSTALL of later release of OPENSSH. Thanks every one for all the help. -Santanu -----Original Message----- From: Carson Gaspar [mailto:carson at taltos.org] Sent: Friday, June 21, 2002 2:34 PM To: 'openssh-unix-dev at mindrot.org' Subject: Re: configure problem --- Can't find recent OpenSSL libcrypto --On Thursday, June 20, 2002 5:29 PM -0700 Santanu Misra <santanu.misra at reuters.com> wrote:> $config solaris64-sparcv9-cc --prefix=/local/santanu/pkg/sslThis generates a 64-bit OpenSSL library> configure:7846: result: yes > configure:8215: cc -o conftest -g -I/local/santanu/pkg/ssl/include > -I/usr/local/include -L/local/santanu/pkg/ssl/lib -R/lo > cal/santanu/pkg/ssl/lib -L/usr/local/lib -R/usr/local/lib conftest.c -lz > -lsocket -lnsl -lcrypto >&5 > Undefined first referenced > symbol in file > RAND_add conftest.o > ld: fatal: Symbol referencing errors. No output written to conftestThis is looking for a 32-bit OpenSSL library (note the lack of 64-bit options for cc). You may not mix 64-bit and 32-bit objects in Solaris. You must either: - Compile OpenSSL in 32-bit mode or - Add the appropriate 64-bit options to CPPFLAGS when compiling OpenSSH. -- Carson _______________________________________________ openssh-unix-dev at mindrot.org mailing list http://www.mindrot.org/mailman/listinfo/openssh-unix-dev