|
From: Erik J. <er...@ma...> - 2008-06-22 13:02:24
|
Aurélien wrote: > > On Sun, Jun 22, 2008 at 1:00 PM, Erik Jakobsen <er...@ma... > <mailto:er...@ma...>> wrote: > > Aurélien wrote: > > On Sun, Jun 22, 2008 at 12:00 PM, Erik Jakobsen > <er...@ma... <mailto:er...@ma...> > > <mailto:er...@ma... <mailto:er...@ma...>>> wrote: > > > > Hi.. > > > > > > Hi Erik, > > > > > > > > I downloaded the pwc software and ran a make. > > > > Got this at the end: > > > > make[4]: *** [/opt/pwc-10.0.12-rc1/pwc-if.o] Error 1 > > make[3]: *** [_module_/opt/pwc-10.0.12-rc1] Error 2 > > make[2]: *** [sub-make] Error 2 > > make[1]: *** [all] Error 2 > > make[1]: Leaving directory > > `/usr/src/linux-2.6.25.5-1.1-obj/i386/default' > > make: *** [all] Error 2 > > > > > > Could you post a few more lines of output ? like the 4-6 lines > > appearing above ? That will help to determine the exact cause of the > > failure. > > > > Thanks. > > > > > Sure I can Aurélien. It's here: > > /opt/pwc-10.0.12-rc1/pwc-if.c:1388: error: dereferencing pointer to > incomplete type > /opt/pwc-10.0.12-rc1/pwc-if.c: In function 'usb_pwc_probe': > /opt/pwc-10.0.12-rc1/pwc-if.c:1722: error: implicit declaration of > function 'video_device_alloc' > /opt/pwc-10.0.12-rc1/pwc-if.c:1722: warning: assignment makes pointer > from integer without a cast > /opt/pwc-10.0.12-rc1/pwc-if.c:1729: error: invalid application of > 'sizeof' to incomplete type 'struct video_device' > /opt/pwc-10.0.12-rc1/pwc-if.c:1729: error: invalid application of > 'sizeof' to incomplete type 'struct video_device' > /opt/pwc-10.0.12-rc1/pwc-if.c:1729: error: invalid application of > 'sizeof' to incomplete type 'struct video_device' > /opt/pwc-10.0.12-rc1/pwc-if.c:1730: error: dereferencing pointer to > incomplete type > /opt/pwc-10.0.12-rc1/pwc-if.c:1731: error: dereferencing pointer to > incomplete type > /opt/pwc-10.0.12-rc1/pwc-if.c:1732: error: dereferencing pointer to > incomplete type > /opt/pwc-10.0.12-rc1/pwc-if.c:1733: error: implicit declaration of > function 'video_set_drvdata' > /opt/pwc-10.0.12-rc1/pwc-if.c:1756: error: dereferencing pointer to > incomplete type > /opt/pwc-10.0.12-rc1/pwc-if.c:1757: error: implicit declaration of > function 'video_register_device' > /opt/pwc-10.0.12-rc1/pwc-if.c:1757: error: 'VFL_TYPE_GRABBER' > undeclared > (first use in this function) > /opt/pwc-10.0.12-rc1/pwc-if.c:1757: error: (Each undeclared identifier > is reported only once > /opt/pwc-10.0.12-rc1/pwc-if.c:1757: error: for each function it > appears in.) > /opt/pwc-10.0.12-rc1/pwc-if.c:1760: error: implicit declaration of > function 'video_device_release' > /opt/pwc-10.0.12-rc1/pwc-if.c:1765: error: dereferencing pointer to > incomplete type > /opt/pwc-10.0.12-rc1/pwc-if.c: In function 'usb_pwc_disconnect': > /opt/pwc-10.0.12-rc1/pwc-if.c:1819: error: implicit declaration of > function 'video_unregister_device' > make[4]: *** [/opt/pwc-10.0.12-rc1/pwc-if.o] Error 1 > make[3]: *** [_module_/opt/pwc-10.0.12-rc1] Error 2 > make[2]: *** [sub-make] Error 2 > make[1]: *** [all] Error 2 > make[1]: Leaving directory > `/usr/src/linux-2.6.25.5-1.1-obj/i386/default' > make: *** [all] Error 2 > > > I may be wrong, but i think some kernel headers either are not found > by the compiler (see in the compiler output if there's a line like > 'file not found', and if it's there, perhaps installing linux-headers > package will help.) or are not compatible with this version of the pwc > module. > > If all the necessary headers are indeed here, please attach the full > output of 'make'. > > Thanks, and have a nice day. > -- > Aurélien Guillaume > Thanks for the reply. I think I have downloaded all the headers: # ls -l /usr/src/ total 16 drwxr-xr-x 5 root root 4096 Jun 21 17:20 debug lrwxrwxrwx 1 root root 18 Jun 22 11:52 linux -> linux-2.6.25.5-1.1 drwxr-xr-x 22 root root 4096 Jun 22 11:52 linux-2.6.25.5-1.1 drwxr-xr-x 3 root root 4096 Jun 22 11:53 linux-2.6.25.5-1.1-obj lrwxrwxrwx 1 root root 22 Jun 22 11:52 linux-obj -> linux-2.6.25.5-1.1-obj drwxr-xr-x 7 root root 4096 Jun 10 14:14 packages Here's the output of make: # make make -C /lib/modules/2.6.25.5-1.1-default/build SUBDIRS=/opt/pwc-10.0.12-rc1 modules make[1]: Entering directory `/usr/src/linux-2.6.25.5-1.1-obj/i386/default' make -C /usr/src/linux-2.6.25.5-1.1 O=/usr/src/linux-2.6.25.5-1.1-obj/i386/default/. modules CC [M] /opt/pwc-10.0.12-rc1/pwc-if.o In file included from /opt/pwc-10.0.12-rc1/pwc-if.c:69: /opt/pwc-10.0.12-rc1/pwc.h:28:26: error: linux/config.h: No such file or directory /opt/pwc-10.0.12-rc1/pwc-if.c:166: error: variable ‘pwc_template’ has initializer but incomplete type /opt/pwc-10.0.12-rc1/pwc-if.c:167: error: unknown field ‘owner’ specified in initializer /opt/pwc-10.0.12-rc1/pwc-if.c:167: warning: excess elements in struct initializer /opt/pwc-10.0.12-rc1/pwc-if.c:167: warning: (near initialization for ‘pwc_template’) /opt/pwc-10.0.12-rc1/pwc-if.c:168: error: unknown field ‘name’ specified in initializer /opt/pwc-10.0.12-rc1/pwc-if.c:168: warning: excess elements in struct initializer /opt/pwc-10.0.12-rc1/pwc-if.c:168: warning: (near initialization for ‘pwc_template’) /opt/pwc-10.0.12-rc1/pwc-if.c:169: error: unknown field ‘type’ specified in initializer /opt/pwc-10.0.12-rc1/pwc-if.c:169: warning: excess elements in struct initializer /opt/pwc-10.0.12-rc1/pwc-if.c:169: warning: (near initialization for ‘pwc_template’) /opt/pwc-10.0.12-rc1/pwc-if.c:170: error: unknown field ‘hardware’ specified in initializer /opt/pwc-10.0.12-rc1/pwc-if.c:170: error: ‘VID_HARDWARE_PWC’ undeclared here (not in a function) /opt/pwc-10.0.12-rc1/pwc-if.c:170: warning: excess elements in struct initializer /opt/pwc-10.0.12-rc1/pwc-if.c:170: warning: (near initialization for ‘pwc_template’) /opt/pwc-10.0.12-rc1/pwc-if.c:171: error: unknown field ‘release’ specified in initializer /opt/pwc-10.0.12-rc1/pwc-if.c:171: error: ‘video_device_release’ undeclared here (not in a function) /opt/pwc-10.0.12-rc1/pwc-if.c:171: warning: excess elements in struct initializer /opt/pwc-10.0.12-rc1/pwc-if.c:171: warning: (near initialization for ‘pwc_template’) /opt/pwc-10.0.12-rc1/pwc-if.c:172: error: unknown field ‘fops’ specified in initializer /opt/pwc-10.0.12-rc1/pwc-if.c:172: warning: excess elements in struct initializer /opt/pwc-10.0.12-rc1/pwc-if.c:172: warning: (near initialization for ‘pwc_template’) /opt/pwc-10.0.12-rc1/pwc-if.c:173: error: unknown field ‘minor’ specified in initializer /opt/pwc-10.0.12-rc1/pwc-if.c:173: warning: excess elements in struct initializer /opt/pwc-10.0.12-rc1/pwc-if.c:173: warning: (near initialization for ‘pwc_template’) /opt/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_isoc_init’: /opt/pwc-10.0.12-rc1/pwc-if.c:921: warning: assignment from incompatible pointer type /opt/pwc-10.0.12-rc1/pwc-if.c: In function ‘cd_to_pwc’: /opt/pwc-10.0.12-rc1/pwc-if.c:1019: error: implicit declaration of function ‘to_video_device’ /opt/pwc-10.0.12-rc1/pwc-if.c:1019: warning: initialization makes pointer from integer without a cast /opt/pwc-10.0.12-rc1/pwc-if.c:1020: error: implicit declaration of function ‘video_get_drvdata’ /opt/pwc-10.0.12-rc1/pwc-if.c:1020: warning: return makes pointer from integer without a cast /opt/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_create_sysfs_files’: /opt/pwc-10.0.12-rc1/pwc-if.c:1062: warning: initialization makes pointer from integer without a cast /opt/pwc-10.0.12-rc1/pwc-if.c:1064: error: implicit declaration of function ‘video_device_create_file’ /opt/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_remove_sysfs_files’: /opt/pwc-10.0.12-rc1/pwc-if.c:1070: warning: initialization makes pointer from integer without a cast /opt/pwc-10.0.12-rc1/pwc-if.c:1072: error: implicit declaration of function ‘video_device_remove_file’ /opt/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_video_open’: /opt/pwc-10.0.12-rc1/pwc-if.c:1112: error: implicit declaration of function ‘video_devdata’ /opt/pwc-10.0.12-rc1/pwc-if.c:1112: warning: initialization makes pointer from integer without a cast /opt/pwc-10.0.12-rc1/pwc-if.c:1117: error: dereferencing pointer to incomplete type /opt/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_video_close’: /opt/pwc-10.0.12-rc1/pwc-if.c:1231: error: dereferencing pointer to incomplete type /opt/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_video_read’: /opt/pwc-10.0.12-rc1/pwc-if.c:1292: error: dereferencing pointer to incomplete type /opt/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_video_poll’: /opt/pwc-10.0.12-rc1/pwc-if.c:1359: error: dereferencing pointer to incomplete type /opt/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_video_ioctl’: /opt/pwc-10.0.12-rc1/pwc-if.c:1375: error: implicit declaration of function ‘video_usercopy’ /opt/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_video_mmap’: /opt/pwc-10.0.12-rc1/pwc-if.c:1388: error: dereferencing pointer to incomplete type /opt/pwc-10.0.12-rc1/pwc-if.c: In function ‘usb_pwc_probe’: /opt/pwc-10.0.12-rc1/pwc-if.c:1722: error: implicit declaration of function ‘video_device_alloc’ /opt/pwc-10.0.12-rc1/pwc-if.c:1722: warning: assignment makes pointer from integer without a cast /opt/pwc-10.0.12-rc1/pwc-if.c:1729: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ /opt/pwc-10.0.12-rc1/pwc-if.c:1729: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ /opt/pwc-10.0.12-rc1/pwc-if.c:1729: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ /opt/pwc-10.0.12-rc1/pwc-if.c:1730: error: dereferencing pointer to incomplete type /opt/pwc-10.0.12-rc1/pwc-if.c:1731: error: dereferencing pointer to incomplete type /opt/pwc-10.0.12-rc1/pwc-if.c:1732: error: dereferencing pointer to incomplete type /opt/pwc-10.0.12-rc1/pwc-if.c:1733: error: implicit declaration of function ‘video_set_drvdata’ /opt/pwc-10.0.12-rc1/pwc-if.c:1756: error: dereferencing pointer to incomplete type /opt/pwc-10.0.12-rc1/pwc-if.c:1757: error: implicit declaration of function ‘video_register_device’ /opt/pwc-10.0.12-rc1/pwc-if.c:1757: error: ‘VFL_TYPE_GRABBER’ undeclared (first use in this function) /opt/pwc-10.0.12-rc1/pwc-if.c:1757: error: (Each undeclared identifier is reported only once /opt/pwc-10.0.12-rc1/pwc-if.c:1757: error: for each function it appears in.) /opt/pwc-10.0.12-rc1/pwc-if.c:1760: error: implicit declaration of function ‘video_device_release’ /opt/pwc-10.0.12-rc1/pwc-if.c:1765: error: dereferencing pointer to incomplete type /opt/pwc-10.0.12-rc1/pwc-if.c: In function ‘usb_pwc_disconnect’: /opt/pwc-10.0.12-rc1/pwc-if.c:1819: error: implicit declaration of function ‘video_unregister_device’ make[4]: *** [/opt/pwc-10.0.12-rc1/pwc-if.o] Error 1 make[3]: *** [_module_/opt/pwc-10.0.12-rc1] Error 2 make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.25.5-1.1-obj/i386/default' make: *** [all] Error 2 Erik |