From owner-freebsd-current@FreeBSD.ORG Wed Aug 3 00:02:25 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55B5916A41F for ; Wed, 3 Aug 2005 00:02:25 +0000 (GMT) (envelope-from julian@elischer.org) Received: from postoffice.vicor-nb.com (postoffice.vicor.com [69.26.56.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 426DE43D6D for ; Wed, 3 Aug 2005 00:02:22 +0000 (GMT) (envelope-from julian@elischer.org) Received: from localhost (localhost [127.0.0.1]) by postoffice.vicor-nb.com (Postfix) with ESMTP id C34614CE942; Tue, 2 Aug 2005 17:02:21 -0700 (PDT) Received: from postoffice.vicor-nb.com ([127.0.0.1]) by localhost (postoffice.vicor-nb.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 93054-04; Tue, 2 Aug 2005 17:02:21 -0700 (PDT) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by postoffice.vicor-nb.com (Postfix) with ESMTP id 2FA5B4CE8A3; Tue, 2 Aug 2005 17:02:21 -0700 (PDT) Message-ID: <42F0098C.8070805@elischer.org> Date: Tue, 02 Aug 2005 17:02:20 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050629 X-Accept-Language: en, hu MIME-Version: 1.0 To: Doug Ambrisko References: <200508022329.j72NTu8G014465@ambrisko.com> In-Reply-To: <200508022329.j72NTu8G014465@ambrisko.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postoffice.vicor.com Cc: FreeBSD Current Subject: Re: static binaries, jails and compat x X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Aug 2005 00:02:25 -0000 Doug Ambrisko wrote: >Julian Elischer writes: >| Now that we have dynamic binaries everywhere I'm discovering all those >| places >| where this breaks.. >| >| FreeBSD 5 or 6 machine. (needed because freeBSD 4 can't run on the new >| hardware) >| freeBSD 4 jail to run a legacy app. >| ps top and netstat (and friends) don't work (not surprisingly) >| ps I can get from /rescue >| but top and netstat are only available in dynamic form. > >Hey, it gets harder when you run FreeBSD 4.X on a FreeBSD amd64 machine and >have mixed i386/amd64 libs :-( I copy over the amd64 versions of ps etc. >and had to copy over some libs that conflict in names. In-order to get >around placement issues I binary edit them on the fly via sed: > sed -e 's/libkvm/libhvm/g' -e 's/libexec/libhxec/g' -e 's/libsbuf/libhbuf/g' > >etc. One thing I just found out was: > UNAME_s,r,v,m,p >and hacked libc's getosreldate & uname to use that stuff. I LD_PRELOAD >my lib of these then pkg_add -r, libtool etc. then just work and think >the are really running on FreeBSD 4.X. I wish if LD_PRELOAD lib's >didn't exist then it would just ignore it versus failing to run. I've made >that change locally. That way I can chroot in chroot without needing >the shims when not needed. > >It's a mess. Do you think the libc stuff should have the same type >of over-rides as the uname binary. I think so. > > I'd like to see the filename code be able to use /usr/compat/FreeBSD4/... like it does for Linux binaries at the moment. Can we brandelf FreeBSD 6 binaries differently so that they can be told apart from FfreeBSD 4 binaries by the kernel? >Doug A. > >