Hello,

could you check that your config.log says about bz2? The error means that the 
bzip2 was found but the devel library was not found (-lbz2). Try to install 
libbz2-devel.

For opensuse 11.4 you will get the following error: http://gna.org/bugs/?
18527. I do have a patch but it is not a solution as it breaks other 
combinations of freeciv and ImageMagick ... (simple change long unsigned int 
to size_t to compile your version).

Matthias (aka syntron)


Am Sonntag, 21. August 2011, 03:00:03 schrieb Jordi Negrevernis i Font:
> make  all-am
> make[4]: Entering directory
> `/home/jordi/freeciv/trunk/freeciv/server/scripting'
> make[4]: Nothing to be done for `all-am'.
> make[4]: Leaving directory
> `/home/jordi/freeciv/trunk/freeciv/server/scripting'
> make[3]: Leaving directory
> `/home/jordi/freeciv/trunk/freeciv/server/scripting'
> make[3]: Entering directory `/home/jordi/freeciv/trunk/freeciv/server'
>    CCLD   freeciv-server
> /usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld:
> cannot find -lbz2
> collect2: ld returned 1 exit status
> make[3]: *** [freeciv-server] Error 1
> make[3]: Leaving directory `/home/jordi/freeciv/trunk/freeciv/server'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/jordi/freeciv/trunk/freeciv/server'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/jordi/freeciv/trunk/freeciv'
> make: *** [all] Error 2
> jordi@linux-748e:~/freeciv/trunk/freeciv>
> 
>      This is an OpenSUSE 11.4 machine...
> 
>      I was trying to compile freeciv on trunk with ImageMagick enabled
> but i can't compile now...
> 
>      With is the parameter for ImageMagick... i tried
> --enable-magickwand and i doesn't work...
> 
>      Before i've got to install libcurl-dev... I suppose its a new
> requirement...
> 
>      Thanks
> 
> 
> _______________________________________________
> Freeciv-dev mailing list
> Freeciv-dev@gna.org
> https://mail.gna.org/listinfo/freeciv-dev

diff --git a/common/mapimg.c b/common/mapimg.c
index 941337a..401bc90 100644
--- a/common/mapimg.c
+++ b/common/mapimg.c
@@ -2005,7 +2005,7 @@ static bool img_save_magickwand(const struct img *pimg,
   bool ret = TRUE;
   char imagefile[MAX_LEN_PATH];
   char str_color[32], comment[2048] = "", title[258];
-  unsigned long img_width, img_height, map_width, map_height;
+  size_t img_width, img_height, map_width, map_height;
   int x, y, xxx, yyy, row, i, index, plrwidth, plroffset, textoffset;
   bool withplr = BV_ISSET_ANY(pimg->def->player.checked_plrbv);
 
@@ -2052,7 +2052,7 @@ static bool img_save_magickwand(const struct img *pimg,
     }
 
     if (pplr_only) {
-      unsigned long plr_color_square = IMG_TEXT_HEIGHT;
+      size_t plr_color_square = IMG_TEXT_HEIGHT;
 
       textoffset += IMG_TEXT_HEIGHT + IMG_BORDER_HEIGHT;
 
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to