Hi,
I'm looking for modversions.h to compile a module ip_wccp.c, I used to
work with SuSE 9.0 and work fine like follows:
make cloneconfig
make menu_config
make dep
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -march=i386 -DCPU=386 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -c ip_wccp.c
With SuSE 10.0 i dont have a correct ip_wccp.o
make dep
*** Warning: make dep is unnecessary now.
Follow README.SuSE
gcc -D__KERNEL__ -DMODULE -DMODVERSIONS -O2 -Wall
-I/usr/src/linux/include -o ip_wccp.o -c ip_wccp.c
The module ip_wccp.o not work and result in many errors.
I hope Help.
--
Oscar Carrillo
On Thu, 2006-03-09 at 02:10 -0600, Oscar Carrillo wrote:
Hi,
I'm looking for modversions.h to compile a module ip_wccp.c, I used to work with SuSE 9.0 and work fine like follows:
make cloneconfig make menu_config make dep
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -march=i386 -DCPU=386 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -c ip_wccp.c
With SuSE 10.0 i dont have a correct ip_wccp.o
make dep *** Warning: make dep is unnecessary now.
Follow README.SuSE
gcc -D__KERNEL__ -DMODULE -DMODVERSIONS -O2 -Wall -I/usr/src/linux/include -o ip_wccp.o -c ip_wccp.c
The module ip_wccp.o not work and result in many errors.
The kernel has changed a lot since 9.0, now you need to: cd /usr/src cp linux-obj/i386/default(or smp)/Module.symvers linux/ cd linux make cloneconfig make prepare-all (used instead of make dep) Then you should be able to compile your program. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
ok with this: gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -march=i386 -DCPU=386 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.6.13-15/include/config/modversions.h -c ip_wccp.c error: linux:/ # ./compile_wccp10.0 In file included from /usr/src/linux/include/linux/irq.h:21, from /usr/src/linux/include/asm/hardirq.h:6, from /usr/src/linux/include/linux/hardirq.h:7, from /usr/src/linux/include/linux/interrupt.h:11, from /usr/src/linux/include/asm/highmem.h:24, from /usr/src/linux/include/linux/highmem.h:12, from /usr/src/linux/include/linux/skbuff.h:27, from ip_wccp.c:38: /usr/src/linux/include/asm/irq.h:16:25: error: 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:7, from /usr/src/linux/include/linux/interrupt.h:11, from /usr/src/linux/include/asm/highmem.h:24, from /usr/src/linux/include/linux/highmem.h:12, from /usr/src/linux/include/linux/skbuff.h:27, from ip_wccp.c:38: /usr/src/linux/include/linux/irq.h:76: error: ‘NR_IRQS’ undeclared here (not in a function) In file included from /usr/src/linux/include/linux/irq.h:78, from /usr/src/linux/include/asm/hardirq.h:6, from /usr/src/linux/include/linux/hardirq.h:7, from /usr/src/linux/include/linux/interrupt.h:11, from /usr/src/linux/include/asm/highmem.h:24, from /usr/src/linux/include/linux/highmem.h:12, from /usr/src/linux/include/linux/skbuff.h:27, from ip_wccp.c:38: /usr/src/linux/include/asm/hw_irq.h:28: error: ‘NR_IRQ_VECTORS’ undeclared here (not in a function) In file included from ip_wccp.c:38: /usr/src/linux/include/linux/skbuff.h: In function ‘skb_add_data’: /usr/src/linux/include/linux/skbuff.h:1096: warning: pointer targets in passing argument 1 of ‘csum_and_copy_from_user’ differ in signedness In file included from /usr/src/linux/include/net/request_sock.h:22, from /usr/src/linux/include/linux/ip.h:84, from /usr/src/linux/include/linux/tcp.h:198, from /usr/src/linux/include/linux/ipv6.h:177, from /usr/src/linux/include/net/protocol.h:30, from ip_wccp.c:46: /usr/src/linux/include/net/sock.h: In function ‘skb_copy_to_page’: /usr/src/linux/include/net/sock.h:1003: warning: pointer targets in passing argument 1 of ‘csum_and_copy_from_user’ differ in signedness ip_wccp.c: In function ‘ip_wccp_ecn_decapsulate’: ip_wccp.c:69: warning: implicit declaration of function ‘INET_ECN_is_not_ce’ and with this: gcc -D__KERNEL__ -DMODULE -DMODVERSIONS -O2 -Wall -I/usr/src/linux/include -o ip_wccp.o -c ip_wccp.c error: In file included from /usr/src/linux/include/asm/processor.h:18, from /usr/src/linux/include/asm/thread_info.h:17, 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 ip_wccp.c:34: /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:21, from /usr/src/linux/include/asm/hardirq.h:6, from /usr/src/linux/include/linux/hardirq.h:7, from /usr/src/linux/include/linux/interrupt.h:11, from /usr/src/linux/include/asm/highmem.h:24, from /usr/src/linux/include/linux/highmem.h:12, from /usr/src/linux/include/linux/skbuff.h:27, from ip_wccp.c:38: /usr/src/linux/include/asm/irq.h:16:25: error: 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:7, from /usr/src/linux/include/linux/interrupt.h:11, from /usr/src/linux/include/asm/highmem.h:24, from /usr/src/linux/include/linux/highmem.h:12, from /usr/src/linux/include/linux/skbuff.h:27, from ip_wccp.c:38: /usr/src/linux/include/linux/irq.h: At top level: /usr/src/linux/include/linux/irq.h:76: error: ‘NR_IRQS’ undeclared here (not in a function) In file included from /usr/src/linux/include/linux/irq.h:78, from /usr/src/linux/include/asm/hardirq.h:6, from /usr/src/linux/include/linux/hardirq.h:7, from /usr/src/linux/include/linux/interrupt.h:11, from /usr/src/linux/include/asm/highmem.h:24, from /usr/src/linux/include/linux/highmem.h:12, from /usr/src/linux/include/linux/skbuff.h:27, from ip_wccp.c:38: /usr/src/linux/include/asm/hw_irq.h:28: error: ‘NR_IRQ_VECTORS’ undeclared here (not in a function) In file included from ip_wccp.c:38: /usr/src/linux/include/linux/skbuff.h: In function ‘skb_add_data’: /usr/src/linux/include/linux/skbuff.h:1096: warning: pointer targets in passing argument 1 of ‘csum_and_copy_from_user’ differ in signedness In file included from /usr/src/linux/include/net/request_sock.h:22, from /usr/src/linux/include/linux/ip.h:84, from /usr/src/linux/include/linux/tcp.h:198, from /usr/src/linux/include/linux/ipv6.h:177, from /usr/src/linux/include/net/protocol.h:30, from ip_wccp.c:46: /usr/src/linux/include/net/sock.h: In function ‘skb_copy_to_page’: /usr/src/linux/include/net/sock.h:1003: warning: pointer targets in passing argument 1 of ‘csum_and_copy_from_user’ differ in signedness ip_wccp.c: In function ‘ip_wccp_ecn_decapsulate’: ip_wccp.c:69: warning: implicit declaration of function ‘INET_ECN_is_not_ce’
The kernel has changed a lot since 9.0, now you need to:
cd /usr/src cp linux-obj/i386/default(or smp)/Module.symvers linux/ cd linux make cloneconfig make prepare-all (used instead of make dep)
Then you should be able to compile your program.
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
--
Oscar Carrillo
On Thu, 2006-03-09 at 13:46 -0500, Ken Schneider wrote:
The kernel has changed a lot since 9.0, now you need to:
cd /usr/src cp linux-obj/i386/default(or smp)/Module.symvers linux/ cd linux make cloneconfig make prepare-all (used instead of make dep)
Why line #2 (the copy)? -- Roger Oberholtzer OPQ Systems AB Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Tel: Int +46 8-615 60 20 Fax: Int +46 8-31 42 23
On Fri, 2006-03-10 at 09:30 +0100, Roger Oberholtzer wrote:
On Thu, 2006-03-09 at 13:46 -0500, Ken Schneider wrote:
The kernel has changed a lot since 9.0, now you need to:
cd /usr/src cp linux-obj/i386/default(or smp)/Module.symvers linux/ cd linux make cloneconfig make prepare-all (used instead of make dep)
Why line #2 (the copy)?
Because I have programs complain about not finding the info, specifically VMware. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
Any Ideas about modversions.h like this....
cat /usr/src/linux-2.4.21-303/include/linux/modversions.h
#ifndef _LINUX_MODVERSIONS_H
#define _LINUX_MODVERSIONS_H
#include
On Fri, 2006-03-10 at 09:30 +0100, Roger Oberholtzer wrote:
On Thu, 2006-03-09 at 13:46 -0500, Ken Schneider wrote:
The kernel has changed a lot since 9.0, now you need to:
cd /usr/src cp linux-obj/i386/default(or smp)/Module.symvers linux/ cd linux make cloneconfig make prepare-all (used instead of make dep)
Why line #2 (the copy)?
Because I have programs complain about not finding the info, specifically VMware.
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
--
Oscar Carrillo
On Thursday 09 March 2006 19:46, Ken Schneider wrote:
The kernel has changed a lot since 9.0, now you need to:
cd /usr/src cp linux-obj/i386/default(or smp)/Module.symvers linux/ cd linux make cloneconfig make prepare-all (used instead of make dep)
Then you should be able to compile your program.
Not really. You need to change a lot more than that to move from 2.4 to 2.6 -- Certified: Yes. Certifiable: of course! jabberID: anders@rydsbo.net
Excellent!!!! http://www.squid-cache.org/WCCP-support/Linux/ it needed that impulse!!!! My problem is gone. Regards...!!!!!!!!!!!!!! On Thursday 09 March 2006 09:10, Oscar Carrillo wrote:
The module ip_wccp.o not work and result in many errors.
Note that 10.0 uses kernel 2.6, 9.0 used kernel 2.4. The 2.6 kernel uses .ko as a module extension, not .o, so it looks to me like you're still using the same source which will not work. You need to find something specifically for kernel 2.6 On Fri, 2006-03-10 at 18:51 +0100, Anders Johansson wrote:
On Thursday 09 March 2006 19:46, Ken Schneider wrote:
The kernel has changed a lot since 9.0, now you need to:
cd /usr/src cp linux-obj/i386/default(or smp)/Module.symvers linux/ cd linux make cloneconfig make prepare-all (used instead of make dep)
Then you should be able to compile your program.
Not really. You need to change a lot more than that to move from 2.4 to 2.6
-- Certified: Yes. Certifiable: of course! jabberID: anders@rydsbo.net
--
Oscar Carrillo
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 2006-03-10 a las 12:16 -0600, Oscar Carrillo escribió: I wonder why you sent me a BCC copy of this... well, not really. Interesting.
Excellent!!!!
http://www.squid-cache.org/WCCP-support/Linux/
it needed that impulse!!!!
My problem is gone.
Regards...!!!!!!!!!!!!!!
...
Note that 10.0 uses kernel 2.6, 9.0 used kernel 2.4. The 2.6 kernel uses .ko as a module extension, not .o, so it looks to me like you're still using the same source which will not work. You need to find something specifically for kernel 2.6
And that's what I told you, that you needed a module designed for kernel 2.6, not 2.4. You chose to not believe me when I told you so, and turned to SLE list instead. I was reading your thread but not intervening, for obvious reasons. You where told the same things, with more detail. I'm happy that you found what you wanted. - -- Saludos Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEEc8stTMYHG2NR9URAs81AJ4xOPw7K8GmdQix2MMv0sA4yi6IiQCgjC6z DiMO7PIKAAOpy1KfTJCgg5c= =ZBim -----END PGP SIGNATURE-----
On Thursday 09 March 2006 09:10, Oscar Carrillo wrote:
The module ip_wccp.o not work and result in many errors.
Note that 10.0 uses kernel 2.6, 9.0 used kernel 2.4. The 2.6 kernel uses .ko as a module extension, not .o, so it looks to me like you're still using the same source which will not work. You need to find something specifically for kernel 2.6 -- Certified: Yes. Certifiable: of course! jabberID: anders@rydsbo.net
participants (5)
-
Anders Johansson
-
Carlos E. R.
-
Ken Schneider
-
Oscar Carrillo
-
Roger Oberholtzer