[quake2] Bugs in Quake 2 Mandriva 2006

O.Sezer sezeroz at gmail.com
Mon Aug 7 15:44:30 EDT 2006


Nick Warne wrote:
> On Monday 07 August 2006 20:26, O.Sezer wrote:
> 
>>Nick Warne wrote:
>>
>>>On Monday 07 August 2006 20:07, O.Sezer wrote:
>>>
>>>>Evan Vittitow wrote:
>>>>
>>>>>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.

> 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.

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

O.S



More information about the quake2 mailing list