LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] Ktcpvs compiling error

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] Ktcpvs compiling error
From: "Oliver Fabelo" <ofabelo@xxxxxxxxxxxx>
Date: Wed, 21 Nov 2007 10:05:46 -0000
Hello,

firstly, I had an error that it doesn't find the modversions.h file. I did a
"cp /usr/src/linux/include/config/modversions.h
/usr/src/linux/include/linux/. It works I think. Now, it shows the error:

 

 # make install

gcc -D__KERNEL__ -DMODULE  -DEXPORT_SYMTAB -DMODVERSIONS  -g
-DCONFIG_TCP_VS_DEBUG -O2 -Wall -Wstrict-prototypes -I/usr/src/linux/include
-include /usr/src/linux/include/linux/modversions.h   -c -o tcp_vs_ctl.o
tcp_vs_ctl.c

In file included from /usr/src/linux/include/asm/system.h:7,

                 from /usr/src/linux/include/asm/processor.h:18,

                 from /usr/src/linux/include/linux/prefetch.h:14,

                 from /usr/src/linux/include/linux/list.h:8,

                 from /usr/src/linux/include/linux/module.h:9,

                 from tcp_vs_ctl.c:19:

/usr/src/linux/include/asm/cmpxchg.h: In function '__set_64bit_var':

/usr/src/linux/include/asm/cmpxchg.h:57: warning: dereferencing type-punned
pointer will break strict-aliasing rules

/usr/src/linux/include/asm/cmpxchg.h:57: warning: dereferencing type-punned
pointer will break strict-aliasing rules

In file included from /usr/src/linux/include/linux/prefetch.h:14,

                 from /usr/src/linux/include/linux/list.h:8,

                 from /usr/src/linux/include/linux/module.h:9,

                 from tcp_vs_ctl.c:19:

/usr/src/linux/include/asm/processor.h: In function 'cpuid_count':

/usr/src/linux/include/asm/processor.h:611: warning: pointer targets in
passing argument 1 of 'native_cpuid' differ in signedness

/usr/src/linux/include/asm/processor.h:611: warning: pointer targets in
passing argument 2 of 'native_cpuid' differ in signedness

/usr/src/linux/include/asm/processor.h:611: warning: pointer targets in
passing argument 3 of 'native_cpuid' differ in signedness

/usr/src/linux/include/asm/processor.h:611: warning: pointer targets in
passing argument 4 of 'native_cpuid' differ in signedness

In file included from /usr/src/linux/include/linux/aio.h:5,

                 from /usr/src/linux/include/linux/sched.h:298,

                 from /usr/src/linux/include/asm/irq.h:13,

                 from /usr/src/linux/include/linux/irq.h:23,

                 from /usr/src/linux/include/asm/hardirq.h:5,

                 from /usr/src/linux/include/linux/hardirq.h:7,

                 from /usr/src/linux/include/linux/interrupt.h:11,

                 from /usr/src/linux/include/linux/netdevice.h:610,

                 from /usr/src/linux/include/net/sock.h:48,

                 from /usr/src/linux/include/net/inet_sock.h:25,

                 from /usr/src/linux/include/net/ip.h:30,

                 from tcp_vs_ctl.c:26:

/usr/src/linux/include/linux/workqueue.h: In function 'cancel_delayed_work':

/usr/src/linux/include/linux/workqueue.h:165: warning: dereferencing
type-punned pointer will break strict-aliasing rules

In file included from /usr/src/linux/include/linux/irq.h:23,

                 from /usr/src/linux/include/asm/hardirq.h:5,

                 from /usr/src/linux/include/linux/hardirq.h:7,

                 from /usr/src/linux/include/linux/interrupt.h:11,

                 from /usr/src/linux/include/linux/netdevice.h:610,

                 from /usr/src/linux/include/net/sock.h:48,

                 from /usr/src/linux/include/net/inet_sock.h:25,

                 from /usr/src/linux/include/net/ip.h:30,

                 from tcp_vs_ctl.c:26:

/usr/src/linux/include/asm/irq.h:15:25: error: irq_vectors.h: No existe el
fichero o el directorio

In file included from /usr/src/linux/include/asm/hardirq.h:5,

                 from /usr/src/linux/include/linux/hardirq.h:7,

                 from /usr/src/linux/include/linux/interrupt.h:11,

                 from /usr/src/linux/include/linux/netdevice.h:610,

                 from /usr/src/linux/include/net/sock.h:48,

                 from /usr/src/linux/include/net/inet_sock.h:25,

                 from /usr/src/linux/include/net/ip.h:30,

                 from tcp_vs_ctl.c:26:

/usr/src/linux/include/linux/irq.h: At top level:

/usr/src/linux/include/linux/irq.h:180: error: 'NR_IRQS' undeclared here
(not in a function)

In file included from /usr/src/linux/include/net/tcp.h:35,

                 from tcp_vs_ctl.c:28:

/usr/src/linux/include/net/inet_hashtables.h: In function
'__inet_lookup_established':

/usr/src/linux/include/net/inet_hashtables.h:367: warning: dereferencing
type-pu

nned pointer will break strict-aliasing rules

/usr/src/linux/include/net/inet_hashtables.h:373: warning: dereferencing
type-punned pointer will break strict-aliasing rules

tcp_vs_ctl.c: In function 'do_tcp_vs_set_ctl':

tcp_vs_ctl.c:634: error: 'MOD_INC_USE_COUNT' undeclared (first use in this
function)

tcp_vs_ctl.c:634: error: (Each undeclared identifier is reported only once

tcp_vs_ctl.c:634: error: for each function it appears in.)

tcp_vs_ctl.c:770: error: 'MOD_DEC_USE_COUNT' undeclared (first use in this
function)

tcp_vs_ctl.c: At top level:

tcp_vs_ctl.c:1044: warning: initialization makes pointer from integer
without a

cast

tcp_vs_ctl.c:1045: warning: initialization makes integer from pointer
without a cast

tcp_vs_ctl.c:1053: warning: initialization from incompatible pointer type

tcp_vs_ctl.c:1056: warning: initialization from incompatible pointer type

tcp_vs_ctl.c:1058: warning: initialization from incompatible pointer type

tcp_vs_ctl.c:1061: warning: initialization from incompatible pointer type

tcp_vs_ctl.c:1064: warning: initialization from incompatible pointer type

tcp_vs_ctl.c:1067: warning: initialization from incompatible pointer type

tcp_vs_ctl.c: In function 'tcp_vs_control_start':

tcp_vs_ctl.c:1095: error: too many arguments to function
'register_sysctl_table'

make: *** [tcp_vs_ctl.o] Error 1

 

Thanks beforehand.

 

Cheers.


<Prev in Thread] Current Thread [Next in Thread>
  • [lvs-users] Ktcpvs compiling error, Oliver Fabelo <=