Date: Mon, 29 May 2000 17:18:18 +0200 (MEST) From: d_f0rce@gmx.de To: freebsd-hackers@freebsd.org Subject: Linking Linux object files under FreeBSD Message-ID: <28440.959613498@www19.gmx.net>
next in thread | raw e-mail | index | archive | help
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? 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' /home/maret/test/main.o(.text+0x39): undefined reference to `stderr' /home/maret/test/main.o(.text+0x8e): undefined reference to `stderr' /home/maret/test/main.o(.text+0xaa): undefined reference to `stderr' /home/maret/test/main.o(.text+0xee): undefined reference to `stderr' /home/maret/test/main.o(.text+0x10a): more undefined references to `stderr' follow /home/maret/test/main.o: In function `main': /home/maret/test/main.o(.text+0x3d7): undefined reference to `error' /home/maret/test/main.o(.text+0x427): undefined reference to `error' /home/maret/test/main.o(.text+0x458): undefined reference to `stderr' /home/maret/test/main.o(.text+0x466): undefined reference to `stderr' /home/maret/test/main.o(.text+0x488): undefined reference to `stdin' /home/maret/test/main.o(.text+0x4c2): undefined reference to `stderr' /home/maret/test/main.o(.text+0x4d7): undefined reference to `stderr' /home/maret/test/main.o(.text+0x55b): undefined reference to `stderr' /home/maret/test/main.o(.text+0x57b): undefined reference to `stderr' /home/maret/test/main.o(.text+0x589): undefined reference to `stderr' /home/maret/test/main.o(.text+0x597): undefined reference to `stdin' /home/maret/test/main.o(.text+0x5dd): undefined reference to `stderr' /home/maret/test/main.o(.text+0x766): undefined reference to `stderr' /home/maret/test/main.o(.text+0x929): undefined reference to `stderr' /home/maret/test/main.o: In function `usage': /home/maret/test/main.o(.text+0x9c5): undefined reference to `stderr' /home/maret/test/main.o: In function `help_on_commands': /home/maret/test/main.o(.text+0xb7f): undefined reference to `stderr' /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. -- Sent through GMX FreeMail - http://www.gmx.net 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?28440.959613498>