Compiling Empire strategy game

tiedeman

Registered
This is a call to all strategy game fans:

I am trying to get the amazing game Empire to compile on OSX, but it keeps crapping out on me.
It currently supports numerous flavors of Unix, including FreeBSD which I naively hoped would be close enough to work, but it poops out halfway through the install on a specific file that relates to system architecture: arch.c.

I know virtually nothing about Unix, but I'm scrambling to learn as Empire is the end-all be-all of strategic warfare simulation bar none. Bringing this game to OSX would be a windfall for the platform as far as I'm concerned.

The source file is here: ftp://www.empire.cx/pub/empire/server/empire4.2.7.tar.gz

The homepage for Empire is: http://www.empire.cx

By the by, this code is for the game server. You can easily play along in the numerous ongoing games by installing one of the various clients...
 

tiedeman

Registered
Here are some specifics:

During the make process, this is run:
cc -c -I/Users/Public/emp4/include -DRel4 -DFBSD -ansi -pedantic arch.c
And this is returned:
arch.c: In function `lwpInitContext':
arch.c:194: request for member `_jb' in something not a structure or union
arch.c:195: request for member `_jb' in something not a structure or union
arch.c:196: request for member `_jb' in something not a structure or union

Arch.c is responsible for threads and accounts for different system types. When run under OSX, it calls the FreeBSD routine which is:

void lwpInitContext(newp, sp)
struct lwpProc *newp;
void *sp;
{
setjmp (newp->context);
newp->context->_jb[2] = (int)sp;
newp->context->_jb[3] = (int)sp;
newp->context->_jb[0] = (int)lwpEntryPoint;
}

So, I see where one of the problems is occuring, but I do not know enough C to fix it.

Any ideas out there?
 
Top