From owner-freebsd-hackers Tue Feb 17 23:54:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA10379 for freebsd-hackers-outgoing; Tue, 17 Feb 1998 23:54:43 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from helmholtz.salk.edu (helmholtz.salk.edu [198.202.70.34]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA10342 for ; Tue, 17 Feb 1998 23:54:35 -0800 (PST) (envelope-from bartol@salk.edu) Received: from dale.salk.edu (dale [198.202.70.112]) by helmholtz.salk.edu (8.7.5/8.7.3) with SMTP id XAA14275; Tue, 17 Feb 1998 23:40:20 -0800 (PST) Date: Tue, 17 Feb 1998 23:40:16 -0800 (PST) From: Tom Bartol To: "Daniel O'Connor" cc: hackers@FreeBSD.ORG Subject: Re: Linux compilations.. In-Reply-To: <199802180711.RAA19381@cain.gsoft.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I had some difficulty with compilation under the Linux Development Kit as well which I cleared up as follows: 1) in /compat/linux/usr/lib remove the libc.so symbolic link and replace it with: ln -s ../../lib/libc.so.5.4.23 libc.so 2) in /compat/linux/usr/lib remove the libm.so symbolic link and replace it with: ln -s ../../lib/libm.so.5.0.8 libm.so 3) rebuild /compat/linux/etc/ld.so.cache by executing: /compat/linux/sbin/ldconfig -v For some reason the absolute symbolic links for libc.so and libm.so were causing problems during the link step and the relative symbolic links (which technically point at the exact same files as the absolute symbolic links) worked for me. This may work for you as well. Also, beware that compiling code on NFS mounted filesystems does not work on my system (recent -current) and may not work on yours either. I have no trouble on local filesystems. I have reported these problems before but they have not (yet) been fixed. There are many more important and pressing issues at hand in -current... :-) Hope this works for you, Tom On Wed, 18 Feb 1998, Daniel O'Connor wrote: > Hi, > I am trying to get some Linux code compiled, so I am using the Linux > Development kit, but I can't seem to get some things to compile.. :-/ > I am trying to compile Mesa, which worked fine, but the demos die :( > When I tried to compile a demo I got - > > make[2]: Entering directory `/usr/tmp/quake-dev/Mesa-2.6/demos' > gcc -I../include -O3 -ansi -pedantic -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DSHM -DFX -I/usr/local/glide/include bounce.c -L../lib -lglut -lMesaGLU -lMesaGL -lm -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE -o bounce > /usr/lib/libglide2x.so: undefined reference to `times' > /usr/lib/libglide2x.so: undefined reference to `puts' > /usr/lib/libglide2x.so: undefined reference to `putenv' > /usr/lib/libglide2x.so: undefined reference to `iopl' > /usr/lib/libglide2x.so: undefined reference to `cfmakeraw' > /usr/lib/libglide2x.so: undefined reference to `fgetc' > /usr/lib/libglide2x.so: undefined reference to `clock' > /usr/lib/libglide2x.so: undefined reference to `tcsetattr' > make[2]: *** [bounce] Error 1 > make[2]: Leaving directory `/usr/tmp/quake-dev/Mesa-2.6/demos' > make[1]: *** [linux-glide] Error 2 > make[1]: Leaving directory `/usr/tmp/quake-dev/Mesa-2.6/demos' > make: *** [linux-glide] Error 2 > > But all of these things are in libc.. right? > Am I doing something obviously wrong? I wouldn't normally have to do this, but > 3Dfx in their infinite wisdow deign not to port the Glide stuff to FreeBSD > (yet anyway..) > > --------------------------------------------------------------------- > |Daniel O'Connor software and network engineer for Genesis Software | > |http://www.gsoft.com.au | > |The nice thing about standards is that there are so many of them to| > |choose from. -- Andrew Tanenbaum | > --------------------------------------------------------------------- > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message