On Wed, Jun 23, 2004 at 01:12:19AM +0200, [Mauro Malvestio - malveo] wrote:
> Hi,
> 
> i used linux-2.4.26 standard kernel + vserver patch
> patch-2.4.26-vs1.27 for compiling a kernel on Sun Ultra
> Sparc 10, but get error in compiling :
> 
> make[3]: Entering directory `/usr/src/linux-2.4.26/drivers/block'
> sparc64-linux-gcc -D__KERNEL__ -I/usr/src/linux-2.4.26/include -Wall
> -Wstrict-prototypes-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> -fomit-frame-pointer-m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow
> -ffixed-g4 -fcall-used-g5-fcall-used-g7 -Wno-sign-compare -Wa,--undeclared-regs 
>  -nostdinc -iwithprefix include -DKBUILD_BASENAME=vroot  -c -o vroot.o vroot.c
> 
> In file included from vroot.c:36:
> vroot.h:33: warning: invalid character in macro parameter name
> vroot.h:33: badly punctuated parameter list in `#define'
> vroot.c: In function `vroot_get_dev':
> vroot.c:61: warning: implicit declaration of function `dprintk'
> make[3]: *** [vroot.o] Error 1
> 
> make[3]: Leaving directory `/usr/src/linux-2.4.26/drivers/block'
> make[2]: *** [first_rule] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.4.26/drivers/block'
> make[1]: *** [_subdir_block] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.4.26/drivers'
> make: *** [_dir_drivers] Error 2
> 
> 
> i use gcc version egcs on Debian Woody :
> gcc version egcs-2.92.11 19980921 (gcc2 ss-980609 experimental)

either replace line 33 of drivers/block/vroot.h
        
        #define dprintk(...)    /* printk(__VA_ARGS__) */
with 
        #define dprintk(format, args...)    /* printk(format, ##args) */

or get a more recent (read ISO/C99 compliant) compiler, which
is able to handle the variadic macro definition ...

HTH,
Herbert

PS: let me know if it works on sparc, as it was never
    tested there ...

PPS: deja-vu? 

> P.S.
> Kernel without vserver patch build image correctly and boot.
> 
> Any ideas?
> 
> thanks in advance.
> 
> malveo
> _______________________________________________
> Vserver mailing list
> [EMAIL PROTECTED]
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to