Just curious, how does Juan to build an rpm? $ rpm --rebuild --with up --without smp --without secure --without enterprise --without BOOT --without minimal --without mydsdt --without debug --without doc --with source --target athlon kernel-2.4.21-0.rc1.1mdk-1-1mdk.src.rpm
Using the last gcc-3.3-2mdk breaks at the atm driver stage: gcc -D__KERNEL__ -I/usr/src/RPM/BUILD/kernel-2.4/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -DMODVERSIONS -include /usr/src/RPM/BUILD/kernel-2.4/linux-2.4.20/include/linux/modversions.h -g -nostdinc -iwithprefix include -DKBUILD_BASENAME=ambassador -c -o ambassador.o ambassador.c ambassador.c:301:22: atmsar11. start: No such file or directory ambassador.c:302: error: parse error before ';' token ambassador.c:305:24: atmsar11. regions: No such file or directory ambassador.c:310:21: atmsar11. data: No such file or directory make[2]: *** [ambassador.o] Error 1 make[2]: Leaving directory `/usr/src/RPM/BUILD/kernel-2.4/linux-2.4.20/drivers/atm' make[1]: *** [_modsubdir_atm] Error 2 make[1]: Leaving directory `/usr/src/RPM/BUILD/kernel-2.4/linux-2.4.20/drivers' Applying this patch seems to get the build going: --- kernel-2.4/linux-2.4.20/drivers/atm/ambassador.c.orig 2003-06-22 13:19:29.000000000 -0700 +++ kernel-2.4/linux-2.4.20/drivers/atm/ambassador.c 2003-06-22 13:19:48.000000000 -0700 @@ -290,12 +290,12 @@ /********** microcode **********/ #ifdef AMB_NEW_MICROCODE -#define UCODE(x) UCODE1(atmsar12.,x) +#define UCODE(x) UCODE1(atmsar12,x) #else -#define UCODE(x) UCODE1(atmsar11.,x) +#define UCODE(x) UCODE1(atmsar11,x) #endif #define UCODE2(x) #x -#define UCODE1(x,y) UCODE2(x y) +#define UCODE1(x,y) UCODE2(x.y) static u32 __initdata ucode_start = #include UCODE(start) -- _ _ _ _ | |_____| | |_/ | | / / -_) | / / | |_\_\___|_|_\_\_| @ sbcglobal.net
signature.asc
Description: This is a digitally signed message part
