Package: rio500
Severity: normal
Tags: patch

When building 'rio500' with gcc-3.4 I get the following error:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include      -I../librio500 -g -O2 -Wall -I../librio500 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    
-DDEFAULT_PSF_FONT=\"/usr/share/rio500/fonts//font-bitmaps.psf\" 
-DDEFAULT_FONT_PATH=\"/usr/share/rio500/fonts/\" -DDEFAULT_FON_FONT=\"hl1.fon\" 
-DDEFAULT_DEV_PATH=\"/dev/usb/rio500\"  -c getopt1.c
gcc  -I../librio500 -g -O2 -Wall -I../librio500 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include    
-DDEFAULT_PSF_FONT=\"/usr/share/rio500/fonts//font-bitmaps.psf\" 
-DDEFAULT_FONT_PATH=\"/usr/share/rio500/fonts/\" -DDEFAULT_FON_FONT=\"hl1.fon\" 
-DDEFAULT_DEV_PATH=\"/dev/usb/rio500\"   -o rio_format  rio_format.o getopt.o 
getopt1.o  -L../librio500 -lglib-2.0   -lrio500_api -lrio500   
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include      -I../librio500 -g -O2 -Wall -I../librio500 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    
-DDEFAULT_PSF_FONT=\"/usr/share/rio500/fonts//font-bitmaps.psf\" 
-DDEFAULT_FONT_PATH=\"/usr/share/rio500/fonts/\" -DDEFAULT_FON_FONT=\"hl1.fon\" 
-DDEFAULT_DEV_PATH=\"/dev/usb/rio500\"  -c rio_add_song.c
rio_add_song.c: In function `main':
rio_add_song.c:329: error: label at end of compound statement
make[3]: *** [rio_add_song.o] Error 1
make[3]: Leaving directory `/rio500-0.8.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/rio500-0.8.1'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/rio500-0.8.1'
make: *** [build-stamp] Error 2

With the attached patch 'rio500' can be compiled using gcc-3.4.

Regards
Andreas Jochens

diff -urN ../tmp-orig/rio500-0.8.1/src/rio_add_song.c ./src/rio_add_song.c
--- ../tmp-orig/rio500-0.8.1/src/rio_add_song.c 2002-04-15 14:09:13.000000000 
+0200
+++ ./src/rio_add_song.c        2004-07-16 23:42:58.036450909 +0200
@@ -326,6 +326,7 @@
    send_command (rio_dev, 0x58, 0x0, card_number);
 
 try_next:
+   continue;
    } /* end of add file loop */
 
    /* Close device */

Reply via email to