I am trying to compile the driver for web cam Logitech 4000 pro. I have installed kernel-headers and kernel-devel i686 & i86_64 and lots of another development software. I used this link to install proper soft
http://forums.fedoraforum.org/forum/...cc+compilation
But the compilation doesn't work. It worked well on FC5_64! What's wrong with FC6?![]()
The error message is below:
[gres@##### pwc]$ make
make -C /lib/modules/2.6.19-1.2911.6.4.fc6/source SUBDIRS=/home/gres/Download/pwc modules
make[1]: Entering directory `/usr/src/kernels/2.6.19-1.2911.6.4.fc6-x86_64'
CC [M] /home/gres/Download/pwc/pwc-if.o
In file included from /home/gres/Download/pwc/pwc-if.c:69:
/home/gres/Download/pwc/pwc.h:28:26: error: linux/config.h: No such file or directory
/home/gres/Download/pwc/pwc-if.c:166: error: variable ‘pwc_template’ has initializer but incomplete type
/home/gres/Download/pwc/pwc-if.c:167: error: unknown field ‘owner’ specified in initializer
/home/gres/Download/pwc/pwc-if.c:167: warning: excess elements in struct initializer
/home/gres/Download/pwc/pwc-if.c:167: warning: (near initialization for ‘pwc_template’)
/home/gres/Download/pwc/pwc-if.c:168: error: unknown field ‘name’ specified in initializer
/home/gres/Download/pwc/pwc-if.c:168: warning: excess elements in struct initializer
/home/gres/Download/pwc/pwc-if.c:168: warning: (near initialization for ‘pwc_template’)
/home/gres/Download/pwc/pwc-if.c:169: error: unknown field ‘type’ specified in initializer
/home/gres/Download/pwc/pwc-if.c:169: warning: excess elements in struct initializer
/home/gres/Download/pwc/pwc-if.c:169: warning: (near initialization for ‘pwc_template’)
/home/gres/Download/pwc/pwc-if.c:170: error: unknown field ‘hardware’ specified in initializer
/home/gres/Download/pwc/pwc-if.c:170: warning: excess elements in struct initializer
/home/gres/Download/pwc/pwc-if.c:170: warning: (near initialization for ‘pwc_template’)
/home/gres/Download/pwc/pwc-if.c:171: error: unknown field ‘release’ specified in initializer
/home/gres/Download/pwc/pwc-if.c:171: error: ‘video_device_release’ undeclared here (not in a function)
/home/gres/Download/pwc/pwc-if.c:171: warning: excess elements in struct initializer
/home/gres/Download/pwc/pwc-if.c:171: warning: (near initialization for ‘pwc_template’)
/home/gres/Download/pwc/pwc-if.c:172: error: unknown field ‘fops’ specified in initializer
/home/gres/Download/pwc/pwc-if.c:172: warning: excess elements in struct initializer
/home/gres/Download/pwc/pwc-if.c:172: warning: (near initialization for ‘pwc_template’)
/home/gres/Download/pwc/pwc-if.c:173: error: unknown field ‘minor’ specified in initializer
/home/gres/Download/pwc/pwc-if.c:173: warning: excess elements in struct initializer
/home/gres/Download/pwc/pwc-if.c:173: warning: (near initialization for ‘pwc_template’)
/home/gres/Download/pwc/pwc-if.c: In function ‘pwc_isoc_init’:
/home/gres/Download/pwc/pwc-if.c:921: warning: assignment from incompatible pointer type
/home/gres/Download/pwc/pwc-if.c: In function ‘cd_to_pwc’:
/home/gres/Download/pwc/pwc-if.c:1019: error: implicit declaration of function ‘to_video_device’
/home/gres/Download/pwc/pwc-if.c:1019: warning: initialization makes pointer from integer without a cast
/home/gres/Download/pwc/pwc-if.c:1020: error: implicit declaration of function ‘video_get_drvdata’
/home/gres/Download/pwc/pwc-if.c:1020: warning: return makes pointer from integer without a cast
/home/gres/Download/pwc/pwc-if.c: In function ‘pwc_create_sysfs_files’:
/home/gres/Download/pwc/pwc-if.c:1062: warning: initialization makes pointer from integer without a cast
/home/gres/Download/pwc/pwc-if.c:1064: error: implicit declaration of function ‘video_device_create_file’
/home/gres/Download/pwc/pwc-if.c: In function ‘pwc_remove_sysfs_files’:
/home/gres/Download/pwc/pwc-if.c:1070: warning: initialization makes pointer from integer without a cast
/home/gres/Download/pwc/pwc-if.c:1072: error: implicit declaration of function ‘video_device_remove_file’
/home/gres/Download/pwc/pwc-if.c: In function ‘pwc_video_open’:
/home/gres/Download/pwc/pwc-if.c:1112: error: implicit declaration of function ‘video_devdata’
/home/gres/Download/pwc/pwc-if.c:1112: warning: initialization makes pointer from integer without a cast
/home/gres/Download/pwc/pwc-if.c:1117: error: dereferencing pointer to incomplete type
/home/gres/Download/pwc/pwc-if.c: In function ‘pwc_video_close’:
/home/gres/Download/pwc/pwc-if.c:1231: error: dereferencing pointer to incomplete type
/home/gres/Download/pwc/pwc-if.c: In function ‘pwc_video_read’:
/home/gres/Download/pwc/pwc-if.c:1292: error: dereferencing pointer to incomplete type
/home/gres/Download/pwc/pwc-if.c: In function ‘pwc_video_poll’:
/home/gres/Download/pwc/pwc-if.c:1359: error: dereferencing pointer to incomplete type
/home/gres/Download/pwc/pwc-if.c: In function ‘pwc_video_ioctl’:
/home/gres/Download/pwc/pwc-if.c:1375: error: implicit declaration of function ‘video_usercopy’
/home/gres/Download/pwc/pwc-if.c: In function ‘pwc_video_mmap’:
/home/gres/Download/pwc/pwc-if.c:1388: error: dereferencing pointer to incomplete type
/home/gres/Download/pwc/pwc-if.c: In function ‘usb_pwc_probe’:
/home/gres/Download/pwc/pwc-if.c:1722: error: implicit declaration of function ‘video_device_alloc’
/home/gres/Download/pwc/pwc-if.c:1722: warning: assignment makes pointer from integer without a cast
/home/gres/Download/pwc/pwc-if.c:1729: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’
/home/gres/Download/pwc/pwc-if.c:1729: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’
/home/gres/Download/pwc/pwc-if.c:1730: error: dereferencing pointer to incomplete type
/home/gres/Download/pwc/pwc-if.c:1731: error: dereferencing pointer to incomplete type
/home/gres/Download/pwc/pwc-if.c:1732: error: dereferencing pointer to incomplete type
/home/gres/Download/pwc/pwc-if.c:1733: error: implicit declaration of function ‘video_set_drvdata’
/home/gres/Download/pwc/pwc-if.c:1756: error: dereferencing pointer to incomplete type
/home/gres/Download/pwc/pwc-if.c:1757: error: implicit declaration of function ‘video_register_device’
/home/gres/Download/pwc/pwc-if.c:1757: error: ‘VFL_TYPE_GRABBER’ undeclared (first use in this function)
/home/gres/Download/pwc/pwc-if.c:1757: error: (Each undeclared identifier is reported only once
/home/gres/Download/pwc/pwc-if.c:1757: error: for each function it appears in.)
/home/gres/Download/pwc/pwc-if.c:1760: error: implicit declaration of function ‘video_device_release’
/home/gres/Download/pwc/pwc-if.c:1765: error: dereferencing pointer to incomplete type
/home/gres/Download/pwc/pwc-if.c: In function ‘usb_pwc_disconnect’:
/home/gres/Download/pwc/pwc-if.c:1819: error: implicit declaration of function ‘video_unregister_device’
make[2]: *** [/home/gres/Download/pwc/pwc-if.o] Error 1
make[1]: *** [_module_/home/gres/Download/pwc] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.19-1.2911.6.4.fc6-x86_64'
make: *** [all] Error 2


Reply With Quote
