Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] (PR#8691) CVS SDL build fails due to multiple declarations
Home

[Freeciv-Dev] (PR#8691) CVS SDL build fails due to multiple declarations

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#8691) CVS SDL build fails due to multiple declarations of crop_sprite
From: "Brett Albertson" <brett.albertson@xxxxxxxxxxxx>
Date: Thu, 6 May 2004 13:03:11 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8691 >

I didn't see an open ticket for this one.  When trying to build the SDL
client in the current CVS source, it fails due to the mulitple
declaration of crop_sprite while compiling graphics.c.

if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I./../include
-I../../utility -I../../common -I../../common/aicore -I../../intl
-I./../agents -I/usr/local/include/SDL -D_REENTRANT
-I/usr/local/include/freetype2 -I/usr/local/include    -O3
-fomit-frame-pointer -Wall -Wpointer-arith -Wcast-align
-Wmissing-prototypes -Wmissing-declarations -I/usr/local/include/SDL
-D_REENTRANT -MT graphics.o -MD -MP -MF ".deps/graphics.Tpo" -c -o
graphics.o graphics.c; \
then mv -f ".deps/graphics.Tpo" ".deps/graphics.Po"; else rm -f
".deps/graphics.Tpo"; exit 1; fi
graphics.c: In function `getpixel':
graphics.c:353: warning: cast increases required alignment of target type
graphics.c:368: warning: cast increases required alignment of target type
graphics.c: In function `my_memset16':
graphics.c:425: warning: cast increases required alignment of target type
graphics.c:425: warning: cast increases required alignment of target type
graphics.c: In function `put_vline':
graphics.c:538: warning: cast increases required alignment of target type
graphics.c:538: warning: cast increases required alignment of target type
graphics.c:538: warning: cast increases required alignment of target type
graphics.c:538: warning: cast increases required alignment of target type
graphics.c:570: warning: cast increases required alignment of target type
graphics.c:570: warning: cast increases required alignment of target type
graphics.c:570: warning: cast increases required alignment of target type
graphics.c:570: warning: cast increases required alignment of target type
graphics.c: In function `put_line':
graphics.c:725: warning: cast increases required alignment of target type
graphics.c:754: warning: cast increases required alignment of target type
graphics.c: In function `__FillRectAlpha565':
graphics.c:2458: warning: cast increases required alignment of target type
graphics.c:2459: warning: cast increases required alignment of target type
graphics.c:2509: warning: cast increases required alignment of target type
graphics.c:2510: warning: cast increases required alignment of target type
graphics.c: In function `__FillRectAlpha555':
graphics.c:2574: warning: cast increases required alignment of target type
graphics.c:2575: warning: cast increases required alignment of target type
graphics.c:2624: warning: cast increases required alignment of target type
graphics.c:2625: warning: cast increases required alignment of target type
graphics.c: In function `__FillRectAlpha888_24bit':
graphics.c:2981: warning: cast increases required alignment of target type
graphics.c:3028: warning: cast increases required alignment of target type
graphics.c: In function `get_smaller_surface_rect':
graphics.c:3279: warning: cast increases required alignment of target type
graphics.c:3408: warning: cast increases required alignment of target type
graphics.c: At top level:
graphics.c:3620: error: conflicting types for 'crop_sprite'
./../include/graphics_g.h:34: error: previous declaration of
'crop_sprite' was here
graphics.c:3620: error: conflicting types for 'crop_sprite'
./../include/graphics_g.h:34: error: previous declaration of
'crop_sprite' was here
make[4]: *** [graphics.o] Error 1
make[4]: Leaving directory `/var/tmp/freeciv/client/gui-sdl'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/freeciv/client/gui-sdl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/freeciv/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/freeciv'
make: *** [all] Error 2


-- 
Brett Albertson
brett.albertson@xxxxxxxxxxxx


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#8691) CVS SDL build fails due to multiple declarations of crop_sprite, Brett Albertson <=