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

Hi,

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

source='repodlgs.c' object='repodlgs.o' libtool=no \
        DEPDIR= depmode=none /bin/bash ../../bootstrap/depcomp \
        /opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I../..  -I. -I./..
-I./../include -I../../utility -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 -DLOCALEDIR="\"/usr/share/locale\""
-DDEFAULT_DATA_PATH="\".:data:~/.freeciv:/usr/share/freeciv\""  -i -xO4
-xspace -xstrconst -xpentium -mr -xregs=no%frameptr -xchar=signed -c
repodlgs.c
"../../common/packets_gen.h", line 929: member can not have variably
modified type: upkeep
"repodlgs.c", line 1204: cannot dereference non-pointer type
"repodlgs.c", line 1228: cannot dereference non-pointer type
"repodlgs.c", line 1229: cannot dereference non-pointer type
"repodlgs.c", line 1230: cannot dereference non-pointer type
"repodlgs.c", line 1243: cannot dereference non-pointer type
"repodlgs.c", line 1243: cannot dereference non-pointer type
"repodlgs.c", line 1254: cannot dereference non-pointer type
"repodlgs.c", line 1255: cannot dereference non-pointer type
"repodlgs.c", line 1256: cannot dereference non-pointer type

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