From owner-freebsd-questions@FreeBSD.ORG Thu Oct 27 18:21:20 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 75D0716A41F for ; Thu, 27 Oct 2005 18:21:20 +0000 (GMT) (envelope-from micahjon@ywave.com) Received: from smtpout1.ywave.com (ycomradius.yelmtel.com [216.227.100.60]) by mx1.FreeBSD.org (Postfix) with SMTP id 20A1343D48 for ; Thu, 27 Oct 2005 18:21:19 +0000 (GMT) (envelope-from micahjon@ywave.com) Received: (qmail 11852 invoked by uid 502); 27 Oct 2005 18:21:18 -0000 Received: from dsl28217.ywave.com (HELO ?192.168.1.65?) (micahjon@ywave.com@216.227.115.217) by 0 with SMTP; 27 Oct 2005 18:21:18 -0000 X-CLIENT-IP: 216.227.115.217 X-CLIENT-HOST: dsl28217.ywave.com Message-ID: <43611A9D.6070304@ywave.com> Date: Thu, 27 Oct 2005 11:21:17 -0700 From: Micah User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050930) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Will Maier References: <17247.39311.203645.265116@jerusalem.litteratus.org> <200510262115.48144.krinklyfig@comcast.net> <4360DB59.7010900@ywave.com> <20051027154408.GS29508@localdomain> In-Reply-To: <20051027154408.GS29508@localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Which version of FreeBSD a binary was compiled for? 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: Thu, 27 Oct 2005 18:21:20 -0000 Will Maier wrote: > On Thu, Oct 27, 2005 at 06:51:21AM -0700, Micah wrote: > >>I have a 5.4 system, /do/ go into single user when upgrading, and >>file does /not/ report FreeBSD version. I get the same output you >>do. It would be nice to know why this works on some systems and >>not on others. > > > Consider diff'ing the /usr/share/misc/magic file from a system that > works and a system that doesn't work. I'd expect the difference to > be evident there. > > It works find on all my machines, though. > I have two 5.4 systems, one's a 5.4-Release installed from Disk, the other's a 5.4-release-p7 upgraded from 5.3 via the procedures in the handbook. File on the former reports FreeBSD version, file on the latter does not. There appears to be only minor differences in magic files between the two machines. Copying the magic file from the working machine to the non-working machine and compiling it via file -c did not change anything. Copying the executable from the working machine to the non-working machine did nothing either. Note: alexis->5.4, trisha->5.4p7 alexis% file `which ethereal` /usr/X11R6/bin/ethereal: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 5.4, dynamically linked (uses shared libs), stripped trisha% file `which ethereal` /usr/X11R6/bin/ethereal: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), stripped Thanks, Micah