From owner-freebsd-questions@FreeBSD.ORG Thu Nov 8 17:59:55 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23F1616A41B for ; Thu, 8 Nov 2007 17:59:55 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from darklight.org.ru (ipv6.darklight.org.ru [IPv6:2001:470:1f07:84::1]) by mx1.freebsd.org (Postfix) with ESMTP id 064FD13C491 for ; Thu, 8 Nov 2007 17:59:53 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from darklight.org.ru (yuri@darklight.org.ru [IPv6:::1]) by darklight.org.ru (8.14.2/8.14.2) with ESMTP id lA8Hxphw021547; Thu, 8 Nov 2007 20:59:52 +0300 (MSK) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by darklight.org.ru (8.14.2/8.14.2/Submit) id lA8HxpKR021546; Thu, 8 Nov 2007 20:59:51 +0300 (MSK) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: darklight.org.ru: yuri set sender to yuri.pankov@gmail.com using -f Date: Thu, 8 Nov 2007 20:59:51 +0300 From: Yuri Pankov To: John Smith Message-ID: <20071108175951.GC18314@darklight.org.ru> References: <6dcf0dbc0711080901g49043bb1u1a8e38cfacbde15c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6dcf0dbc0711080901g49043bb1u1a8e38cfacbde15c@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: FreeBSD Questions Mailing List Subject: Re: Determine FreeBSD version of binary 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, 08 Nov 2007 17:59:55 -0000 On Thu, Nov 08, 2007 at 06:01:40PM +0100, John Smith wrote: > Hi, > > > > I was wondering if it was possible to determine for what version of > FreeBSD a binary was compiled, purely by examining the binary? > > > Any and all help and suggestions are greatly appreciated, > > > > Thanks, > > > john Smith May be not entirely correct, but close: ldd binary | grep libc.so libc.so.4 - 4.x, libc.so.5 - 5.x, libc.so.6 - 6x, libc.so.7 - 7.x (and 8-CURRENT at the moment). HTH, Yuri