Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2001 13:04:28 -0800 (PST)
From:      The Utz Family <utz@serv.net>
To:        Michael Carlson <mcarlson@Legato.COM>
Cc:        freebsd-multimedia@FreeBSD.ORG
Subject:   Re: Glide3 ported to freebsd?
Message-ID:  <Pine.BSF.4.02.10101311243440.38078-100000@itchy.serv.net>
In-Reply-To: <01e201c08b7f$67a8d840$50294589@legato.com>

next in thread | previous in thread | raw e-mail | index | archive | help
the HZ error is one that comes up in trying to build linux specific code
on FreeBSD.

i cant recall what i did to fix it when i have bumped into it ( and i have
bumped into it 2 or 3 times ), but the 'fixes' have been really hacky.
usually involving editing the code every where the error shows up.

so in this case the spot in fxos.c needs to be altered. grep for HZ in the
freebsd include directoies and replace HZ in fxos.c with whatever you find
after the '#define HZ' in whatever header it's in.

#define HZ  <stuff here !!!>


i'd love to know a clean, singlepoint solution . i suspect that it has to
do with #ifdef'ing in the correct header, ie systime.h or time.h, but i
really cant recall.

On Wed, 31 Jan 2001, Michael Carlson wrote:

> I have a voodoo 5 and I was wondering if there was a port in the making of Glide3? I have been trying for the past wekk or so to get it to compile on freebsd 4.2, but there seems to be an error in the fxos.c:
> 
> icarus# ./build.3dfx
> 
> Filesystem 1K-blocks Used Avail Capacity Mounted on
> 
> /dev/ad0s1a 248047 99760 128444 44% /
> 
> Making all in swlibs
> 
> gmake[1]: Entering directory `/root/Glide3/swlibs'
> 
> Making all in fxmisc
> 
> gmake[2]: Entering directory `/root/Glide3/swlibs/fxmisc'
> 
> /bin/sh ../../libtool --mode=compile gcc -DX11 -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -ffast-math -DBIG_OPT -
> 
> Wall -I../../h5/glide3/src -I../../h5/incsrc -I../../h5/incsrc -I../../h5/minihwc -I. -I../../swlibs/fxmemmap -I../../
> 
> swlibs/fxmisc -I../../swlibs/newpci/pcilib -I../../swlibs/texus2/lib -O6 -m486 -c fxos.c
> 
> rm -f .libs/fxos.lo
> 
> gcc -DX11 -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -ffast-math -DBIG_OPT -Wall -I../../h5/glide3/src -I../../h5
> 
> /incsrc -I../../h5/incsrc -I../../h5/minihwc -I. -I../../swlibs/fxmemmap -I../../swlibs/fxmisc -I../../swlibs/newpci/pcilib -I../../
> 
> swlibs/texus2/lib -O6 -m486 -Wp,-MD,.deps/fxos.pp -c fxos.c -fPIC -DPIC -o .libs/fxos.lo
> 
> fxos.c: In function `fxTime':
> 
> fxos.c:72: `HZ' undeclared (first use in this function)
> 
> fxos.c:72: (Each undeclared identifier is reported only once
> 
fxos.c:72: for each function it appears in.)
> 
> fxos.c:74: warning: control reaches end of non-void function
> 
> gmake[2]: *** [fxos.lo] Error 1
> 
> gmake[2]: Leaving directory `/root/Glide3/swlibs/fxmisc'
> 
> gmake[1]: *** [all-recursive] Error 1
> 
> gmake[1]: Leaving directory `/root/Glide3/swlibs'
> 
> gmake: *** [all-recursive] Error 1
> 
> Filesystem 1K-blocks Used Avail Capacity Mounted on
> 
> /dev/ad0s1a 248047 99760 128444 44% /
> 
> Time Elapsed: 0 Years, 0 Days, 0 Hours, 0 Minutes, 1 Seconds
> 
> Disk usage: 0.0 Mb
> 
> I am not much of a programmer or scripter so I was wondering if anyone had a bit more info on this, I've read all I can find on glide.sourceforge.net but I have progressed little. 
> 
> Thanks,
> 
> Mike Carlson
> 
> mcarlson@m87-blackhole.org
> 
> 
> 
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" 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.4.02.10101311243440.38078-100000>