[EMAIL PROTECTED] 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to