Unable to compile packet patch with SuSE kernel
Hi, I'm having trouble tring to compile a SuSE kernel patched with the packet patch, this is the result: gcc -D__KERNEL__ -I/usr/src/linux-2.4.19.SuSE/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -DKBUILD_BASENAME=pktcdvd -c -o pktcdvd.o pktcdvd.c pktcdvd.c: In function `kcdrwd': pktcdvd.c:1185: structure has no member named `nice' pktcdvd.c: In function `pkt_init_queue': pktcdvd.c:2106: warning: initialization from incompatible pointer type pktcdvd.c:2106: warning: initialization makes integer from pointer without a cast make[3]: *** [pktcdvd.o] Error 1 make[3]: Leaving directory `/usr/src/linux-2.4.19.SuSE/drivers/block' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/linux-2.4.19.SuSE/drivers/block' make[1]: *** [_subdir_block] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.19.SuSE/drivers' make: *** [_dir_drivers] Error 2 I have all of the 2.4.19 patches, none with success. Can anyone tell me where I need to look to sort the problem out? Nik
On Sun, 10 Nov 2002, Nik wrote:
I'm having trouble tring to compile a SuSE kernel patched with the packet patch, this is the result:
Try using the packet-2.4.20-pre11.patch.bz2 patch and then apply the incremental patch packet-2.4.20-pre11-suse.patch on top of that. It compiles without warnings but I haven't tested if it actually works. --- linux/drivers/block/pktcdvd.c.orig Sun Nov 10 10:37:49 2002 +++ linux/drivers/block/pktcdvd.c Sun Nov 10 10:38:16 2002 @@ -1182,7 +1182,7 @@ daemonize(); current->policy = SCHED_OTHER; - current->nice = -20; + set_user_nice(current, -20); sprintf(current->comm, pd->name); spin_lock_irq(¤t->sigmask_lock); -- Peter Osterlund - petero2@telia.com http://w1.894.telia.com/~u89404340
In article
On Sun, 10 Nov 2002, Nik wrote:
I'm having trouble tring to compile a SuSE kernel patched with the packet patch, this is the result:
Try using the packet-2.4.20-pre11.patch.bz2 patch and then apply the incremental patch packet-2.4.20-pre11-suse.patch on top of that. It compiles without warnings but I haven't tested if it actually works.
It compiled fine, and seems to be fine at writing data to the disk, but it takes a very long time to delete data from the disk, eg it took about 3 minutes to copy /etc across, but after 1hour, only a handful of files were deleted. Many thanks, Nik
In article <4b942f686dnik@cheddarcheese.de>, Nik
I'm having trouble tring to compile a SuSE kernel patched with the packet patch, this is the result: Try using the packet-2.4.20-pre11.patch.bz2 patch and then apply the incremental patch packet-2.4.20-pre11-suse.patch on top of that. It compiles without warnings but I haven't tested if it actually works. It compiled fine, and seems to be fine at writing data to the disk, but it takes a very long time to delete data from the disk, eg it took about 3 minutes to copy /etc across, but after 1hour, only a handful of files were deleted.
What a load of rubbish I was talking! After setting it up properly, it is working like a dream. Many thanks Peter, Nik
participants (2)
-
Nik
-
Peter Osterlund