Discussion:
Bugs in Quake 2 Mandriva 2006
Evan Vittitow
2006-08-07 11:54:40 UTC
Permalink
I have a build error that effects the rouge and xatrix addons.

xatrixsrc320/g_items.c:29: error: static declaration of
'jacket_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:449: error: previous declaration of
'jacket_armor_index' was here
xatrixsrc320/g_items.c:30: error: static declaration of
'combat_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:450: error: previous declaration of
'combat_armor_index' was here
xatrixsrc320/g_items.c:31: error: static declaration of
'body_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:451: error: previous declaration of
'body_armor_index' was here
make[1]: *** [releasei386/xatrix/g_items.o] Error 1
O.Sezer
2006-08-07 19:07:39 UTC
Permalink
Post by Evan Vittitow
I have a build error that effects the rouge and xatrix addons.
xatrixsrc320/g_items.c:29: error: static declaration of
'jacket_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:449: error: previous declaration of
'jacket_armor_index' was here
xatrixsrc320/g_items.c:30: error: static declaration of
'combat_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:450: error: previous declaration of
'combat_armor_index' was here
xatrixsrc320/g_items.c:31: error: static declaration of
'body_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:451: error: previous declaration of
'body_armor_index' was here
make[1]: *** [releasei386/xatrix/g_items.o] Error 1
I use the attached patches when building
the mission pack game libraries. I hope
they'll be useful for you.

O.S
-------------- next part --------------
A non-text attachment was scrubbed...
Name: q2mp_patches.tar.bz2
Type: application/binary
Size: 47161 bytes
Desc: not available
URL: <http://icculus.org/pipermail/quake2/attachments/20060807/d2dc99ca/attachment.bin>
Nick Warne
2006-08-07 19:18:06 UTC
Permalink
Post by O.Sezer
Post by Evan Vittitow
I have a build error that effects the rouge and xatrix addons.
xatrixsrc320/g_items.c:29: error: static declaration of
'jacket_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:449: error: previous declaration of
'jacket_armor_index' was here
xatrixsrc320/g_items.c:30: error: static declaration of
'combat_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:450: error: previous declaration of
'combat_armor_index' was here
xatrixsrc320/g_items.c:31: error: static declaration of
'body_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:451: error: previous declaration of
'body_armor_index' was here
make[1]: *** [releasei386/xatrix/g_items.o] Error 1
I use the attached patches when building
the mission pack game libraries. I hope
they'll be useful for you.
Those patches do not address this - this is a compiler build issue.

What GCC version are you using Evan?
Post by O.Sezer
gcc -v
Nick
--
Every program has two purposes:
one for which it was written and another for which it wasn't.
O.Sezer
2006-08-07 19:26:49 UTC
Permalink
Post by Nick Warne
Post by O.Sezer
Post by Evan Vittitow
I have a build error that effects the rouge and xatrix addons.
xatrixsrc320/g_items.c:29: error: static declaration of
'jacket_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:449: error: previous declaration of
'jacket_armor_index' was here
xatrixsrc320/g_items.c:30: error: static declaration of
'combat_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:450: error: previous declaration of
'combat_armor_index' was here
xatrixsrc320/g_items.c:31: error: static declaration of
'body_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:451: error: previous declaration of
'body_armor_index' was here
make[1]: *** [releasei386/xatrix/g_items.o] Error 1
I use the attached patches when building
the mission pack game libraries. I hope
they'll be useful for you.
Those patches do not address this - this is a compiler build issue.
See xatrix-1-other1.diff : It removes those externs
from g_local.h which should cure that particular
issue. (Am I missing something ?)
Post by Nick Warne
What GCC version are you using Evan?
Post by O.Sezer
gcc -v
Nick
O.S
Evan Vittitow
2006-08-07 19:34:19 UTC
Permalink
Quake 2 Issues Resolved, thank you. Do you know of any sources where I
could get Source Code for Quake 3. I awnt to package it for Mandriva.
Nick Warne
2006-08-07 19:40:09 UTC
Permalink
Post by Evan Vittitow
Quake 2 Issues Resolved, thank you. Do you know of any sources where I
could get Source Code for Quake 3. I awnt to package it for Mandriva.
http://www.idsoftware.com/business/techdownloads/

Quake3 is a heady build - a lot of stuff to resolve/fix. I got it to work
fine, but plaus don't ask me - I couldn't remember now what I done :-)

