Welcome Freeciv 2.2 to Solaris
By Frederic Pariente on Mar 14, 2010
Freeciv 2.2.0, a new major release of the open-source civilization-building strategy game, was out last month. I have built it for (Open)Solaris x86 --with the SDL client-- on a Solaris 10 Update 8 system --that's the latest Solaris 10 update to date, released 10/2009-- using the same steps that worked for Freeciv 2.1.9. I did have though to comment out the
typedef on line 96 in
common/featured_text.h after I ran into the following error :
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../utility -I./aicore -DLOCALEDIR=\\"/usr/local/share/locale\\" "-DDEFAULT_DATA_PATH=\\".:data:~/.freeciv:/usr/local/share/freeciv\\"" -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -g -O2 -MT featured_text.lo -MD -MP -MF .deps/featured_text.Tpo -c featured_text.c -o featured_text.o In file included from featured_text.c:34: featured_text.h:96: error: conflicting types for 'offset_t' /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/include/sys/types.h:233: error: previous declaration of 'offset_t' was here
I need to let the Freeciv developers know of the above but, in the meantime, this workaround seems to work.
Under Solaris, you will need to install
/usr/local on your system, for Freeciv to work. For your convenience, they all are available pre-built at opensolaris.free.fr, along with the new Freeciv 2.2.0 package. Note that Freeciv 2.2 is now run by typing
freeciv-sdl and no longer
civclient. This is how it looks on my Solaris 10 desktop:
As a side note, I am not providing a GTK-based client/package because it does not compile on Solaris 10 to date. Freeciv 2.2.0 uses the
GTK_STOCK_EDIT Gnome 2.6 feature that is apparently not available in the version of Gnome that comes with Solaris 10 and Java Desktop System 3. As a result, I am getting the following error at compilation time:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I./../include -I../../utility -I../../common -I../../common/aicore -I./../agents -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALEDIR=\\"/usr/local/share/locale\\" "-DDEFAULT_DATA_PATH=\\".:data:~/.freeciv:/usr/local/share/freeciv\\"" -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -g -O2 -MT chatline.lo -MD -MP -MF .deps/chatline.Tpo -c chatline.c -o chatline.o chatline.c: In function `chatline_init': chatline.c:1263: error: `GTK_STOCK_EDIT' undeclared (first use in this function) chatline.c:1263: error: (Each undeclared identifier is reported only once chatline.c:1263: error: for each function it appears in.)
It should compile on OpenSolaris though and I will try compiling it on the OpenSolaris 2010.03 release due later this month.
While I was at it, I also built the latest Freeciv 2.1.11 update from the 2.1 release branch, so the current 2.1 players can be up-to-date with respect to bug fixes. You can download both GTK and SDL clients from opensolaris.free.fr as well.