compiling 2.4.0 kernels on potato
Hi, I'm trying to compile 2.4.0-test3 on potato unsuccessfully! The error is: gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i586 -fno-strict-aliasing -c -o timer.o timer.c timer.c: In function `update_process_times': timer.c:580: structure has no member named `priority' timer.c:580: `DEF_PRIORITY' undeclared (first use in this function) timer.c:580: (Each undeclared identifier is reported only once timer.c:580: for each function it appears in.) make[3]: *** [timer.o] Error 1 make[3]: Leaving directory `/usr/src/linux/kernel' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/linux/kernel' make[1]: *** [_dir_kernel] Error 2 make[1]: Leaving directory `/usr/src/linux' make: *** [stamp-build] Error 2 Does somebody successfully compile 2.4.0 in Potato? Any help is welcome! []s, Mario O.de MenezesMany are the plans in a man's heart, but IPEN-CNEN/SP is the Lord's purpose that prevails http://curiango.ipen.br/~mario Prov. 19.21 http://www.revistalinux.com.br
Re: compiling 2.4.0 kernels on potato
On Thu, Jul 13, 2000 at 10:24:55AM -0300, Mario Olimpio de Menezes wrote: I'm trying to compile 2.4.0-test3 on potato unsuccessfully! it's a kernel problem.. [...] timer.c: In function `update_process_times': timer.c:580: structure has no member named `priority' timer.c:580: `DEF_PRIORITY' undeclared (first use in this function) timer.c:580: (Each undeclared identifier is reported only once timer.c:580: for each function it appears in.) [...] use the following patch: --- linux/kernel/timer.c.orig Thu Jul 13 15:51:31 2000 +++ linux/kernel/timer.cThu Jul 13 15:53:25 2000 @@ -577,7 +577,7 @@ p-counter = 0; p-need_resched = 1; } - if (p-priority DEF_PRIORITY) + if (p-nice DEF_NICE) kstat.cpu_nice += user_tick; else kstat.cpu_user += user_tick; -- /* Moritz Schulte [EMAIL PROTECTED] * http://hp9001.fh-bielefeld.de/~moritz/ * PGP-Key available, encrypted Mail is welcome. */
Re: compiling 2.4.0 kernels on potato
Ok, its been too damned long since I've had to apply patches to anything. Can you tell me the way the directories need to look in order to apply the patch? Umm, as well as the command needed to apply the patch. Jeez, I feel like a gimp Jonathan Heaney spoke forth with the blessed manuscript: Moritz, the patch has subsequently been corrected - you can use the updates in pub/linux/kernel/testing to get the latest patch. I've amended the relevant section below. use the following patch: --- linux/kernel/timer.c.orig Thu Jul 13 15:51:31 2000 +++ linux/kernel/timer.cThu Jul 13 15:53:25 2000 @@ -577,7 +577,7 @@ p-counter = 0; p-need_resched = 1; } - if (p-priority DEF_PRIORITY) + if (p-nice DEF_NICE) ^^^ wrong way round, it's now or else everything is inverted. There are a few other chages required depending on arhcitecture / what drivers you are compiling so I would get the latest patch from testing (6, which I'm just about to compile - hopefully it has repaired the parport_pc problem that the last few have had, although there's a patch for that too). Jonathan -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: compiling 2.4.0 kernels on potato
On Thu, Jul 13, 2000 at 07:56:25PM +0100, Jonathan Heaney wrote: Moritz, the patch has subsequently been corrected - you can use the updates in pub/linux/kernel/testing to get the latest patch. I've amended the relevant section below. [...] wrong way round, it's now [...] thnx for the information. i saw the patch, i posted, on lkml. There are a few other chages required depending on arhcitecture / what drivers you are compiling so I would get the latest patch from testing (6, which I'm just about to compile - hopefully it has repaired the parport_pc problem that the last few have had, although there's a patch for that too). good luck :) moritz -- /* Moritz Schulte [EMAIL PROTECTED] * http://hp9001.fh-bielefeld.de/~moritz/ * PGP-Key available, encrypted Mail is welcome. */
Re: compiling 2.4.0 kernels on potato
Mike Garfias wrote: Ok, its been too damned long since I've had to apply patches to anything. Can you tell me the way the directories need to look in order to apply the patch OK assuming your kernel source is in /usr/src/linux, dump the file e.g. test4-pre6.gz into /usr/src/linux and go:- zcat test4-pre6.gz | patch -p1 then make away. Jonathan
Re: compiling 2.4.0 kernels on potato
Moritz Schulte wrote: There are a few other chages required depending on arhcitecture / what drivers you are compiling so I would get the latest patch from testing (6, which I'm just about to compile - hopefully it has repaired the parport_pc problem that the last few have had, although there's a patch for that too). good luck :) didn't need it ;-) test4-pre6 seems to have fixed the irritating can't get it to compile problems. nice... Jonathan