From owner-freebsd-questions Tue May 9 22:54:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (Postfix) with ESMTP id 748EA37B59C for ; Tue, 9 May 2000 22:54:19 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id PAA88794; Wed, 10 May 2000 15:24:11 +0930 (CST) Date: Wed, 10 May 2000 15:24:11 +0930 From: Greg Lehey To: R Joseph Wright Cc: freebsd-questions Subject: Re: format of libraries Message-ID: <20000510152411.S86264@freebie.lemis.com> References: <20000510135017.K86264@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tuesday, 9 May 2000 at 22:37:23 -0700, R Joseph Wright wrote: > On Wed, 10 May 2000, Greg Lehey wrote: > >> On Tuesday, 9 May 2000 at 17:46:49 -0700, R Joseph Wright wrote: >>> I installed a linux program on my machine which includes a library >>> libxxx.a. I was wondering if libraries need to be "brandelf"-ed as well >>> as executables. >>> >>> But when I did "brandelf libxxx.a" it said that it was not an ELF >>> format. So I checked other libraries with the suffix .a. They >>> also were not ELF. But all the .so libraries said they were ELF. >>> >>> What format are the libraries with .a suffix? >> >> ar(1) format. It's basically an archive of object files. >> >>> Does anything need to be done with them if they are linux binaries? >> >> Not that I know of, except that you probably won't be able to link >> them with FreeBSD, because they assume a different environment. There >> are some exceptions, though, notably functions that don't make any >> calls to other functions. > > Does this mean that a linux program needing shared libraries cannot > read a FreeBSD version and must have the linux version installed > under /compat/linux? Yes. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message