From owner-freebsd-emulation Thu Jun 10 10: 5:24 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from orbit.flnet.com (orbit.flnet.com [205.240.232.32]) by hub.freebsd.org (Postfix) with ESMTP id CD53B14D6B for ; Thu, 10 Jun 1999 10:05:22 -0700 (PDT) (envelope-from henrich@orbit.flnet.com) Received: (from henrich@localhost) by orbit.flnet.com (8.8.5/8.8.4) id NAA10560; Thu, 10 Jun 1999 13:05:14 -0400 (EDT) Date: Thu, 10 Jun 1999 10:05:14 -0700 From: Charles Henrich To: Tom Bartol Cc: Marcel Moolenaar , emulation@FreeBSD.ORG Subject: Re: Linux Development environtment Message-ID: <19990610100514.C9686@orbit.flnet.com> References: <19990610091221.B8851@orbit.flnet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from Tom Bartol on Thu, Jun 10, 1999 at 10:01:35AM -0700 X-Operating-System: FreeBSD 2.2-BETA_A X-PGP-Fingerprint: 1024/F7 FD C7 3A F5 6A 23 BF 76 C4 B8 C9 6E 41 A4 4F Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On the subject of Re: Linux Development environtment, Tom Bartol stated: > > Hmmm... could you be more explicit about exactly what you did to get this > working. I've got linux_lib-2.6 and linux_devel-0.2 on a 3.2-STABLE > system. In the link step after compiling I get things like: > > /usr/lib/crt1.o: In function `_start': > /usr/lib/crt1.o(.text+0x35): undefined reference to `__fpu_control' > /usr/lib/crt1.o(.text+0x3b): undefined reference to `__setfpucw' > /usr/lib/crt1.o(.text+0x43): undefined reference to `__libc_init' > > and > > /usr/lib/libc.so: undefined reference to `__progname' > > I get this from a freebsd /bin/sh shell or a /compat/linux/bin/sh shell. > > Any assistance would be most appreciated. I deleted the links /compat/linux/usr/lib/libc.so and /compat/linux/usr/lib/libm.so and relinked them as ln -s ../../lib/libc.so.5.4.23 and libm.so.5.0.8 I ran in a FreeBSD shell with /compat/linux/bin and /compat/linux/usr/bin in my path first. I had no LD_LIBRARY_PATHs set. And it worked like a charm to compile all sorts of nasty linux stuff (compiledl inuex to link with linux commercial libraries). Charles Henrich Manex Visual Effects henrich@flnet.com http://orbit.flnet.com/~henrich To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message