linux-2.6.18-rc5-git6-2 build driver
hi with linux-2.6.18-rc5-git6-2 kernel (suse factory i can't build webcam driver inux64:/home/collinm/Download/spca5xx-20060501 # make Building SPCA5XX driver for 2.5/2.6 kernel. Remember: you must have read/write access to your kernel source tree. make -C /lib/modules/`uname -r`/build SUBDIRS=/home/collinm/Download/spca5xx-20060501 CC=cc modules make[1]: Entering directory `/usr/src/linux-2.6.18-rc5-git6-2-obj/x86_64/default' make -C ../../../linux-2.6.18-rc5-git6-2 O=../linux-2.6.18-rc5-git6-2-obj/x86_64/default modules CC [M] /home/collinm/Download/spca5xx-20060501/drivers/usb/spca5xx.o /home/collinm/Download/spca5xx-20060501/drivers/usb/spca5xx.c: In function ‘spca5xx_open’: /home/collinm/Download/spca5xx-20060501/drivers/usb/spca5xx.c:2392: error: implicit declaration of function ‘video_devdata’ /home/collinm/Download/spca5xx-20060501/drivers/usb/spca5xx.c:2392: warning: initialization makes pointer from integer without a cast /home/collinm/Download/spca5xx-20060501/drivers/usb/spca5xx.c:2397: error: implicit declaration of function ‘video_get_drvdata’ /home/collinm/Download/spca5xx-20060501/drivers/usb/spca5xx.c:2397: warning: initialization makes pointer from integer without a cast /home/collinm/Download/spca5xx-20060501/drivers/usb/spca5xx.c: In function ‘spca5xx_close’: /home/collinm/Download/spca5xx-20060501/drivers/usb/spca5xx.c:2487: warning: initialization makes pointer from integer without a cast /home/collinm/Download/spca5xx-20060501/drivers/usb/spca5xx.c: In function ‘spca5xx_do_ioctl’: /home/collinm/Download/spca5xx-20060501/drivers/usb/spca5xx.c:2547: warning: initialization makes pointer from integer without a cast /home/collinm/Download/spca5xx-20060501/drivers/usb/spca5xx.c: In function ‘spca5xx_ioctl’: /home/collinm/Download/spca5xx-20060501/drivers/usb/spca5xx.c:3091: error: implicit declaration of function ‘video_usercopy’ /home/collinm/Download/spca5xx-20060501/drivers/usb/spca5xx.c: In function ‘spca5xx_read’: any idea?
On Tuesday 05 September 2006 21:01, Marc Collin wrote:
with linux-2.6.18-rc5-git6-2 kernel (suse factory
i can't build webcam driver
inux64:/home/collinm/Download/spca5xx-20060501 # make Building SPCA5XX driver for 2.5/2.6 kernel. Remember: you must have read/write access to your kernel source tree. make -C /lib/modules/`uname -r`/build /home/collinm/Download/spca5xx-20060501/drivers/usb/spca5xx.c:2392: error: implicit declaration of function ‘video_devdata’ /home/collinm/Download/spca5xx-20060501/drivers/usb/spca5xx.c:2397: error: implicit declaration of function ‘video_get_drvdata’ /home/collinm/Download/spca5xx-20060501/drivers/usb/spca5xx.c:3091: error: implicit declaration of function ‘video_usercopy’ /home/collinm/Download/spca5xx-20060501/drivers/usb/spca5xx.c: In function ‘spca5xx_read’: any idea?
These errors are all code errors in the driver or a potentially a build process error. It looks like it's failing to include a header which it should include or the developers honestly are relying on implicit declarations, which is bad bad bad. In any case, this error needs to be sent to the developers of the driver, along with a kind reminder to test their compilation process before they release the code. -- ----- stephan@s11n.net http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts
participants (2)
-
Marc Collin
-
stephan beal