Package: schism
Version: 0.2a-2
Severity: normal
Tags: patch

When building 'schism' on amd64/unstable with gcc-4.0,
I get the following error:

x86_64-linux-gcc  -Wall -g -O2   -o bin2h  bin2h.o util.o  
rm -f ./default-font.h
echo '/* this file should only be included by draw-char.c */'      > 
default-font.h
./bin2h -n font_default_lower     ./default-lower.fnt     >> default-font.h
./bin2h -n font_default_upper_itf ./default-upper-itf.fnt >> default-font.h
./bin2h -n font_default_upper_alt ./default-upper-alt.fnt >> default-font.h
./bin2h -n font_half_width        ./half-width.fnt        >> default-font.h
if x86_64-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_GNU_SOURCE -I./include 
-I./libmodplug -I. -I/usr/include/SDL -D_REENTRANT    -Wall -g -O2 -MT 
draw-char.o -MD -MP -MF ".deps/draw-char.Tpo" -c -o draw-char.o draw-char.c; \
then mv -f ".deps/draw-char.Tpo" ".deps/draw-char.Po"; else rm -f 
".deps/draw-char.Tpo"; exit 1; fi
draw-char.c:63: error: static declaration of 'charcache' follows non-static 
declaration
./include/it.h:163: error: previous declaration of 'charcache' was here
make[4]: *** [draw-char.o] Error 1
make[4]: Leaving directory `/schism-0.2a/src'

With the attached patch 'schism' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/schism-0.2a/src/draw-char.c ./src/draw-char.c
--- ../tmp-orig/schism-0.2a/src/draw-char.c     2005-05-07 05:14:45.000000000 
+0200
+++ ./src/draw-char.c   2005-06-18 19:35:16.000000000 +0200
@@ -60,7 +60,7 @@
 /* globals */
 
 byte *font_data = font_normal; /* this only needs to be global for itf */
-static SDL_Surface **charcache = cache_normal;
+SDL_Surface **charcache = cache_normal;
 
 /* int font_width = 8, font_height = 8; */
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to