From owner-freebsd-hackers Mon May 29 8:50:50 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from aaz.links.ru (aaz.links.ru [193.125.152.37]) by hub.freebsd.org (Postfix) with ESMTP id 3A83437BC8E for ; Mon, 29 May 2000 08:50:39 -0700 (PDT) (envelope-from babolo@links.ru) Received: (from babolo@localhost) by aaz.links.ru (8.9.3/8.9.3) id TAA20044; Mon, 29 May 2000 19:50:28 +0400 (MSD) Message-Id: <200005291550.TAA20044@aaz.links.ru> Subject: Re: Linking Linux object files under FreeBSD In-Reply-To: <28440.959613498@www19.gmx.net> from "d_f0rce@gmx.de" at "May 29, 0 05:18:18 pm" To: d_f0rce@gmx.de Date: Mon, 29 May 2000 19:50:28 +0400 (MSD) Cc: freebsd-hackers@FreeBSD.ORG From: "Aleksandr A.Babaylov" MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG d_f0rce@gmx.de writes: > Hi, > > Can anyone tell me if it is possible to link object > files which were compiled under Linux on a FreeBSD system. > > Background: > I have to extend a programm for which I only got > the object Files. This programm calls functions > I have to write. As I don't have a Linux system > at home I would like to use those object-files > under FreeBSD to test my code. > > Is this possible? It is possible. I chrooted to /compat/linux for this job, but someone write, that using of /compat/linux/bin/bash as shell is enough for this work > When I try to link those object files I always get > the following errors: > > ###################################################### > Linking... > /home/maret/test/main.o: In function `process': > /home/maret/test/main.o(.text+0x24): undefined reference to `stderr' ............... [skip] > /home/maret/test/main.o(.text+0xc72): more undefined references to > `stderr' follow > *** Error code 1 (ignored) > ####################################################################### > > I tried to link libc with "cc -lc ...." but this didn't work too. > > Any ideas? > > Regards, > Alex > > PS: Please answer to me directly as I'm not on the list. -- @BABOLO http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message