Bug#787698: supertux: FTBFS on big-endian archs

Fabian Greffrath fabian at debian.org
Mon Jun 8 07:07:31 UTC 2015


Hi Vincent,

Am Donnerstag, den 04.06.2015, 00:40 -0700 schrieb Vincent Cheng: 
> /«PKGBUILDDIR»/src/audio/wav_sound_file.cpp:162:4: error: 'void*' is not a pointer-to-object type
>    *buffer = tmp;
>     ^
> make[3]: *** [CMakeFiles/supertux2.dir/src/audio/wav_sound_file.cpp.o] Error 1
> 
> Any help (or better yet, patches) would be greatly appreciated!

in the WavSoundFile::read function, the "buffer" argument is a void
pointer, so de-referencing it is a bad idea. You might want to try
type-punning the pointer by e.g.

  *((char *)buffer) = tmp;

Hope that helps,

Fabian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20150608/19fb801e/attachment.sig>


More information about the Pkg-games-devel mailing list