I downloaded the most recent tarball and followed the instructions to compile the module. I recieved the collowing error:
% make
cc -I/usr/src/linux/drivers/usb -I/usr/src/linux/include -include /usr/src/linux/include/linux/config.h -O3 -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -c quickcam.c
quickcam.c: In function `usb_quickcam_configure':
quickcam.c:2177: too few arguments to function `video_register_device_R9ba418d5'
make: *** [quickcam.o] Error 1
The problem appeared to be in the makefile. It was looking at /usr/src/linux for the appropriate source ($LINUX_DIR), but on my redhat (7.3) system the source for my working kernel resided at /usr/src/linux-2.4. I altered the makefile to point to this, and it appears to have compiled correctly. Perhaps there is a better way to find the correct source directory to avoid this problem.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Further to the above problem, the make install script calls depmod -a without giving the full path to depmod. On a RedHat system the /sbin directory doesn't appear to be in the PATH variable, so I get:
# make install
/usr/bin/install -c -m 644 mod_quickcam.o /lib/modules/2.4.18-18.7.x/misc
depmod -a
make: depmod: Command not found
make: *** [install] Error 127
A solution is to change makefile to include /sbin/depmod -a (i.e. the full path), or perhaps verify the initial location of depmod first.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I downloaded the most recent tarball and followed the instructions to compile the module. I recieved the collowing error:
% make
cc -I/usr/src/linux/drivers/usb -I/usr/src/linux/include -include /usr/src/linux/include/linux/config.h -O3 -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -c quickcam.c
quickcam.c: In function `usb_quickcam_configure':
quickcam.c:2177: too few arguments to function `video_register_device_R9ba418d5'
make: *** [quickcam.o] Error 1
The problem appeared to be in the makefile. It was looking at /usr/src/linux for the appropriate source ($LINUX_DIR), but on my redhat (7.3) system the source for my working kernel resided at /usr/src/linux-2.4. I altered the makefile to point to this, and it appears to have compiled correctly. Perhaps there is a better way to find the correct source directory to avoid this problem.
Further to the above problem, the make install script calls depmod -a without giving the full path to depmod. On a RedHat system the /sbin directory doesn't appear to be in the PATH variable, so I get:
# make install
/usr/bin/install -c -m 644 mod_quickcam.o /lib/modules/2.4.18-18.7.x/misc
depmod -a
make: depmod: Command not found
make: *** [install] Error 127
A solution is to change makefile to include /sbin/depmod -a (i.e. the full path), or perhaps verify the initial location of depmod first.