<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40661 >

Hi,

I'm compiling freeciv-2.1.8 with sun cc, and I get following

source='helpdata.c' object='helpdata.o' libtool=no \
DEPDIR= depmode=none /bin/bash ../bootstrap/depcomp \
/opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I..  -I../utility -I./include
-I../common -I../common/aicore -I../intl -I./agents -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/X11/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12   -I/usr/include/SDL
-D_GNU_SOURCE=1 -D_REENTRANT -I /usr/include -I /usr/include
-I /usr/include -DLOCALEDIR="\"/usr/share/locale\""
-DDEFAULT_DATA_PATH="\".:data:~/.freeciv:/usr/share/freeciv\""  -i -xO4
-xspace -xstrconst -xpentium -mr -xregs=no%frameptr -xchar=signed -c
helpdata.c
"helpdata.c", line 257: operands have incompatible types:
int ":" void
cc: acomp failed for helpdata.c

Attachment is patch for this bug.

Thanks,
Halton.

--- freeciv-2.1.8/client/gui-gtk-2.0/repodlgs.c.orig	2009-01-15 11:22:21.344107000 +0800
+++ freeciv-2.1.8/client/gui-gtk-2.0/repodlgs.c	2009-01-15 11:38:35.933275000 +0800
@@ -1178,7 +1178,7 @@
 {
   struct repoinfo {
     int active_count;
-    int upkeep[O_COUNT];
+    int upkeep[O_LAST];
     int building_count;
   };
 
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to