Bug#539546: FTBFS with GCC 4.4: dereferencing type-punned pointer will break strict-aliasing rules

Martin Michlmayr tbm at cyrius.com
Sat Aug 1 19:28:43 UTC 2009


Package: wesnoth
Version: 1:1.6.4-1
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.4

Your package fails to build with GCC 4.4.  You can reproduce this problem
with gcc-4.4/g++-4.4 from unstable.

> Automatic build of wesnoth_1:1.6.4-1 on em64t by sbuild/amd64 0.53
...
> 	x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..   -I/usr/include -D_REENTRANT -I/usr/include/pango-1.0 -I/usr/include/cairo -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/directfb -I/usr/include/libpng12     -DHAVE_REVISION -I../intl -I../intl -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DWESNOTH_PATH=\"/usr/share/games/wesnoth\" -DLOCALEDIR=\"/usr/share/locale\" -DHAS_RELATIVE_LOCALEDIR=0 -DFIFODIR=\"/var/run/wesnothd\" -DWESNOTH_PREFIX=\"/usr\" -DHAVE_FRIBIDI -I/usr/include -O2 -W -Wall -ansi -g -O2 -Werror -Wno-unused -Wno-sign-compare -DDISABLE_POOL_ALLOC -D_X11     -I/usr/include -MT network.o -MD -MP -MF $depbase.Tpo -c -o network.o network.cpp &&\
> 	mv -f $depbase.Tpo $depbase.Po
> cc1plus: warnings being treated as errors
> network.cpp: In member function 'virtual void network::<unnamed>::connect_operation::run()':
> network.cpp:432: error: dereferencing type-punned pointer will break strict-aliasing rules
> network.cpp: In function 'network::connection network::accept_connection()':
> network.cpp:560: error: dereferencing type-punned pointer will break strict-aliasing rules
> network.cpp:575: error: dereferencing type-punned pointer will break strict-aliasing rules
> network.cpp: In function 'network::connection network::receive_data(config&, network::connection, bool*, network::bandwidth_in_ptr*)':
> network.cpp:708: error: dereferencing type-punned pointer will break strict-aliasing rules
> network.cpp: In function 'network::connection network::receive_data(std::vector<char, std::allocator<char> >&, network::bandwidth_in_ptr*)':
> network.cpp:818: error: dereferencing type-punned pointer will break strict-aliasing rules
> make[3]: *** [network.o] Error 1
> make[3]: Leaving directory `/build/tbm/wesnoth-1.6.4/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/build/tbm/wesnoth-1.6.4'
> make[1]: *** [all] Error 2

-- 
Martin Michlmayr
http://www.cyrius.com/





More information about the Pkg-games-devel mailing list