Nick
--
Every program has two purposes:
one for which it was written and another for which it wasn't.
O.Sezer
2006-08-07 19:48:24 UTC
Permalink
Post by Nick Warne
Post by Evan Vittitow
Quake 2 Issues Resolved, thank you. Do you know of any sources where I
could get Source Code for Quake 3. I awnt to package it for Mandriva.
http://www.idsoftware.com/business/techdownloads/
Quake3 is a heady build - a lot of stuff to resolve/fix. I got it to work
fine, but plaus don't ask me - I couldn't remember now what I done :-)
Nick
http://icculus.org/quake3/
Nick Warne
2006-08-07 19:45:30 UTC
Permalink
Post by Nick Warne
Post by Evan Vittitow
Quake 2 Issues Resolved, thank you. Do you know of any sources where I
could get Source Code for Quake 3. I awnt to package it for Mandriva.
http://www.idsoftware.com/business/techdownloads/
Quake3 is a heady build - a lot of stuff to resolve/fix. I got it to work
fine, but plaus don't ask me - I couldn't remember now what I done :-)
Or perhaps:

Quake 3 1.32 Source Code

http://www.fileshack.com/file.x?fid=7547

Nick
--
Every program has two purposes:
one for which it was written and another for which it wasn't.
Nick Warne
2006-08-07 19:34:22 UTC
Permalink
Post by O.Sezer
Post by Nick Warne
Post by O.Sezer
Post by Evan Vittitow
I have a build error that effects the rouge and xatrix addons.
xatrixsrc320/g_items.c:29: error: static declaration of
'jacket_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:449: error: previous declaration of
'jacket_armor_index' was here
xatrixsrc320/g_items.c:30: error: static declaration of
'combat_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:450: error: previous declaration of
'combat_armor_index' was here
xatrixsrc320/g_items.c:31: error: static declaration of
'body_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:451: error: previous declaration of
'body_armor_index' was here
make[1]: *** [releasei386/xatrix/g_items.o] Error 1
I use the attached patches when building
the mission pack game libraries. I hope
they'll be useful for you.
Those patches do not address this - this is a compiler build issue.
See xatrix-1-other1.diff : It removes those externs
from g_local.h which should cure that particular
issue. (Am I missing something ?)
I see - sorry I missed that one (really good intuitive patch names ;-) ). The
reason I ask is I run a Xatrix server using my own cut down code, and have
never had problems with that type of build error at all over last 5 years -
ever!

So I suspect a GCC change version that has turned a warning into an error.

http://sourceforge.net/projects/quake2plus/

Nick
--
Every program has two purposes:
one for which it was written and another for which it wasn't.
O.Sezer
2006-08-07 19:44:30 UTC
Permalink
Post by Nick Warne
Post by O.Sezer
Post by Nick Warne
Post by O.Sezer
Post by Evan Vittitow
I have a build error that effects the rouge and xatrix addons.
xatrixsrc320/g_items.c:29: error: static declaration of
'jacket_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:449: error: previous declaration of
'jacket_armor_index' was here
xatrixsrc320/g_items.c:30: error: static declaration of
'combat_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:450: error: previous declaration of
'combat_armor_index' was here
xatrixsrc320/g_items.c:31: error: static declaration of
'body_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:451: error: previous declaration of
'body_armor_index' was here
make[1]: *** [releasei386/xatrix/g_items.o] Error 1
I use the attached patches when building
the mission pack game libraries. I hope
they'll be useful for you.
Those patches do not address this - this is a compiler build issue.
See xatrix-1-other1.diff : It removes those externs
from g_local.h which should cure that particular
issue. (Am I missing something ?)
I see - sorry I missed that one (really good intuitive patch names ;-) ). The
Heh ;)
I did those patches for myself long time
ago without paying much attention to the
filenames.
Post by Nick Warne
reason I ask is I run a Xatrix server using my own cut down code, and have
never had problems with that type of build error at all over last 5 years -
ever!
So I suspect a GCC change version that has turned a warning into an error.
IIRC, a var declared extern in a header and
as static elsewhere is an error since gcc-3.4.
That mandriva version should be using a gcc-4
version.
Post by Nick Warne
http://sourceforge.net/projects/quake2plus/
Nick
O.S
Andrew Greig
2006-08-08 03:53:39 UTC
Permalink
Post by O.Sezer
Post by Evan Vittitow
I have a build error that effects the rouge and xatrix addons.
xatrixsrc320/g_items.c:29: error: static declaration of
'jacket_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:449: error: previous declaration of
'jacket_armor_index' was here
xatrixsrc320/g_items.c:30: error: static declaration of
'combat_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:450: error: previous declaration of
'combat_armor_index' was here
xatrixsrc320/g_items.c:31: error: static declaration of
'body_armor_index' follows non-static declaration
xatrixsrc320/g_local.h:451: error: previous declaration of
'body_armor_index' was here
make[1]: *** [releasei386/xatrix/g_items.o] Error 1
I use the attached patches when building
the mission pack game libraries. I hope
they'll be useful for you.
O.S
I had the same errors when compiling with GCC 4.1, and fixed them a
similar way to O.S. Is the source code for the mission packs under
the same licence (GPL?) as the rest of the Quake2 source? If so, can
they be imported into the icculus.org repository and patches such as
these included to improve the code?

Andrew Greig

Loading...