Hi,
I'm trying to compile "tcpha_fe" on my front-end, but the following
error appears although I have configured and compiled kernel 2.6.9:
gcc -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -DMODVERSIONS -g
-DCONFIG_TCPHA_FE_DEBUG -O2 -Wall -Wstrict-prototypes
-I/usr/src/linux/include
-include /usr/src/linux/include/linux/modversions.h -c -o tcpha_fe.o
tcpha_fe.c
<command
line>:138365237:18808: /usr/src/linux/include/linux/modversions.h: No
such file or directory
In file included from /usr/src/linux/include/asm/processor.h:18,
from /usr/src/linux/include/asm/thread_info.h:16,
from /usr/src/linux/include/linux/thread_info.h:21,
from /usr/src/linux/include/linux/spinlock.h:12,
from /usr/src/linux/include/linux/capability.h:45,
from /usr/src/linux/include/linux/sched.h:7,
from /usr/src/linux/include/linux/module.h:10,
from tcpha_fe.h:12,
from tcpha_fe.c:21:
/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux/include/asm/system.h:193: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:193: warning: dereferencing
type-punned pointer will break strict-aliasing rules
In file included from /usr/src/linux/include/linux/irq.h:20,
from /usr/src/linux/include/asm/hardirq.h:6,
from /usr/src/linux/include/linux/hardirq.h:6,
from /usr/src/linux/include/linux/interrupt.h:11,
from /usr/src/linux/include/linux/netdevice.h:516,
from /usr/src/linux/include/net/sock.h:48,
from /usr/src/linux/include/linux/ip.h:84,
from tcpha_fe.h:16,
from tcpha_fe.c:21:
/usr/src/linux/include/asm/irq.h:16:25: irq_vectors.h: No such file or
directory
In file included from /usr/src/linux/include/asm/hardirq.h:6,
from /usr/src/linux/include/linux/hardirq.h:6,
from /usr/src/linux/include/linux/interrupt.h:11,
from /usr/src/linux/include/linux/netdevice.h:516,
from /usr/src/linux/include/net/sock.h:48,
from /usr/src/linux/include/linux/ip.h:84,
from tcpha_fe.h:16,
from tcpha_fe.c:21:
/usr/src/linux/include/linux/irq.h: At top level:
/usr/src/linux/include/linux/irq.h:70: error: `NR_IRQS' undeclared here
(not in a function)
In file included from /usr/src/linux/include/linux/irq.h:72,
from /usr/src/linux/include/asm/hardirq.h:6,
from /usr/src/linux/include/linux/hardirq.h:6,
from /usr/src/linux/include/linux/interrupt.h:11,
from /usr/src/linux/include/linux/netdevice.h:516,
from /usr/src/linux/include/net/sock.h:48,
from /usr/src/linux/include/linux/ip.h:84,
from tcpha_fe.h:16,
from tcpha_fe.c:21:
/usr/src/linux/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS'
undeclared here (not in a function)
/usr/src/linux/include/asm/hw_irq.h:32: error: `NR_IRQS' undeclared here
(not in a function)
tcpha_fe.c:201:40: missing binary operator before token "("
tcpha_fe.c: In function `worker_daemon':
tcpha_fe.c:242: error: too few arguments to function `daemonize'
tcpha_fe.c:254: warning: implicit declaration of function
`get_free_page'
tcpha_fe.c:269: error: structure has no member named `tp_pinfo'
tcpha_fe.c:271: error: structure has no member named `sleep'
tcpha_fe.c:275: error: structure has no member named `sleep'
tcpha_fe.c: In function `adv_worker_daemon':
tcpha_fe.c:325: error: too few arguments to function `daemonize'
tcpha_fe.c:350: error: structure has no member named `tp_pinfo'
tcpha_fe.c:352: error: structure has no member named `sleep'
tcpha_fe.c:356: error: structure has no member named `sleep'
tcpha_fe.c: In function `supervisor_daemon':
tcpha_fe.c:397: warning: `MOD_INC_USE_COUNT' is deprecated (declared
at /usr/src/linux/include/linux/module.h:555)
tcpha_fe.c:403: error: too few arguments to function `daemonize'
tcpha_fe.c:437: warning: implicit declaration of function `waitpid'
tcpha_fe.c:460: warning: `MOD_DEC_USE_COUNT' is deprecated (declared
at /usr/src/linux/include/linux/module.h:567)
make: *** [tcpha_fe.o] Error 1
Could you help me?
Thanks.
Toni
|