Problems compiling 1.10 on IRIX

Questions or HOWTOs about the above? Post 'em here...
Post Reply
User avatar
wingnut
Private First Class
Private First Class
Posts: 18
Joined: Tue Sep 09, 2003 5:59 pm
Location: Detroit, MI
Contact:

Problems compiling 1.10 on IRIX

Post by wingnut »

Im seeing the following error:
Making all in bzfs
source='bzfs.cxx' object='bzfs.o' libtool=no \
depfile='.deps/bzfs.Po' tmpdepfile='.deps/bzfs.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../../include -c -o bzfs.o `test -f 'bzfs.cxx' || echo './'`bzfs.cxx
In file included from /usr/include/sys/bsd_types.h:44,
from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.3/include/sys/types.h:411,
from /usr/include/sys/timespec.h:45,
from /usr/include/sys/ptimers.h:28,
from /usr/include/time.h:74,
from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.3/include/c++/ctime:51,
from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.3/include/c++/cwchar:51,
from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.3/include/c++/bits/fpos.h:45,
from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.3/include/c++/iosfwd:49,
from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.3/include/c++/ios:44,
from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.3/include/c++/istream:44,
from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.3/include/c++/fstream:45,
from bzfs.h:42,
from bzfs.cxx:12:
/usr/include/sys/select.h:71: error: `MaxPlayers' was not declared in this
scope
bzfs.cxx: In function `void serverStop()':
bzfs.cxx:1111: error: 'struct fd_set' has no member named 'fds_bits'
bzfs.cxx:1126: error: 'struct fd_set' has no member named 'fds_bits'
bzfs.cxx: In function `int main(int, char**)':
bzfs.cxx:4493: error: 'struct fd_set' has no member named 'fds_bits'
bzfs.cxx:4496: error: 'struct fd_set' has no member named 'fds_bits'
bzfs.cxx:4500: error: 'struct fd_set' has no member named 'fds_bits'
bzfs.cxx:4501: error: 'struct fd_set' has no member named 'fds_bits'
bzfs.cxx:4506: error: 'struct fd_set' has no member named 'fds_bits'
bzfs.cxx:4886: error: 'struct fd_set' has no member named 'fds_bits'
bzfs.cxx:4892: error: 'struct fd_set' has no member named 'fds_bits'
bzfs.cxx:4896: error: 'struct fd_set' has no member named 'fds_bits'
bzfs.cxx:4931: error: 'struct fd_set' has no member named 'fds_bits'
bzfs.cxx:4935: error: 'struct fd_set' has no member named 'fds_bits'
*** Error code 1 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)


I also see this behaviour, which is a bit strange:

bzflag/bzflag-1.9.10.20031209(25)>make IRIX
don't know how to make IRIX (bu42).
bzflag/bzflag-1.9.10.20031209(26)>make irix
don't know how to make irix (bu42).

Any suggestions?
User avatar
learner
General
General
Posts: 270
Joined: Sun May 11, 2003 2:06 am
Location: Maryland
Contact:

old documentation

Post by learner »

You're reading old documentation somewhere on how to build. That doesn't mean that it'll work on IRIX if you did do the right steps anyways, but the "make irix" hasn't been used for over a year now. Now it's all done using the autotools.

You'll run ./autogen.sh, ./configure, and make and the build should begin. I've not ever built on IRIX using gcc, so I won't be surprised if something creeps up. I always use MIPSpro myself when I'm making an IRIX release. That doesn't mean it "shouldn't" work, though.

If you are merely wanting a 1.10.6 release, I completed the IRIX build a few days back. The binary is posted on the SourceForge files section now as a tar.gz for n32. I'm still needing to make an o32 test release that will happen "real soon now".

If you do just want to build for the sake of building (and we appreciate you doing that), then I recommend checking out the source code from CVS. There were several IRIX fixes that I had to make after 1.10.6 source distribution was released. To checkout from CVS, you'll do something like:

Code: Select all

cvs -d :pserver:anonymous@anon.sf.net:/cvsroot/bzflag login
(no password)
cvs -d :pserver:anonymous@anon.sf.net:/cvsroot/bzflag checkout -r v1_10branch bzflag
cd bzflag
./autogen.sh
./configure
make
That "should" do the trick. Best of luck, and feel free to follow up with any issues you run into. If you'd like to interactively work through the problem, there is usually someone willing to help on IRC in #bzflag or irc.freenode.net.

Cheers!
Post Reply