[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem with compiling



I am trying to install a webcam on my etch dist.

I get this:

# make
make -C /lib/modules/2.6.18-5-486/build SUBDIRS=/opt/pwc-10.0.11 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.18-5-486'
CC [M] /opt/pwc-10.0.11/pwc-if.o
/opt/pwc-10.0.11/pwc-if.c:164: error: variable ‘pwc_template’ has initializer but incomplete type /opt/pwc-10.0.11/pwc-if.c:165: error: unknown field ‘owner’ specified in initializer /opt/pwc-10.0.11/pwc-if.c:165: warning: excess elements in struct initializer /opt/pwc-10.0.11/pwc-if.c:165: warning: (near initialization for ‘pwc_template’) /opt/pwc-10.0.11/pwc-if.c:166: error: unknown field ‘name’ specified in initializer /opt/pwc-10.0.11/pwc-if.c:166: warning: excess elements in struct initializer /opt/pwc-10.0.11/pwc-if.c:166: warning: (near initialization for ‘pwc_template’) /opt/pwc-10.0.11/pwc-if.c:167: error: unknown field ‘type’ specified in initializer /opt/pwc-10.0.11/pwc-if.c:167: warning: excess elements in struct initializer /opt/pwc-10.0.11/pwc-if.c:167: warning: (near initialization for ‘pwc_template’) /opt/pwc-10.0.11/pwc-if.c:168: error: unknown field ‘hardware’ specified in initializer /opt/pwc-10.0.11/pwc-if.c:168: warning: excess elements in struct initializer /opt/pwc-10.0.11/pwc-if.c:168: warning: (near initialization for ‘pwc_template’) /opt/pwc-10.0.11/pwc-if.c:169: error: unknown field ‘release’ specified in initializer /opt/pwc-10.0.11/pwc-if.c:169: error: ‘video_device_release’ undeclared here (not in a function) /opt/pwc-10.0.11/pwc-if.c:169: warning: excess elements in struct initializer /opt/pwc-10.0.11/pwc-if.c:169: warning: (near initialization for ‘pwc_template’) /opt/pwc-10.0.11/pwc-if.c:170: error: unknown field ‘fops’ specified in initializer /opt/pwc-10.0.11/pwc-if.c:170: warning: excess elements in struct initializer /opt/pwc-10.0.11/pwc-if.c:170: warning: (near initialization for ‘pwc_template’) /opt/pwc-10.0.11/pwc-if.c:171: error: unknown field ‘minor’ specified in initializer /opt/pwc-10.0.11/pwc-if.c:171: warning: excess elements in struct initializer /opt/pwc-10.0.11/pwc-if.c:171: warning: (near initialization for ‘pwc_template’)
/opt/pwc-10.0.11/pwc-if.c: In function ‘cd_to_pwc’:
/opt/pwc-10.0.11/pwc-if.c:981: warning: implicit declaration of function ‘to_video_device’ /opt/pwc-10.0.11/pwc-if.c:981: warning: initialization makes pointer from integer without a cast /opt/pwc-10.0.11/pwc-if.c:982: warning: implicit declaration of function ‘video_get_drvdata’ /opt/pwc-10.0.11/pwc-if.c:982: warning: return makes pointer from integer without a cast
/opt/pwc-10.0.11/pwc-if.c: In function ‘pwc_create_sysfs_files’:
/opt/pwc-10.0.11/pwc-if.c:1024: warning: initialization makes pointer from integer without a cast /opt/pwc-10.0.11/pwc-if.c:1026: warning: implicit declaration of function ‘video_device_create_file’
/opt/pwc-10.0.11/pwc-if.c: In function ‘pwc_remove_sysfs_files’:
/opt/pwc-10.0.11/pwc-if.c:1032: warning: initialization makes pointer from integer without a cast /opt/pwc-10.0.11/pwc-if.c:1034: warning: implicit declaration of function ‘video_device_remove_file’
/opt/pwc-10.0.11/pwc-if.c: In function ‘pwc_video_open’:
/opt/pwc-10.0.11/pwc-if.c:1074: warning: implicit declaration of function ‘video_devdata’ /opt/pwc-10.0.11/pwc-if.c:1074: warning: initialization makes pointer from integer without a cast /opt/pwc-10.0.11/pwc-if.c:1079: error: dereferencing pointer to incomplete type
/opt/pwc-10.0.11/pwc-if.c: In function ‘pwc_video_close’:
/opt/pwc-10.0.11/pwc-if.c:1187: error: dereferencing pointer to incomplete type
/opt/pwc-10.0.11/pwc-if.c: In function ‘pwc_video_read’:
/opt/pwc-10.0.11/pwc-if.c:1247: error: dereferencing pointer to incomplete type
/opt/pwc-10.0.11/pwc-if.c: In function ‘pwc_video_poll’:
/opt/pwc-10.0.11/pwc-if.c:1311: error: dereferencing pointer to incomplete type
/opt/pwc-10.0.11/pwc-if.c: In function ‘pwc_video_ioctl’:
/opt/pwc-10.0.11/pwc-if.c:1327: warning: implicit declaration of function ‘video_usercopy’
/opt/pwc-10.0.11/pwc-if.c: In function ‘pwc_video_mmap’:
/opt/pwc-10.0.11/pwc-if.c:1340: error: dereferencing pointer to incomplete type
/opt/pwc-10.0.11/pwc-if.c: In function ‘usb_pwc_probe’:
/opt/pwc-10.0.11/pwc-if.c:1648: warning: implicit declaration of function ‘video_device_alloc’ /opt/pwc-10.0.11/pwc-if.c:1648: warning: assignment makes pointer from integer without a cast /opt/pwc-10.0.11/pwc-if.c:1655: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ /opt/pwc-10.0.11/pwc-if.c:1655: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ /opt/pwc-10.0.11/pwc-if.c:1655: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ /opt/pwc-10.0.11/pwc-if.c:1656: error: dereferencing pointer to incomplete type /opt/pwc-10.0.11/pwc-if.c:1657: error: dereferencing pointer to incomplete type /opt/pwc-10.0.11/pwc-if.c:1658: error: dereferencing pointer to incomplete type /opt/pwc-10.0.11/pwc-if.c:1659: warning: implicit declaration of function ‘video_set_drvdata’ /opt/pwc-10.0.11/pwc-if.c:1682: error: dereferencing pointer to incomplete type /opt/pwc-10.0.11/pwc-if.c:1683: warning: implicit declaration of function ‘video_register_device’ /opt/pwc-10.0.11/pwc-if.c:1683: error: ‘VFL_TYPE_GRABBER’ undeclared (first use in this function) /opt/pwc-10.0.11/pwc-if.c:1683: error: (Each undeclared identifier is reported only once
/opt/pwc-10.0.11/pwc-if.c:1683: error: for each function it appears in.)
/opt/pwc-10.0.11/pwc-if.c:1686: warning: implicit declaration of function ‘video_device_release’ /opt/pwc-10.0.11/pwc-if.c:1691: error: dereferencing pointer to incomplete type
/opt/pwc-10.0.11/pwc-if.c: In function ‘usb_pwc_disconnect’:
/opt/pwc-10.0.11/pwc-if.c:1745: warning: implicit declaration of function ‘video_unregister_device’
make[2]: *** [/opt/pwc-10.0.11/pwc-if.o] Error 1
make[1]: *** [_module_/opt/pwc-10.0.11] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.18-5-486'
make: *** [all] Error 2


What is wrong here ?



Reply to: