On Sun, 6 Oct 2002 16:47:59 -0400 (EDT) Stew Benedict <[EMAIL PROTECTED]> wrote:
> > On Sun, 6 Oct 2002, Brian J. Murrell wrote: > > > The kernel-source-2.4.19-16mdk package fails to build. I simply > > wanted to reproduce the kernel I have installed (the default "up" > > kernel) to verify the kernel-source package before moving on to other > > builds. It failed. > > > > The failure message is: > > > > gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-16mdk/include -Wall -Wstrict-prototypes >-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe >-mpreferred-stack-boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include >/usr/src/linux-2.4.19-16mdk/include/linux/modversions.h -nostdinc -I >/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/include >-DKBUILD_BASENAME=zftape_compress -c -o zftape-compress.o zftape-compress.c > > In file included from /usr/src/linux-2.4.19-16mdk/include/linux/mm.h:4, > > from zftape-compress.c:35: > > /usr/src/linux-2.4.19-16mdk/include/linux/sched.h:6: invalid suffix on integer >constant > > /usr/src/linux-2.4.19-16mdk/include/linux/sched.h:6: parse error before numeric >constant > > /usr/src/linux-2.4.19-16mdk/include/linux/sched.h:6: warning: function declaration >isn't a prototype > > make[4]: *** [zftape-compress.o] Error 1 > > make[4]: Leaving directory >`/usr/src/linux-2.4.19-16mdk/drivers/char/ftape/compressor' > > make[3]: *** [_modsubdir_compressor] Error 2 > > make[3]: Leaving directory `/usr/src/linux-2.4.19-16mdk/drivers/char/ftape' > > make[2]: *** [_modsubdir_ftape] Error 2 > > make[2]: Leaving directory `/usr/src/linux-2.4.19-16mdk/drivers/char' > > make[1]: *** [_modsubdir_char] Error 2 > > make[1]: Leaving directory `/usr/src/linux-2.4.19-16mdk/drivers' > > make: *** [_mod_drivers] Error 2 > > > > I am building with the default gcc that comes in Cooker: > > > > $ rpm -q gcc > > gcc-3.2-1mdk > > > > but here are the particulars on all (gcc) packages on my system: > > > > $ rpm -qa | grep gcc > > gcc-cpp-3.2-1mdk > > gcc2.96-cpp-2.96-0.80mdk > > gcc3.0-cpp-3.0.4-5mdk > > gcc-c++-3.2-1mdk > > gcc2.96-2.96-0.80mdk > > gcc-3.2-1mdk > > gcc3.0-c++-3.0.4-5mdk > > gcc3.0-3.0.4-5mdk > > libgcc1-3.2-1mdk > > > > We had another guy, who was ranting on IRC and forum that kernel source > was broken, so I took the time and built/booted a new kernel from the > kernel-source RPM, on a clean 9.0 install, and was not able to duplicate > any of the issues this guy claimed (modules wouldn't load, no graphical > boot, no graphical login, etc. etc.), Initially, I thought the graphical > login was not working, but I had written lilo from an 8.2 install on the > same machine, and apparently that was affecting things. It was also an > RC1, upgraded through 2 and 3, and the final test was a clean 9.0 install. > > I did: > > make mrproper > make menuconfig (seems to be needed for 3rd party modules) > make dep > make bzImage > make modules > make modules_install > installkernel 2.4.19-16mdkcustom arch/i386/boot/bzImage System.map > lilo (just for good measure) > > I don't have all 3 compilers installed like you do, though. Perhaps there > is an issue there? > > Stew Benedict > > -- > MandrakeSoft > PPC FAQ: http://www.linux-mandrake.com/en/ppcFAQ.php3 > IRC: irc.openproject.net #cooker-ppc I, too, just successfully compiled a kernel starting with the stock kernel for 9.0. The only things I did different than you was I used "make xconfig" instead of "make menuconfig" and instead of using installkernel, I manually copied the new kernel to /boot and manually edited lilo.conf to insert the new kernel. All worked well. Joeb