Mailing List Archive

Compilation Problem
Hi Deri,

I am very impressed with your paper on Improving
Passive Packet Capture: Beyond Device Polling.

There are serveral problems i met during the
compilation hence I would like to seek your advice:

Kernel version 2.4.23

I've put ring.h in place (include/linux), replaced
both sock.h (include/net) and dev.c (net/core).

During compilation, these error messages are
displayed:

dev.c:118: parse error before
`this_object_must_be_defined_as_export_objs_in_the_Makefile'
dev.c:118: warning: type defaults to `int' in
declaration of
`this_object_must_be_defined_as_export_objs_in_the_Makefile'
dev.c:118: warning: data definition has no type or
storage class

Another problem is related to rtirq, it's also a
compilation error. After patching the 2.4.23 without
error, I was not able to compile (with real-time
interrupt CONFIG_RTIRQ enabled) it. The error messages
are:

gcc -D__KERNEL__
-I/home/skgan/Kernel/linux-2.4.23b/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2
-fno-strict-aliasing -fno-common -fomit-frame-pointer
-pipe -mpreferred-stack-boundary=2 -march=i386
-DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from
/home/skgan/Kernel/linux-2.4.23b/include/linux/reiserfs_fs_sb.h:8,
from
/home/skgan/Kernel/linux-2.4.23b/include/linux/fs.h:727,
from
/home/skgan/Kernel/linux-2.4.23b/include/linux/capability.h:17,
from
/home/skgan/Kernel/linux-2.4.23b/include/linux/binfmts.h:5,
from
/home/skgan/Kernel/linux-2.4.23b/include/linux/sched.h:9,
from
/home/skgan/Kernel/linux-2.4.23b/include/linux/mm.h:4,
from
/home/skgan/Kernel/linux-2.4.23b/include/linux/slab.h:14,
from
/home/skgan/Kernel/linux-2.4.23b/include/linux/proc_fs.h:5,
from init/main.c:15:
/home/skgan/Kernel/linux-2.4.23b/include/linux/tqueue.h:
In function `queue_task':
/home/skgan/Kernel/linux-2.4.23b/include/linux/tqueue.h:105:
structure has no member named `level'
In file included from
/home/skgan/Kernel/linux-2.4.23b/include/linux/mm.h:4,
from
/home/skgan/Kernel/linux-2.4.23b/include/linux/slab.h:14,
from
/home/skgan/Kernel/linux-2.4.23b/include/linux/proc_fs.h:5,
from init/main.c:15:
/home/skgan/Kernel/linux-2.4.23b/include/linux/sched.h:
In function `unhash_process':
/home/skgan/Kernel/linux-2.4.23b/include/linux/sched.h:913:
structure has no member named `level'
/home/skgan/Kernel/linux-2.4.23b/include/linux/sched.h:918:
structure has no member named `level'
In file included from
/home/skgan/Kernel/linux-2.4.23b/include/linux/bootmem.h:8,
from init/main.c:28:
/home/skgan/Kernel/linux-2.4.23b/include/asm/dma.h: In
function `claim_dma_lock':
/home/skgan/Kernel/linux-2.4.23b/include/asm/dma.h:143:
structure has no member named `level'
make: *** [init/main.o] Error 1

I appreciate if you can share with me your experience
in compilling the files above.

Please let me know if you need more information.

Thank you very much!


SK GAN

__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html