widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #03412
Re: Fwd: compilation problem
I think there is a real bug lurking here.
Apparently zlib renamed some stuff and now our image_io is broken with this change. We need to figure out which version broke and what the change zlib did is. Could you open a bug?
On 16.12.2014, at 12:11, Tibor Bamhor <tiborb95@xxxxxxxxx> wrote:
> Well I found that if I rename /usr/include/zlib.h compilation goes on.
>
> I cannot remove the package:
>
> ||/ Name Version Architecture Description
> +++-========================-=================-=================-========
> ii zlib1g-dev:i386 1:1.2.8.dfsg-2+b1 i386 compression library - development
>
> ... because of dependencies. Can I prevent compilator from using this file/package?
>
> Tibor
>
> ---------- Forwarded message ----------
> From: Tibor Bamhor <tiborb95@xxxxxxxxx>
> Date: 2014-12-16 11:18 GMT+01:00
> Subject: compilation problem
> To: widelands-dev@xxxxxxxxxxxxxxxxxxx
>
> 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
>
> _______________________________________________
> Mailing list: https://launchpad.net/~widelands-dev
> Post to : widelands-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~widelands-dev
> More help : https://help.launchpad.net/ListHelp
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
Follow ups
References