From owner-freebsd-questions@FreeBSD.ORG Wed Aug 24 23:46:24 2005 Return-Path: X-Original-To: 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 0488F16A41F for ; Wed, 24 Aug 2005 23:46:24 +0000 (GMT) (envelope-from chickyshnoodlesoup@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8153D43D46 for ; Wed, 24 Aug 2005 23:46:23 +0000 (GMT) (envelope-from chickyshnoodlesoup@gmail.com) Received: by xproxy.gmail.com with SMTP id i27so7336wxd for ; Wed, 24 Aug 2005 16:46:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=QVXIaxbkbxKaCZ1e5oBwCe5s4on5l+GKQYmh+9HWCNHPF71HDyt8YFo7hb0PANrZEQ+ElTQDHB96QE0HLKvJxOLZVSfipAQNMX6UVJxpcW29yFBo0MYEtfJqPEh3f4AjQwF6jZ0WJsWT90bMyL4n8bCTuNPyb5w2jTYMCkDMVdA= Received: by 10.70.40.11 with SMTP id n11mr1164wxn; Wed, 24 Aug 2005 16:39:29 -0700 (PDT) Received: by 10.70.18.17 with HTTP; Wed, 24 Aug 2005 16:39:29 -0700 (PDT) Message-ID: <8eebe4390508241639229e8f2b@mail.gmail.com> Date: Wed, 24 Aug 2005 16:39:29 -0700 From: Chicky ShnoodleSoup To: questions@freebsd.org In-Reply-To: <8eebe4390508221620393d8f86@mail.gmail.com> Mime-Version: 1.0 References: <8eebe4390508221620393d8f86@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: how to use linux .so in freebsd application 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: Wed, 24 Aug 2005 23:46:24 -0000 I guess I found the answer to my question (thanks Google Groups!): >On Fri, May 27, 2005 at 03:10:13PM -0700, Simeon Nifos wrote: >> Hallo everybody, >> >> 1:) Suppose I have a Linux Library library.so.=3D20 >> And I want to link it with my main.c compiled >> in FreeBSD. How can I achieve that? > >You can't. You may not need to though. What are you really trying to >achieve? :) > >Kris > and that's you can't use a linux library from a freebsd program :( C On 8/22/05, Chicky ShnoodleSoup wrote: > Hi, >=20 > Thanks to the linux binary compatibility > ( http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu-lbc-inst= all.html ), > I am able to run a linux application using the linux dynamic library > on a freebsd machine. >=20 > Now I am trying to get a freebsd application (same application but > compiled on freebsd) using the linux .so (don't have the source to > compile it on freebsd) running on freebsd. >=20 > Is that possible? if yes, how to do it? > How to tell the compiler to use freebsd libraries for the application > and the linux ones for the linux .so? >=20 > Thanks, > C >