I am using Fedora Core 5. The kernel version is 2.6.15-1.2054_FC5. I downloaded a driver (Uncompiled, version 4.71) for my Intel 536EP Modem from intel.com. As the driver needs the kernel source, therefore I also installed the package kernel-devel-2.6.15-1.2054_FC5.i686.rpm that I downloaded from Fedora Core's web site. But when I tried to compile the driver, the result was as below:
[root@localhost saad]# cd ./Intel-536
[root@localhost Intel-536]# make clean
cd coredrv; make clean
make[1]: Entering directory `/home/saad/Intel-536/coredrv'
rm -f *.ko *.o *~ core
make[1]: Leaving directory `/home/saad/Intel-536/coredrv'
rm -f *.o *.ko
[root@localhost Intel-536]# make 536
Module precompile check
Current running kernel is: 2.6.15-1.2054_FC5
/lib/modules... autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: No such file or directory
autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: No such file or directory
version.h matches running kernel
uname -r|grep "2.6" && \
cd coredrv && make 536core_26 && \
cp Intel536.ko .. && cd .. && \
strip --strip-debug Intel536.ko && \
exit; \
ls Intel536.ko >/dev/null 2>&1 || uname -r | grep "2.6" && echo "Failed to build driver" && exit; \
if [ ]; then \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_SOURCE_PATH= "PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
else \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_INCLUDES=/lib/modules/`uname -r`/build/include \
"PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
fi ; \
cp Intel536.o .. ; \
if [ -a /boot/vmlinuz.version.h ]; then \
cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h;\
fi
2.6.15-1.2054_FC5
make[1]: Entering directory `/home/saad/Intel-536/coredrv'
make -C /lib/modules/2.6.15-1.2054_FC5/build SUBDIRS=/home/saad/Intel-536/coredrv modules
make[2]: Entering directory `/usr/src/kernels/2.6.15-1.2054_FC5-i686'
CC [M] /home/saad/Intel-536/coredrv/coredrv.o
/home/saad/Intel-536/coredrv/coredrv.c:73: warning: data definition has no type or storage class
/home/saad/Intel-536/coredrv/coredrv.c:73: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_NOVERS’
/home/saad/Intel-536/coredrv/coredrv.c:73: warning: parameter names (without types) in function declaration
/home/saad/Intel-536/coredrv/coredrv.c: In function ‘softcore_init_struct’:
/home/saad/Intel-536/coredrv/coredrv.c:339: warning: assignment from incompatible pointer type
/home/saad/Intel-536/coredrv/coredrv.c: In function ‘close’:
/home/saad/Intel-536/coredrv/coredrv.c:439: warning: implicit declaration of function ‘pm_unregister’
/home/saad/Intel-536/coredrv/coredrv.c: In function ‘send_data_to_user’:
/home/saad/Intel-536/coredrv/coredrv.c:587: error: ‘struct tty_struct’ has no member named ‘flip’
/home/saad/Intel-536/coredrv/coredrv.c:592: error: ‘struct tty_struct’ has no member named ‘flip’
/home/saad/Intel-536/coredrv/coredrv.c:593: error: ‘struct tty_struct’ has no member named ‘flip’
/home/saad/Intel-536/coredrv/coredrv.c:595: error: ‘struct tty_struct’ has no member named ‘flip’
/home/saad/Intel-536/coredrv/coredrv.c:596: error: ‘struct tty_struct’ has no member named ‘flip’
/home/saad/Intel-536/coredrv/coredrv.c:597: error: ‘struct tty_struct’ has no member named ‘flip’
/home/saad/Intel-536/coredrv/coredrv.c: In function ‘hamproc_write’:
/home/saad/Intel-536/coredrv/coredrv.c:684: warning: ignoring return value of ‘copy_from_user’, declared with attribute warn_unused_result
/home/saad/Intel-536/coredrv/coredrv.c: At top level:
/home/saad/Intel-536/coredrv/coredrv.c:880: warning: initialization makes integer from pointer without a cast
make[3]: *** [/home/saad/Intel-536/coredrv/coredrv.o] Error 1
make[2]: *** [_module_/home/saad/Intel-536/coredrv] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.15-1.2054_FC5-i686'
make[1]: *** [536core_26] Error 2
make[1]: Leaving directory `/home/saad/Intel-536/coredrv'
2.6.15-1.2054_FC5
Failed to build driver
[root@localhost Intel-536]#
I cannot understand what it means.
Please help me!