Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Oct 2005 11:36:18 -0700
From:      Micah <micahjon@ywave.com>
To:        Will Maier <willmaier@ml1.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Which version of FreeBSD a binary was compiled for?
Message-ID:  <43611E22.5030408@ywave.com>
In-Reply-To: <20051027154408.GS29508@localdomain>
References:  <cb5206420510251524r32ddd9adx7d4fdce8f82a85be@mail.gmail.com>	<17247.39311.203645.265116@jerusalem.litteratus.org>	<cb5206420510260818p664df038g39a1035c747ac315@mail.gmail.com>	<200510262115.48144.krinklyfig@comcast.net>	<cb5206420510270116k27ad6e13r5dd17dbc7323c01f@mail.gmail.com>	<4360DB59.7010900@ywave.com> <20051027154408.GS29508@localdomain>

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

Didn't think to check this until /after/ I started to make lunch. :)  I 
copied ethereal from the working machine to the non-working machine. 
Using file on the copied ethereal gives me:

trisha% file ethereal
ethereal: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), 
for FreeBSD 5.4, dynamically linked (uses shared libs), stripped

Conversly coping ethereal from the broken machine to the working machine 
I get:

alexis% file ethereal
ethereal: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), 
dynamically linked (uses shared libs), stripped

In other words, it's not file that broken, but /every/ executable on the 
broken machine is broken.  Now why would that be?  A compiler flag or 
something?

Later,
Micah



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