Discussion:
Need help compiling AQ2
m0gely
2005-05-07 01:46:09 UTC
Permalink
I downloaded the source for Action Quake 2 so I could but am unable to
compile it. I've tried make and gmake but in either case it looks like
something's not happy with 'q_shared.c'. Any suggestions?

<snip>
gcc -Dstricmp=strcasecmp -g -fPIC -o p_view.o -c p_view.c
gcc -Dstricmp=strcasecmp -g -fPIC -o p_weapon.o -c p_weapon.c
gcc -Dstricmp=strcasecmp -g -fPIC -o q_shared.o -c q_shared.c
q_shared.c: In function `__declspec':
q_shared.c:401: syntax error before `{'
q_shared.c:403: storage class specified for parameter `Ljmptab'
q_shared.c:405: syntax error before `__asm'
q_shared.c:643: syntax error before `for'
q_shared.c:745: syntax error before `{'
q_shared.c:749: syntax error before `length'
q_shared.c:825: syntax error before `while'
q_shared.c:927: syntax error before `{'
q_shared.c:972: syntax error before `}'
q_shared.c:1035: storage class specified for parameter `string'
q_shared.c:1037: syntax error before `('
q_shared.c:1055: syntax error before `{'
q_shared.c:1060: syntax error before `data'
q_shared.c:1145: syntax error before `{'
q_shared.c:1212: syntax error before `('
q_shared.c:1239: storage class specified for parameter `value'
q_shared.c:1241: storage class specified for parameter `valueindex'
q_shared.c:1244: syntax error before `valueindex'
q_shared.c:1282: conflicting types for `value'
q_shared.c:1239: previous declaration of `value'
q_shared.c:1283: redeclaration of `o'
q_shared.c:1242: `o' previously declared here
q_shared.c:1285: syntax error before `if'
q_shared.c:1349: parameter `maxsize' is initialized
q_shared.c:1351: syntax error before `if'
gmake: *** [q_shared.o] Error 1
--
- m0gely
http://quake2.telestream.com/
Q2 | Q3A | Counter-strike
Nick Warne
2005-05-07 08:52:44 UTC
Permalink
Post by m0gely
I downloaded the source for Action Quake 2 so I could but am unable to
compile it. I've tried make and gmake but in either case it looks like
something's not happy with 'q_shared.c'. Any suggestions?
Where did you get the source from? I just tried to download it to see, and:

a) There is no source code for the game

b) The server code is available, but the web server is broke and shows the
perl code as text, so there is no links.

Location of source code?

Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
qudos qudos
2005-05-07 09:41:05 UTC
Permalink
Hi,

I have the sources and also the data, the sources compiles fine for me.

Right now transfering to my site, ~10 minutes and can be it downloaded.

Keep an eye htttp://qudos.quakedev.com/linux/quake2/mods/

<ot>
Someone want to test my experiment? grab the Lights mod :)
</ot>

Cheers
Post by Nick Warne
Post by m0gely
I downloaded the source for Action Quake 2 so I could but am unable to
compile it. I've tried make and gmake but in either case it looks like
something's not happy with 'q_shared.c'. Any suggestions?
a) There is no source code for the game
b) The server code is available, but the web server is broke and shows the
perl code as text, so there is no links.
Location of source code?
Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
m0gely
2005-05-15 07:00:14 UTC
Permalink
Post by qudos qudos
Hi,
I have the sources and also the data, the sources compiles fine for me.
How did you compile? I tried your file and it's the same as the one I
had. The entire output is here. Again, this is under FreeBSD 4.11 with
RH9 Linux compat installed:

