Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 2004 13:56:04 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        eng@donut.ugcs.caltech.edu
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Running 3.x binaries
Message-ID:  <20040916185604.GE29528@dan.emsphone.com>
In-Reply-To: <20040916170045.GB21127@philemon.caltech.edu>
References:  <20040916170045.GB21127@philemon.caltech.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040916185604.GE29528>