From owner-freebsd-questions@FreeBSD.ORG Tue Jun 21 16:55:22 2005 Return-Path: X-Original-To: freebsd-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 8931316A41C for ; Tue, 21 Jun 2005 16:55:22 +0000 (GMT) (envelope-from alejandro@varnet.biz) Received: from relay.pair.com (relay00.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 2765143D53 for ; Tue, 21 Jun 2005 16:55:19 +0000 (GMT) (envelope-from alejandro@varnet.biz) Received: (qmail 90169 invoked from network); 21 Jun 2005 16:55:19 -0000 Received: from unknown (HELO phobos.mars.bsd) (unknown) by unknown with SMTP; 21 Jun 2005 16:55:19 -0000 X-pair-Authenticated: 200.115.214.28 Date: Tue, 21 Jun 2005 13:57:02 -0300 From: Alejandro Pulver To: "Chad Leigh -- Shire.Net LLC" Message-ID: <20050621135702.4e7537b3@phobos.mars.bsd> In-Reply-To: <7D730E14-8977-4B84-A272-72E77B187677@shire.net> References: <20050620121513.72790e30@phobos.mars.bsd> <7D730E14-8977-4B84-A272-72E77B187677@shire.net> X-Mailer: Sylpheed-Claws 1.0.4 (GTK+ 1.2.10; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions Subject: Re: Generating Linux binaries under FreeBSD 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: Tue, 21 Jun 2005 16:55:22 -0000 On Mon, 20 Jun 2005 09:27:10 -0600 "Chad Leigh -- Shire.Net LLC" wrote: > > On Jun 20, 2005, at 9:15 AM, Alejandro Pulver wrote: > > > Hello, > > > > Is there a way to compile a C program, but generating a Linux binary > > instead of a FreeBSD one? > > I don't know if this works but assuming you have the linux > compatibility layer running > > % chroot /compat/linux/ /bin/bash > % gcc > > That should use the linux gcc > > You may not need to do the chroot first. Just run a linux shell > > so > > % /compat/linux/bin/bash > bash-2.0x# gcc > > may also get you there > > I've done similar things before > > Try it out > Chad > Hello, Thank you for your reply. It is what I expected (to use the Linux emulation to run the compiler). But is there a FreeBSD port of it (I do not think that)? Can I use the Linux packaging tools (for example rpm with linux-base-rh*, and dpkg with linux-base-debian)? How? Thanks and Best Regards, Ale