Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 May 2000 19:50:28 +0400 (MSD)
From:      "Aleksandr A.Babaylov" <babolo@links.ru>
To:        d_f0rce@gmx.de
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Linking Linux object files under FreeBSD
Message-ID:  <200005291550.TAA20044@aaz.links.ru>
In-Reply-To: <28440.959613498@www19.gmx.net> from "d_f0rce@gmx.de" at "May 29, 0 05:18:18 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005291550.TAA20044>