hi everyone,

i am failing to build this module and hope someone can give me a few ideas. here is my system:

2.6.28-18-generic #59-Ubuntu SMP Thu Jan 28 01:40:19 UTC 2010 x86_64 GNU/Linux

when attempting to make, here is what i receive.

******************start*************************************************************
d...@genrlmain:~/Desktop/pwc-10.0.12-rc1$ make
make -C /lib/modules/2.6.28-18-generic/build SUBDIRS=/home/dave/Desktop/pwc-10.0.12-rc1 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-18-generic'
CC [M] /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.o
In file included from /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:69:
/home/dave/Desktop/pwc-10.0.12-rc1/pwc.h:28:26: error: linux/config.h: No such file or directory /home/dave/Desktop/pwc-10.0.12-rc1/pwc.h:37:27: error: asm/semaphore.h: No such file or directory /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:166: error: variable 'pwc_template' has initializer but incomplete type /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:167: error: unknown field 'owner' specified in initializer /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:167: warning: excess elements in struct initializer /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:167: warning: (near initialization for 'pwc_template') /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:168: error: unknown field 'name' specified in initializer /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:168: warning: excess elements in struct initializer /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:168: warning: (near initialization for 'pwc_template') /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:169: error: unknown field 'type' specified in initializer /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:169: warning: excess elements in struct initializer /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:169: warning: (near initialization for 'pwc_template') /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:170: error: unknown field 'hardware' specified in initializer /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:170: error: 'VID_HARDWARE_PWC' undeclared here (not in a function) /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:170: warning: excess elements in struct initializer /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:170: warning: (near initialization for 'pwc_template') /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:171: error: unknown field 'release' specified in initializer /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:171: error: 'video_device_release' undeclared here (not in a function) /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:171: warning: excess elements in struct initializer /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:171: warning: (near initialization for 'pwc_template') /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:172: error: unknown field 'fops' specified in initializer /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:172: warning: excess elements in struct initializer /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:172: warning: (near initialization for 'pwc_template') /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:173: error: unknown field 'minor' specified in initializer /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:173: warning: excess elements in struct initializer /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:173: warning: (near initialization for 'pwc_template')
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function 'pwc_isoc_init':
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:921: warning: assignment from incompatible pointer type
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: At top level:
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1017: warning: 'struct class_device' declared inside parameter list /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1017: warning: its scope is only this definition or declaration, which is probably not what you want
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function 'cd_to_pwc':
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1019: error: implicit declaration of function 'to_video_device' /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1019: warning: initialization makes pointer from integer without a cast /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1020: error: implicit declaration of function 'video_get_drvdata' /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1020: warning: return makes pointer from integer without a cast
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: At top level:
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1023: warning: 'struct class_device' declared inside parameter list
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function 'show_pan_tilt':
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1025: warning: passing argument 1 of 'cd_to_pwc' from incompatible pointer type
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: At top level:
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1030: warning: 'struct class_device' declared inside parameter list
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function 'store_pan_tilt':
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1032: warning: passing argument 1 of 'cd_to_pwc' from incompatible pointer type
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: At top level:
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1046: error: expected ')' before '(' token /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1049: warning: 'struct class_device' declared inside parameter list /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function 'show_snapshot_button_status': /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1051: warning: passing argument 1 of 'cd_to_pwc' from incompatible pointer type
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: At top level:
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1057: error: expected ')' before '(' token /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function 'pwc_create_sysfs_files': /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1062: warning: initialization makes pointer from integer without a cast /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1064: error: implicit declaration of function 'video_device_create_file' /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1064: error: 'class_device_attr_pan_tilt' undeclared (first use in this function) /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1064: error: (Each undeclared identifier is reported only once /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1064: error: for each function it appears in.) /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1065: error: 'class_device_attr_button' undeclared (first use in this function) /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function 'pwc_remove_sysfs_files': /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1070: warning: initialization makes pointer from integer without a cast /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1072: error: implicit declaration of function 'video_device_remove_file' /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1072: error: 'class_device_attr_pan_tilt' undeclared (first use in this function) /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1073: error: 'class_device_attr_button' undeclared (first use in this function)
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function 'pwc_video_open':
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1112: error: implicit declaration of function 'video_devdata' /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1112: warning: initialization makes pointer from integer without a cast /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1117: error: dereferencing pointer to incomplete type
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function 'pwc_video_close':
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1231: error: dereferencing pointer to incomplete type
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function 'pwc_video_read':
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1292: error: dereferencing pointer to incomplete type
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function 'pwc_video_poll':
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1359: error: dereferencing pointer to incomplete type
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function 'pwc_video_ioctl':
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1375: error: implicit declaration of function 'video_usercopy'
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function 'pwc_video_mmap':
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1388: error: dereferencing pointer to incomplete type
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function 'usb_pwc_probe':
/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1722: error: implicit declaration of function 'video_device_alloc' /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1722: warning: assignment makes pointer from integer without a cast /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1729: error: invalid application of 'sizeof' to incomplete type 'struct video_device' /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1730: error: dereferencing pointer to incomplete type /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1731: error: dereferencing pointer to incomplete type /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1732: error: dereferencing pointer to incomplete type /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1733: error: implicit declaration of function 'video_set_drvdata' /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1756: error: dereferencing pointer to incomplete type /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1757: error: implicit declaration of function 'video_register_device' /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1757: error: 'VFL_TYPE_GRABBER' undeclared (first use in this function) /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1760: error: implicit declaration of function 'video_device_release' /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1765: error: dereferencing pointer to incomplete type /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function 'usb_pwc_disconnect': /home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.c:1819: error: implicit declaration of function 'video_unregister_device'
make[2]: *** [/home/dave/Desktop/pwc-10.0.12-rc1/pwc-if.o] Error 1
make[1]: *** [_module_/home/dave/Desktop/pwc-10.0.12-rc1] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-18-generic'
make: *** [all] Error 2

******************end*************************************************************


can anybody see something that i am doing clearly wrong?



thanks for looking and please reply,


-dave
_______________________________________________
pwc mailing list
pwc@lists.saillard.org
http://lists.saillard.org/mailman/listinfo/pwc

Reply via email to