[tulip-bug] tulip.c and pci-scan.c do not insmod after compile
Juhan Ernits
juhan@cc.ioc.ee
Thu May 30 12:12:00 2002
On Thu, 30 May 2002, Carsten Cimander wrote:
> thanks for your hints:
> now I succeeded in compiling and "insmod" pci-scan.o :-)
> but after a compile of tulip.c with your options (no complaints)
> I cannot "insmod" tulip.c - the error resists:
>
> # insmod pci-scan.o
> # insmod tulip.o
> tulip.o was compiled for kernel version 2.4.7
> while this kernel is version 2.4.17
> # lsmod
> Module Size Used by
> pci-scan 3360 0 (unused)
>
> Could you help someone blind like me further more?
You seem to have kernel headers for 2.4.7 installed in /usr/include. Try
removing them or try swapping the -I/usr/include and
-I/usr/src/linux/include option for tulip.c compilation line.
Regards,
Juhan
> > gcc -DMODULE -D__KERNEL__ \
> > -I/usr/include -I/usr/src/linux/include \
> > -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h \
> > -DKBUILD_BASENAME=tulip -o tulip.o -O6 -c tulip.c
> > gcc -DMODULE -D__KERNEL__ \
> > -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h \
> > -I/usr/src/linux/include -DKBUILD_BASENAME=pci-scan -o
> > pci-scan.o -O6 -c
> > pci-scan.c