From owner-freebsd-questions@FreeBSD.ORG Fri Nov 18 05:41:03 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 BFF8416A41F for ; Fri, 18 Nov 2005 05:41:03 +0000 (GMT) (envelope-from russell@russellmeek.net) Received: from a.mx.russellmeek.net (91.59.118.70.cfl.res.rr.com [70.118.59.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0992943D4C for ; Fri, 18 Nov 2005 05:41:02 +0000 (GMT) (envelope-from russell@russellmeek.net) Received: (qmail 54803 invoked by uid 89); 18 Nov 2005 05:41:01 -0000 Received: by simscan 1.1.0 ppid: 53662, pid: 54110, t: 1.2847s scanners: attach: 1.1.0 clamav: 0.87.1/m:34/d:1169 spam: 3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on prometheus.russellmeek.net X-Spam-Level: X-Spam-Status: No, score=-1.4 required=10.0 tests=ALL_TRUSTED,HTML_MESSAGE autolearn=ham version=3.1.0 Received: from unknown (HELO ?192.172.1.125?) (russell@russellmeek.net@192.172.1.125) by a.mx.russellmeek.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 18 Nov 2005 05:41:00 -0000 Message-ID: <437D6971.50309@russellmeek.net> Date: Fri, 18 Nov 2005 00:41:05 -0500 From: "Russell E. Meek" User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20051118005404.GA53252@oracle.local.lan> In-Reply-To: <20051118005404.GA53252@oracle.local.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Should I have 2 copies of OpenSSL? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2005 05:41:03 -0000 Justin Meyer wrote: >Hi Folks, > >I've got a 6.0-STABLE box here that I've upgraded from sources serveral >times, from all the way back from 5.0 (and maybe from 4.x; I honestly >can't remember at this point...) I'm fairly sure I followed directions >properly along the way, because I always got everything working again >after each upgrade. > >Except this time, a Ruby script using Ruby's 'http-access2' module >started throwing odd OpenSSL exceptions. After poking a bit, I found the >following: > > > >>ttyp3 zhengyi@oracle:~/code/ruby $ /usr/bin/openssl version >> >> >OpenSSL 0.9.7e-p1 25 Oct 2004 > > >>ttyp3 zhengyi@oracle:~/code/ruby $ /usr/local/bin/openssl version >> >> >OpenSSL 0.9.8a 11 Oct 2005 > >I guess the one in /usr/bin came with the system, and the one in >/usr/local/bin came from ports: > > > >>ttyp3 zhengyi@oracle:~/code/ruby $ pkg_info|grep openssl >> >> >openssl-0.9.8a SSL and crypto library > >What gives? Is the way things should be? Or did I foul something up >somewhere along the way through my upgrades? If I did mess something up, >what should I do to fix it? > >Thank you! > > > Justin, How about trying this, you have the most recent version of openssl installed in base due to the upgrade to 6.0 - release. If you have the OpenSSL port installed why don't you uninstall the port and place the following in your /etc/make.conf file WITH_OPENSSL_BASE=yes This will force all ports you install going foward to use the base install of OpenSSL and not to install OpenSSL as a dependency from ports. You could then make deinstall, make install clean && make distclean any port that requires OpenSSL, Ruby for instance. This should make it build with the base install, eliminating the version conflict. Also if you by chance have pkgtools installed, a quick portsclean -CDDLP would not hurt once you finished re-installing all OpenSSL dependant ports. -CDDLP will clean out all work directories and distfiles from the entire ports collection if they exist or were left over. Thanks, -- Russell E. Meek www.russellmeek.net