> ----- Forwarded message from "James A. Arnold" <[EMAIL PROTECTED]> -----
 Date: Wed, 26 Feb 2003 15:56:17 -0500
 To: [EMAIL PROTECTED]
 From: "James A. Arnold" <[EMAIL PROTECTED]>
 Subject: OpenSSL problem

I now get this error when trying to run a shell program using wget

 /usr/libexec/ld-elf.so.1: /usr/local/bin/wget: Undefined symbol
 "OpenSSL_add_all_algorithms"

 any idea how to fix this? must have started when I update OpenSSL or
 some such nonsense.
 Please also reply to me email address as I can no longer subscribe to the
 list.

Here's what is happening: wget was compiled with OpenSSL 0.9.6. But now that you run it, it is finding OpenSSL 0.9.7 (which is not binary compatibile). To determine why that is, the output from the following will be helpful:

   % ldd /usr/local/bin/wget
   % objdump -x /usr/local/bin/wget | grep NEEDED
   % ls -l /usr/lib/libcrypto.so*
   % ls -l /usr/local/lib/libcrypto.so*

spike# ldd /usr/local/bin/wget
/usr/local/bin/wget:
libintl.so.4 => /usr/local/lib/libintl.so.4 (0x10089000)
libssl.so.3 => /usr/local/lib/libssl.so.3 (0x10091000)
libcrypto.so.3 => /usr/local/lib/libcrypto.so.3 (0x100bf000)
libc.so.4 => /usr/lib/libc.so.4 (0x101aa000)
libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x10243000)
spike# objdump -x /usr/local/bin/wget | grep NEEDED
/usr/libexec/elf/objdump: /usr/local/bin/wget: no symbols
NEEDED libintl.so.4
NEEDED libssl.so.3
NEEDED libcrypto.so.3
NEEDED libc.so.4
spike# ls -l /usr/lib/libcrypto.so*
lrwxr-xr-x 1 root wheel 14 Nov 18 22:43 /usr/lib/libcrypto.so -> libcrypto.so.2
-r--r--r-- 1 root wheel 779964 Nov 18 22:43 /usr/lib/libcrypto.so.2
spike# ls -l /usr/local/lib/libcrypto.so*
lrwxr-xr-x 1 root wheel 14 Feb 1 09:52 /usr/local/lib/libcrypto.so -> libcrypto.so.3
-r--r--r-- 1 root wheel 1137150 Feb 1 09:52 /usr/local/lib/libcrypto.so.3


This is what I guess:  At some time in the past, you installed the
OpenSSL port, and then you built the wget port.  Now, perhaps you've
removed the OpenSSL port.  This leaves a very confused wget:  It wants
OpenSSL 0.9.6 to be called libcrypto.so.3.

To get around this I re-installed wget and it worked. But I'm wondering if anything else is broken or how to really fix this.


Thanks!
Jim

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to