[Mageia-discuss] USB webcam prob

Renaud (Ron) Olgiati renaud at olgiati-in-paraguay.org
Fri Sep 30 00:57:56 CEST 2011


On Thursday 29 Sep 2011 13:03 my mailbox was graced by a message from Florian 
Hubold who wrote:
> The link alone does not help, you need a driver for it.
> http://www.linuxquestions.org/questions/linux-hardware-18/webcam-support-ge
> nius-slim-311r-703967/

Following from that link, I found and downloaded the driver.

When I try to compile it (make modules after make clean), it get all the 
warnings and error messages below.
 
HELP !

TIA,,
 
Ron.
-- 
            A drama critic is a person who surprises a playwright
                       by informing him what he meant.
                                                 -- Wilson Mizner
                                    
                   -- http://www.olgiati-in-paraguay.org --


root at localhost:/home/ron/Downloads/sn9c1xx-1.48 # make modules
**************************************************************************
* Building Video4Linux2 driver v1.48 for SN9C1xx PC Camera Controllers...*
* Official Linux 2.6.19 is the minimum version for this driver.          *
* Read the documentation "sn9c102.txt" for more informations.            *
* Type "make help" for a list of available targets.                      *
**************************************************************************

make -C /lib/modules/`uname -r`/build M=/home/ron/Downloads/sn9c1xx-1.48 
modules
make[1]: Entering directory `/usr/src/linux-2.6.38.8-desktop-4.mga'
  CC [M]  /home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.o
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1033:40: warning: ‘struct 
class_device’ declared inside parameter list
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1033:40: warning: its scope is 
only this definition or declaration, which is probably not what you want
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: In function 
‘sn9c102_show_reg’:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1041:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1041:26: warning: type 
defaults to ‘int’ in declaration of ‘__mptr’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1041:26: warning: 
initialization from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1041:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1057:26: warning: ‘struct 
class_device’ declared inside parameter list
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: In function 
‘sn9c102_store_reg’:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1066:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1066:26: warning: type 
defaults to ‘int’ in declaration of ‘__mptr’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1066:26: warning: 
initialization from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1066:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1090:40: warning: ‘struct 
class_device’ declared inside parameter list
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: In function 
‘sn9c102_show_val’:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1099:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1099:26: warning: type 
defaults to ‘int’ in declaration of ‘__mptr’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1099:26: warning: 
initialization from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1099:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1122:26: warning: ‘struct 
class_device’ declared inside parameter list
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: In function 
‘sn9c102_store_val’:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1132:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1132:26: warning: type 
defaults to ‘int’ in declaration of ‘__mptr’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1132:26: warning: 
initialization from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1132:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1161:44: warning: ‘struct 
class_device’ declared inside parameter list
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: In function 
‘sn9c102_show_i2c_reg’:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1169:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1169:26: warning: type 
defaults to ‘int’ in declaration of ‘__mptr’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1169:26: warning: 
initialization from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1169:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1187:30: warning: ‘struct 
class_device’ declared inside parameter list
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: In function 
‘sn9c102_store_i2c_reg’:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1196:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1196:26: warning: type 
defaults to ‘int’ in declaration of ‘__mptr’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1196:26: warning: 
initialization from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1196:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1220:44: warning: ‘struct 
class_device’ declared inside parameter list
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: In function 
‘sn9c102_show_i2c_val’:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1229:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1229:26: warning: type 
defaults to ‘int’ in declaration of ‘__mptr’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1229:26: warning: 
initialization from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1229:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1257:30: warning: ‘struct 
class_device’ declared inside parameter list
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: In function 
‘sn9c102_store_i2c_val’:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1267:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1267:26: warning: type 
defaults to ‘int’ in declaration of ‘__mptr’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1267:26: warning: 
initialization from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1267:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1302:28: warning: ‘struct 
class_device’ declared inside parameter list
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: In function 
‘sn9c102_store_green’:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1313:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1313:26: warning: type 
defaults to ‘int’ in declaration of ‘__mptr’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1313:26: warning: 
initialization from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1313:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1333:3: warning: passing 
argument 1 of ‘sn9c102_store_reg’ from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1057:1: note: expected ‘struct 
class_device *’ but argument is of type ‘struct class_device *’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1334:4: warning: passing 
argument 1 of ‘sn9c102_store_val’ from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1122:1: note: expected ‘struct 
class_device *’ but argument is of type ‘struct class_device *’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1341:3: warning: passing 
argument 1 of ‘sn9c102_store_reg’ from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1057:1: note: expected ‘struct 
class_device *’ but argument is of type ‘struct class_device *’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1342:4: warning: passing 
argument 1 of ‘sn9c102_store_val’ from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1122:1: note: expected ‘struct 
class_device *’ but argument is of type ‘struct class_device *’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1351:27: warning: ‘struct 
class_device’ declared inside parameter list
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: In function 
‘sn9c102_store_blue’:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1361:2: warning: passing 
argument 1 of ‘sn9c102_store_reg’ from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1057:1: note: expected ‘struct 
class_device *’ but argument is of type ‘struct class_device *’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1362:3: warning: passing 
argument 1 of ‘sn9c102_store_val’ from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1122:1: note: expected ‘struct 
class_device *’ but argument is of type ‘struct class_device *’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1369:26: warning: ‘struct 
class_device’ declared inside parameter list
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: In function 
‘sn9c102_store_red’:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1379:2: warning: passing 
argument 1 of ‘sn9c102_store_reg’ from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1057:1: note: expected ‘struct 
class_device *’ but argument is of type ‘struct class_device *’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1380:3: warning: passing 
argument 1 of ‘sn9c102_store_val’ from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1122:1: note: expected ‘struct 
class_device *’ but argument is of type ‘struct class_device *’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1386:49: warning: ‘struct 
class_device’ declared inside parameter list
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: In function 
‘sn9c102_show_frame_header’:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1391:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1391:26: warning: type 
defaults to ‘int’ in declaration of ‘__mptr’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1391:26: warning: 
initialization from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1391:26: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1405:31: error: expected ‘)’ 
before ‘(’ token
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1407:31: error: expected ‘)’ 
before ‘(’ token
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1409:35: error: expected ‘)’ 
before ‘(’ token
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1411:35: error: expected ‘)’ 
before ‘(’ token
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1413:33: error: expected ‘)’ 
before ‘(’ token
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1414:32: error: expected ‘)’ 
before ‘(’ token
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1415:31: error: expected ‘)’ 
before ‘(’ token
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1416:40: error: expected ‘)’ 
before ‘(’ token
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: In function 
‘sn9c102_create_sysfs’:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1422:47: error: ‘struct 
video_device’ has no member named ‘class_dev’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1425:2: error: implicit 
declaration of function ‘class_device_create_file’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1425:49: error: 
‘class_device_attr_reg’ undeclared (first use in this function)
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1425:49: note: each undeclared 
identifier is reported only once for each function it appears in
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1427:49: error: 
‘class_device_attr_val’ undeclared (first use in this function)
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1430:39: error: 
‘class_device_attr_frame_header’ undeclared (first use in this function)
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1435:38: error: 
‘class_device_attr_i2c_reg’ undeclared (first use in this function)
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1438:38: error: 
‘class_device_attr_i2c_val’ undeclared (first use in this function)
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1444:40: error: 
‘class_device_attr_green’ undeclared (first use in this function)
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1448:40: error: 
‘class_device_attr_blue’ undeclared (first use in this function)
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1451:40: error: 
‘class_device_attr_red’ undeclared (first use in this function)
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1458:2: error: implicit 
declaration of function ‘class_device_remove_file’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: In function 
‘sn9c102_vidioc_querycap’:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:2135:41: error: ‘struct 
device’ has no member named ‘bus_id’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: In function ‘sn9c102_ioctl’:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:3191:2: error: implicit 
declaration of function ‘v4l_print_ioctl’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:3206:2: error: unknown field 
‘ioctl’ specified in initializer
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:3206:2: warning: 
initialization from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:3207:18: error: 
‘v4l_compat_ioctl32’ undeclared here (not in a function)
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: In function 
‘sn9c102_usb_probe’:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:3300:13: error: ‘struct 
video_device’ has no member named ‘owner’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:3301:13: error: ‘struct 
video_device’ has no member named ‘type’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:3301:22: error: 
‘VID_TYPE_CAPTURE’ undeclared (first use in this function)
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:3301:41: error: 
‘VID_TYPE_SCALES’ undeclared (first use in this function)
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:3302:13: error: ‘struct 
video_device’ has no member named ‘hardware’
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:3303:20: warning: assignment 
from incompatible pointer type
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1033:16: warning: 
‘sn9c102_show_reg’ defined but not used
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1090:16: warning: 
‘sn9c102_show_val’ defined but not used
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1161:16: warning: 
‘sn9c102_show_i2c_reg’ defined but not used
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1187:1: warning: 
‘sn9c102_store_i2c_reg’ defined but not used
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1220:16: warning: 
‘sn9c102_show_i2c_val’ defined but not used
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1257:1: warning: 
‘sn9c102_store_i2c_val’ defined but not used
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1302:1: warning: 
‘sn9c102_store_green’ defined but not used
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1351:1: warning: 
‘sn9c102_store_blue’ defined but not used
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1369:1: warning: 
‘sn9c102_store_red’ defined but not used
/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.c:1386:16: warning: 
‘sn9c102_show_frame_header’ defined but not used
make[2]: *** [/home/ron/Downloads/sn9c1xx-1.48/sn9c102_core.o] Error 1
make[1]: *** [_module_/home/ron/Downloads/sn9c1xx-1.48] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.38.8-desktop-4.mga'
make: *** [modules] Error 2



More information about the Mageia-discuss mailing list