[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#258546: busybox-cvs: FTBFS with gcc-3.4: label at end of compound statement



On Sat, Jul 10, 2004 at 09:56:37AM +0200, Andreas Jochens wrote:
> Package: busybox-cvs
> Severity: normal
> Tags: patch
> 
> When building 'busybox-cvs' with gcc-3.4 I get the following error:
> 
> gcc -I./include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wall -Wstrict-prototypes -Wshadow -Os -fomit-frame-pointer -DNDEBUG    -I./modutils/obj -DELF_MACHINE_H='"elf_x86_64.h"' -DARCH_x86_64  -c -o modutils/obj/modstat.o modutils/obj/modstat.c
> modutils/obj/modstat.c: In function `new_get_kernel_info':
> modutils/obj/modstat.c:202: error: label at end of compound statement
> make[1]: *** [modutils/obj/modstat.o] Error 1
> make[1]: Leaving directory `/busybox-cvs-20040623'
> make: *** [build-arch-udeb-stamp] Error 2
> 
> With the attached patch 'busybox-cvs' can be compiled using gcc-3.4.
> 
> Regards
> Andreas Jochens
> 
> diff -urN ../tmp-orig/busybox-cvs-20040623/modutils/obj/modstat.c ./modutils/obj/modstat.c
> --- ../tmp-orig/busybox-cvs-20040623/modutils/obj/modstat.c	2004-07-10 09:47:14.182575669 +0200
> +++ ./modutils/obj/modstat.c	2004-07-10 09:47:09.278535311 +0200
> @@ -199,6 +199,7 @@
>  				s->name += (unsigned long) syms;
>  		}
>  		next:
> +		continue;
>  	}
>  
>  	if (type & K_SYMBOLS) { /* Want info about symbols */

This can also be fixed by updating that code from modutils. The current
version of modutils in the archive has "next: ;".

-- 
Colin Watson                                       [cjwatson@debian.org]



Reply to: