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