From owner-freebsd-questions@FreeBSD.ORG Sun Mar 21 00:19:48 2004 Return-Path: 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 34D8916A4CE for ; Sun, 21 Mar 2004 00:19:48 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id C50A443D2F for ; Sun, 21 Mar 2004 00:19:47 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i2L8HHBN092040; Sun, 21 Mar 2004 02:17:17 -0600 (CST) (envelope-from dan) Date: Sun, 21 Mar 2004 02:17:17 -0600 From: Dan Nelson To: Mark Message-ID: <20040321081717.GA26638@dan.emsphone.com> References: <1079841282.664.10.camel@osaka> <20040321040035.GC2097@dan.emsphone.com> <200403210638.I2L6CT0D027199@asarian-host.net> <20040321065555.GE2097@dan.emsphone.com> <200403210708.I2L78Y8J027993@asarian-host.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200403210708.I2L78Y8J027993@asarian-host.net> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: Do I really need to rebuilding *everything* X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2004 08:19:48 -0000 In the last episode (Mar 21), Mark said: > Pardon my daftness, but how is a 'file' against, say, httpd, like this, > > file /usr/local/sbin/httpd > /usr/local/sbin/httpd: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), not stripped > > going to tell me whether httpd was dynamically linked against > OpenSSL, or statically? It just tells me httpd uses shared libraries. > Or does it mean it ONLY uses shared libraries? You can also use the "ldd" command to list the specific shlibs linked by a program, but you can usually assume that if it's dynamically linked, it has dynamically linked all its libraries too. Theoretically, a program could have linked directly to /usr/lib/libssl.a, but most of the time they just use -lssl, which will prefer shared libraries over static. -- Dan Nelson dnelson@allantgroup.com