From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Sat 14 Feb 2004 - 22:09:29 GMT
Hi Community!
I don't know why, but debian toolchain seems to
mislike switch() statements with too long arguments
(there seems to be no primitive for that)
so if you get the following error:
fs/fs.o(.text+0x26aa7): In function `proc_virtual_readdir':
: undefined reference to `__cmpdi2'
fs/fs.o(.text+0x26abe): In function `proc_virtual_readdir':
: undefined reference to `__cmpdi2'
make: *** [vmlinux] Error 1
this patch might help you:
--- ./fs/proc/virtual.c.orig Sat Feb 14 21:28:54 2004
+++ ./fs/proc/virtual.c Sat Feb 14 22:40:24 2004
@@ -446,7 +446,7 @@ int proc_virtual_readdir(struct file * f
unsigned int nr_xids, i;
ino_t ino;
- switch (filp->f_pos) {
+ switch ((long)filp->f_pos) {
case 0:
ino = fake_ino(0, PROC_XID_INO);
if (filldir(dirent, ".", 1,
HTH,
Herbert
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver