From owner-freebsd-questions Thu Feb 27 6:47:59 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A2B637B401; Thu, 27 Feb 2003 06:47:57 -0800 (PST) Received: from a11d015.neo.rr.com (a1-1b048.neo.rr.com [24.93.161.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B2E343FD7; Thu, 27 Feb 2003 06:47:56 -0800 (PST) (envelope-from jarnold@knightridder.com) Received: from [192.168.0.4] (mac [192.168.0.4]) by a11d015.neo.rr.com (Postfix) with ESMTP id A7221369C; Thu, 27 Feb 2003 09:47:55 -0500 (EST) Mime-Version: 1.0 X-Sender: jim@192.168.0.2 Message-Id: In-Reply-To: <20030227142303.GC71291@madman.celabo.org> References: <20030227050529.GB87660@rot13.obsecurity.org> <20030227142303.GC71291@madman.celabo.org> Date: Thu, 27 Feb 2003 09:45:37 -0500 To: "Jacques A. Vidrine" , Kris Kennaway From: Jim Arnold Subject: Re: [JArnold@knightridder.com: OpenSSL problem] Cc: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > ----- Forwarded message from "James A. Arnold" > ----- >> Date: Wed, 26 Feb 2003 15:56:17 -0500 >> To: questions@FreeBSD.ORG >> From: "James A. Arnold" >> 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 majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message