%gmake
gcc -Dstricmp=strcasecmp -g -fPIC -o g_ai.o -c g_ai.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_cmds.o -c g_cmds.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_combat.o -c g_combat.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_func.o -c g_func.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_items.o -c g_items.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_main.o -c g_main.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_misc.o -c g_misc.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_monster.o -c g_monster.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_phys.o -c g_phys.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_save.o -c g_save.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_spawn.o -c g_spawn.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_svcmds.o -c g_svcmds.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_target.o -c g_target.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_trigger.o -c g_trigger.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_turret.o -c g_turret.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_utils.o -c g_utils.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_weapon.o -c g_weapon.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_chase.o -c g_chase.c
gcc -Dstricmp=strcasecmp -g -fPIC -o p_client.o -c p_client.c
gcc -Dstricmp=strcasecmp -g -fPIC -o p_hud.o -c p_hud.c
gcc -Dstricmp=strcasecmp -g -fPIC -o p_trail.o -c p_trail.c
gcc -Dstricmp=strcasecmp -g -fPIC -o p_view.o -c p_view.c
gcc -Dstricmp=strcasecmp -g -fPIC -o p_weapon.o -c p_weapon.c
gcc -Dstricmp=strcasecmp -g -fPIC -o q_shared.o -c q_shared.c
q_shared.c: In function `__declspec':
q_shared.c:401: syntax error before `{'
q_shared.c:403: storage class specified for parameter `Ljmptab'
q_shared.c:405: syntax error before `__asm'
q_shared.c:643: syntax error before `for'
q_shared.c:745: syntax error before `{'
q_shared.c:749: syntax error before `length'
q_shared.c:825: syntax error before `while'
q_shared.c:927: syntax error before `{'
q_shared.c:972: syntax error before `}'
q_shared.c:1035: storage class specified for parameter `string'
q_shared.c:1037: syntax error before `('
q_shared.c:1055: syntax error before `{'
q_shared.c:1060: syntax error before `data'
q_shared.c:1145: syntax error before `{'
q_shared.c:1212: syntax error before `('
q_shared.c:1239: storage class specified for parameter `value'
q_shared.c:1241: storage class specified for parameter `valueindex'
q_shared.c:1244: syntax error before `valueindex'
q_shared.c:1282: conflicting types for `value'
q_shared.c:1239: previous declaration of `value'
q_shared.c:1283: redeclaration of `o'
q_shared.c:1242: `o' previously declared here
q_shared.c:1285: syntax error before `if'
q_shared.c:1349: parameter `maxsize' is initialized
q_shared.c:1351: syntax error before `if'
gmake: *** [q_shared.o] Error 1
--
- m0gely
http://quake2.telestream.com/
Q2 | Q3A | Counter-strike
Nick Warne
2005-05-15 07:24:29 UTC
Permalink
Post by m0gely
Post by qudos qudos
Hi,
I have the sources and also the data, the sources compiles fine for me.
How did you compile? I tried your file and it's the same as the one I
had. The entire output is here. Again, this is under FreeBSD 4.11 with
This is a FreeBSD problem.

To fix, in q_shared.c line 330:

#if !id386 || defined __linux__

change to this:

#if !id386 || defined __linux__ || defined __FreeBSD__

It all builds OK then on FreeBSD.

Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
x0563511
2005-05-15 14:12:39 UTC
Permalink
That change should be updated into CVS. It (shouldn't) hurt anything at
all, and only helps those running FreeBSD. What about the other BSDs
though? I hardly know any code, and what I know is C++ anyways.
Post by Nick Warne
Post by m0gely
Post by qudos qudos
Hi,
I have the sources and also the data, the sources compiles fine for me.
How did you compile? I tried your file and it's the same as the one I
had. The entire output is here. Again, this is under FreeBSD 4.11 with
This is a FreeBSD problem.
#if !id386 || defined __linux__
#if !id386 || defined __linux__ || defined __FreeBSD__
It all builds OK then on FreeBSD.
Nick
Nick Warne
2005-05-15 14:20:38 UTC
Permalink
Post by x0563511
That change should be updated into CVS. It (shouldn't) hurt anything at
all, and only helps those running FreeBSD. What about the other BSDs
though? I hardly know any code, and what I know is C++ anyways.
I don't think it will, but the *other* BSD's are security conscious types, and
therefore you will presume they would never run a Quake2 client/server on
them anyway (I hope).

Add it in... this is a gotcha for FreeBSD that needs sorting.

Nick
Post by x0563511
Post by Nick Warne
This is a FreeBSD problem.
#if !id386 || defined __linux__
#if !id386 || defined __linux__ || defined __FreeBSD__
It all builds OK then on FreeBSD.
Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
Brendan Burns
2005-05-15 17:02:34 UTC
Permalink
Thanks,
I'll add this into CVS...

--brendan
Post by Nick Warne
Post by x0563511
That change should be updated into CVS. It (shouldn't) hurt
anything at
all, and only helps those running FreeBSD. What about the other BSDs
though? I hardly know any code, and what I know is C++ anyways.
I don't think it will, but the *other* BSD's are security conscious types, and
therefore you will presume they would never run a Quake2 client/
server on
them anyway (I hope).
Add it in... this is a gotcha for FreeBSD that needs sorting.
Nick
Post by x0563511
Post by Nick Warne
This is a FreeBSD problem.
#if !id386 || defined __linux__
#if !id386 || defined __linux__ || defined __FreeBSD__
It all builds OK then on FreeBSD.
Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
m0gely
2005-05-15 17:13:32 UTC
Permalink
Post by Nick Warne
#if !id386 || defined __linux__
#if !id386 || defined __linux__ || defined __FreeBSD__
It all builds OK then on FreeBSD.
Thanks Nick! This list is very helpful!
--
- m0gely
http://quake2.telestream.com/
Q2 | Q3A | Counter-strike
Nick Warne
2005-05-15 17:18:41 UTC
Permalink
Post by m0gely
Thanks Nick! This list is very helpful!
Pretty pointless if it wasn't ;-)

Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
m0gely
2005-05-07 21:42:04 UTC
Permalink
Post by Nick Warne
a) There is no source code for the game
b) The server code is available, but the web server is broke and shows the
perl code as text, so there is no links.
Location of source code?
I googled for the file names listed on the page. I downloaded from two
seprate sites and they had the same md5. One link was listed on a File
planet like site, the other was a link in the quakedev forums. I forgot
to mention I'm building this on FreeBSD.

Sheesh. My server just took a complete dive. I was going to compile
the files from qudos site just to see if I got the same error. I'm
pretty sure the source files I got are the right one's though. This
will have to wait a few days.
--
- m0gely
http://quake2.telestream.com/
Q2 | Q3A | Counter-strike
Loading...