widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #03408
compilation problem
Hi,
few days ago I noticed that compilation on my wheezy box started to fail.
So I upgraded to jessie, upgraded gcc/g++/whatever, but the problem is
still here:
In file included from /usr/include/png.h:536:0,
from
/var/widelands/seafaring-ai/src/graphic/image_io.cc:26:
/usr/include/zlib.h:86:5: error: 'z_const' does not name a type
z_const Bytef *next_in; /* next input byte */
^
/usr/include/zlib.h:94:5: error: 'z_const' does not name a type
z_const char *msg; /* last error message, NULL if no error */
^
In file included from /usr/include/zlib.h:34:0,
from /usr/include/png.h:536,
from
/var/widelands/seafaring-ai/src/graphic/image_io.cc:26:
/usr/include/zlib.h:1025:29: error: 'z_const' has not been declared
typedef unsigned (*in_func) OF((void FAR *,
^
/usr/include/zlib.h:1025:29: error: two or more data types in declaration
of 'parameter'
typedef unsigned (*in_func) OF((void FAR *,
^
In file included from /usr/include/png.h:536:0,
from
/var/widelands/seafaring-ai/src/graphic/image_io.cc:26:
/usr/include/zlib.h:1349:32: error: expected initializer before 'Z_ARG'
ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format,
...));
^
/usr/include/zlib.h:1748:15: error: 'z_crc_t' does not name a type
ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table OF((void));
^
/usr/include/zlib.h:1758:44: error: expected initializer before 'Z_ARG'
ZEXTERN int ZEXPORTVA gzvprintf Z_ARG((gzFile file,
^
src/graphic/CMakeFiles/graphic_image_io.dir/build.make:54: recipe for
target 'src/graphic/CMakeFiles/graphic_image_io.dir/image_io.cc.o' failed
make[2]: *** [src/graphic/CMakeFiles/graphic_image_io.dir/image_io.cc.o]
Error 1
CMakeFiles/Makefile2:12589: recipe for target
'src/graphic/CMakeFiles/graphic_image_io.dir/all' failed
make[1]: *** [src/graphic/CMakeFiles/graphic_image_io.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
What should I do?
Tibor
Follow ups