Bug#525750: FTBFS with GCC 4.4: dereferencing type-punned pointer will break...

Martin Michlmayr tbm at cyrius.com
Sun Apr 26 21:23:33 UTC 2009


Package: libphysfs
Version: 2.0.0-2
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with GCC 4.4, which has cleaned up some more
C++ headers.  You always have to #include headers directly and cannot
rely for things to be included indirectly.

You can reproduce this problem with gcc-snapshot from unstable or
gcc-4.4 from experimental.

> Automatic build of libphysfs_2.0.0-2 on em64t by sbuild/amd64 0.53
...
> [ 29%] Building C object CMakeFiles/physfs.dir/archivers/zip.o
> cc1: warnings being treated as errors
> /build/tbm/libphysfs-2.0.0/archivers/zip.c: In function 'zip_find_end_of_central_dir':
> /build/tbm/libphysfs-2.0.0/archivers/zip.c:432: error: dereferencing type-punned pointer will break strict-aliasing rules
> make[3]: *** [CMakeFiles/physfs.dir/archivers/zip.o] Error 1
> make[3]: Leaving directory `/build/tbm/libphysfs-2.0.0'

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





More information about the Pkg-games-devel mailing list