From owner-freebsd-questions@FreeBSD.ORG Thu Sep 16 18:56:06 2004 Return-Path: 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 477A616A59E for ; Thu, 16 Sep 2004 18:56:06 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE3D843D39 for ; Thu, 16 Sep 2004 18:56:05 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.11/8.12.11) id i8GIu4wP092549; Thu, 16 Sep 2004 13:56:04 -0500 (CDT) (envelope-from dan) Date: Thu, 16 Sep 2004 13:56:04 -0500 From: Dan Nelson To: eng@donut.ugcs.caltech.edu Message-ID: <20040916185604.GE29528@dan.emsphone.com> References: <20040916170045.GB21127@philemon.caltech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040916170045.GB21127@philemon.caltech.edu> X-OS: FreeBSD 5.3-BETA3 X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: Running 3.x binaries X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2004 18:56:06 -0000 In the last episode (Sep 16), eng@donut.ugcs.caltech.edu said: > I've just been given a whole bunch of binaries that had been compiled > under FreeBSD 3.4 and asked to make them run under our modern 4.10 > systems. > > I'm considering a couple of options + was hoping for some > commentary on them: > > 1) setup a chroot environment with the old 3.x system > (using the destdir directive on a 3.x buildworld) > 2) Copy over the old libraries and install them in the usual > places Option 2 should work just fine. Installing the misc/compat3x port will get you most if not all of the required libraries (comment out the FORBIDDEN= line in the Makefile). If your programs depend on port-installed libraries, copy them off the old system into /usr/local/lib/compat/. The only stumbling block you might run into is if both the old and the new system have a shared library with the same major number. Old binaries will try and link to the new shlib and may have problems. > Are there any kernel options I need to ensure that the old > libc will work? You needed to change the max pid value for 2.2.x compatibility, I think, but 3.x binaries should work with no adjustments. > p.s. please reply to me directly as I do _not_ subscribe to > the list. That's standard procedure on FreeBSD.org lists. -- Dan Nelson dnelson@allantgroup.com