Package: cthugha Severity: normal Tags: patch When building 'cthugha' on amd64 with gcc-3.4 or gcc-4.0, I get the following error:
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -g -Wall -O6 -O6 -fomit-frame-pointer -funroll-loops -ffast-math -Wall -DCTH_LIBDIR="\"/usr/lib/cthugha-L\"" -c Mixer.cc Mixer.cc: In function 'int init_mixer()': Mixer.cc:197: error: array bound forbidden after parenthesized type-id Mixer.cc:197: note: try removing the parentheses around the type-id make[3]: *** [Mixer.o] Error 1 make[3]: Leaving directory `/srv/dbuild/tmp/cthugha-1.4/src' With the attached patch 'cthugha' can be compiled using gcc-3.4 and gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/cthugha-1.4/src/Mixer.cc ./src/Mixer.cc --- ../tmp-orig/cthugha-1.4/src/Mixer.cc 1999-01-21 22:59:02.000000000 +0100 +++ ./src/Mixer.cc 2005-02-07 14:21:07.289725616 +0100 @@ -194,7 +194,7 @@ printfee("Can not get recording source mask."); } - interfaceMixer.elements = new (InterfaceElement*)[SOUND_MIXER_NRDEVICES]; + interfaceMixer.elements = new InterfaceElement*[SOUND_MIXER_NRDEVICES]; for(int i=0; i < SOUND_MIXER_NRDEVICES; i++) { -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]