[PATCH] Vorbis-tools-1.4.0 fails to compile with gcc2
Making all in vcut
make[2]: Entering directory /boot/develop/haikuports/media-sound/vorbis-tools/work/vorbis-tools-1.4.0/vcut' source='vcut.c' object='vcut.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../depcomp \ gcc -DLOCALEDIR=\"/boot/common/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I/boot/common/include -I/boot/common/include -I../include -I../intl -I/boot/common/include -O2 -fsigned-char -g -O2 -c vcut.c /boot/develop/haikuports/media-sound/vorbis-tools/work/vorbis-tools-1.4.0/vcut/vcut.c: In function
open_output_stream':
/boot/develop/haikuports/media-sound/vorbis-tools/work/vorbis-tools-1.4.0/vcut/vcut.c:243: parse error before int' /boot/develop/haikuports/media-sound/vorbis-tools/work/vorbis-tools-1.4.0/vcut/vcut.c:244:
rv' undeclared (first use in this function)
/boot/develop/haikuports/media-sound/vorbis-tools/work/vorbis-tools-1.4.0/vcut/vcut.c:244: (Each undeclared identifier is reported only once
/boot/develop/haikuports/media-sound/vorbis-tools/work/vorbis-tools-1.4.0/vcut/vcut.c:244: for each function it appears in.)
make[2]: *** [vcut.o] Error 1
make[2]: Leaving directory /boot/develop/haikuports/media-sound/vorbis-tools/work/vorbis-tools-1.4.0/vcut' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
/boot/develop/haikuports/media-sound/vorbis-tools/work/vorbis-tools-1.4.0'
make: *** [all] Error 2
Moving int rv to the top of the function then allows vorbis-tools-1.4.0 to fully build. Patch attached.