Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Feb 1998 23:40:16 -0800 (PST)
From:      Tom Bartol <bartol@salk.edu>
To:        "Daniel O'Connor" <doconnor@gsoft.com.au>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Linux compilations..
Message-ID:  <Pine.BSF.3.96.980217232158.28655A-100000@dale.salk.edu>
In-Reply-To: <199802180711.RAA19381@cain.gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980217232158.28655A-100000>