pwcbsd and kmod-gspca

agrapha freebsd at box201.com
Sat Oct 10 17:45:47 UTC 2009


So I'm having some difficulty installing support for my logitech webcam.

dmesg see's the usb connection but fails to load up a driver

ugen0.2: <vendor 0x046d> at usbus0 (disconnected)
ugen0.2: <vendor 0x046d> at usbus0

I've tried to build from ports spcaview and linux-kmod-gspca. I even  
downloaded the pwcbsd-luigi-20070117.tgz but when I type "make" the  
build crashes.

Now to be fair I am on FreeBSD 8.0 as suggested by the USB guru for  
freebsd because of it's usb2.0 better support. My ports tree is up to  
date. Can someone help me untangle this? I wanted to hook up  
multimedia/motion for a security system.

/usr/home/freesbie/pwcbsd/pwcbsd/pwcbsd> make
make -f Makefile.kld all
Warning: Object directory not changed from original  
/usr/home/bduke/pwcbsd/pwcbsd/pwcbsd
cc -O2 -pipe -DUSB_DEBUG -DOLD_USB_COMPAT -fno-strict-aliasing -Werror  
-D_KERNEL -DKLD_MODULE -nostdinc  -I../spca5xx-20060402/drivers/usb  
-I../qce-ga-0.40d -I. -I@ -I@/contrib/altq -finline-limit=8000 --param  
inline-unit-growth=100 --param large-function-growth=1000 -fno-common   
-mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx  
-mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding  
-fstack-protector -std=iso9899:1999 -fstack-protector -Wall  
-Wredundant-decls -Wnested-externs -Wstrict-prototypes   
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef  
-Wno-pointer-sign -fformat-extensions -c pwc.c
In file included from pwc.h:50,
                  from pwc.c:27:
linux_usbif.h:36:30: error: dev/usb/usb_port.h: No such file or directory
linux_usbif.h:37:30: error: dev/usb/usbdivar.h: No such file or directory
In file included from pwc.h:50,
                  from pwc.c:27:
linux_usbif.h:112: error: redefinition of 'struct usb_device_id'
In file included from pwc.c:27:
pwc.h:181: error: field 'devno' has incomplete type
pwc.h:230: error: expected specifier-qualifier-list before  
'usbd_device_handle'
pwc.h:391: error: expected declaration specifiers or '...' before  
'usbd_interface_handle'
pwc.h:392: error: expected ')' before 'udev'
pwc.c:29: error: expected ')' before 'xfer'
cc1: warnings being treated as errors
pwc.c:101: warning: data definition has no type or storage class
pwc.c:101: warning: type defaults to 'int' in declaration of  
'USB_DECLARE_DRIVER'
pwc.c:101: warning: parameter names (without types) in function declaration
pwc.c: In function 'pwc_lookup1':
pwc.c:108: warning: implicit declaration of function 'usb_lookup'
pwc.c:108: warning: nested extern declaration of 'usb_lookup'
pwc.c:110: error: 'struct pwc_softc' has no member named 'pwc_info'
pwc.c:111: error: 'struct pwc_softc' has no member named 'pwc_info'
pwc.c:111: error: request for member 'cb' in something not a structure  
or union
pwc.c:112: error: 'struct pwc_softc' has no member named 'camera_cb'
pwc.c:112: error: 'struct pwc_softc' has no member named 'pwc_info'
pwc.c:112: error: request for member 'cb' in something not a structure  
or union
pwc.c:112: warning: passing argument 2 of 'bcopy' discards qualifiers  
from pointer target type
pwc.c:115: error: 'struct pwc_softc' has no member named 'camera_cb'
pwc.c:115: warning: statement with no effect
pwc.c:119: error: 'struct pwc_softc' has no member named 'pwc_info'
pwc.c:119: warning: assignment from incompatible pointer type
pwc.c: In function 'pwc_match':
pwc.c:138: error: 'struct usb_attach_arg' has no member named 'vendor'
pwc.c:138: error: 'struct usb_attach_arg' has no member named 'product'
pwc.c:138: error: 'struct usb_attach_arg' has no member named 'release'
pwc.c:138: warning: format '%x' expects type 'unsigned int', but  
argument 3 has type 'const struct pwc_info *'
pwc.c:138: warning: format '%x' expects type 'unsigned int', but  
argument 4 has type 'const struct pwc_info *'
pwc.c:138: warning: format '%04x' expects type 'unsigned int', but  
argument 5 has type 'const struct pwc_info *'
pwc.c:140: error: 'struct usb_attach_arg' has no member named 'vendor'
pwc.c:140: error: 'struct usb_attach_arg' has no member named 'product'
pwc.c:140: warning: passing argument 1 of 'pwc_lookup1' makes integer  
from pointer without a cast
pwc.c:140: warning: passing argument 2 of 'pwc_lookup1' makes integer  
from pointer without a cast
pwc.c:141: error: 'UMATCH_NONE' undeclared (first use in this function)
pwc.c:141: error: (Each undeclared identifier is reported only once
pwc.c:141: error: for each function it appears in.)
pwc.c:141: warning: return makes integer from pointer without a cast
pwc.c:144: error: 'struct usb_attach_arg' has no member named 'usegeneric'
pwc.c:145: error: 'UMATCH_VENDOR_PRODUCT' undeclared (first use in  
this function)
pwc.c:145: warning: return makes integer from pointer without a cast
pwc.c:149: warning: return makes integer from pointer without a cast
pwc.c:154: warning: return makes integer from pointer without a cast
pwc.c:164: error: 'struct usb_attach_arg' has no member named 'vendor'
pwc.c:164: error: 'struct usb_attach_arg' has no member named 'product'
pwc.c:164: warning: format '%04x' expects type 'unsigned int', but  
argument 2 has type 'const struct pwc_info *'
pwc.c:164: warning: format '%04x' expects type 'unsigned int', but  
argument 3 has type 'const struct pwc_info *'
pwc.c:166: warning: return makes integer from pointer without a cast
pwc.c:167: warning: return makes integer from pointer without a cast
pwc.c: In function 'pwc_attach':
pwc.c:189: error: 'struct pwc_softc' has no member named 'udev'
pwc.c:189: warning: statement with no effect
pwc.c:191: error: 'struct pwc_softc' has no member named 'release'
pwc.c:191: error: 'struct usb_attach_arg' has no member named 'release'
pwc.c:191: warning: statement with no effect
pwc.c:193: error: 'struct usb_attach_arg' has no member named 'vendor'
pwc.c:193: error: 'struct usb_attach_arg' has no member named 'product'
pwc.c:193: warning: passing argument 1 of 'pwc_lookup1' makes integer  
from pointer without a cast
pwc.c:193: warning: passing argument 2 of 'pwc_lookup1' makes integer  
from pointer without a cast
pwc.c:197: error: 'struct usb_attach_arg' has no member named 'vendor'
pwc.c:197: error: 'struct usb_attach_arg' has no member named 'product'
pwc.c:197: warning: format '%x' expects type 'unsigned int', but  
argument 3 has type 'const struct pwc_info *'
pwc.c:197: warning: format '%x' expects type 'unsigned int', but  
argument 4 has type 'const struct pwc_info *'
pwc.c:201: warning: implicit declaration of function 'usbd_devinfo'
pwc.c:201: warning: nested extern declaration of 'usbd_devinfo'
pwc.c:206: warning: implicit declaration of function  
'usbd_device2interface_handle'
pwc.c:206: warning: nested extern declaration of  
'usbd_device2interface_handle'
pwc.c:206: error: 'struct pwc_softc' has no member named 'sc_iface'
pwc.c:212: error: 'struct pwc_softc' has no member named 'power_save'
pwc.c:212: warning: statement with no effect
pwc.c:214: error: 'struct pwc_softc' has no member named 'spca50x'
pwc.c:214: error: request for member 'dev' in something not a  
structure or union
pwc.c:214: error: 'struct pwc_softc' has no member named 'udev'
pwc.c:214: warning: statement with no effect
pwc.c:215: error: 'struct pwc_softc' has no member named 'spca50x'
pwc.c:215: error: request for member 'pwc_softc' in something not a  
structure or union
pwc.c:215: warning: statement with no effect
pwc.c:217: error: 'struct pwc_softc' has no member named 'camera_cb'
pwc.c:217: error: request for member 'cb_consume' in something not a  
structure or union
pwc.c:219: error: 'struct pwc_softc' has no member named 'camera_cb'
pwc.c:219: error: request for member 'cb_consume' in something not a  
structure or union
pwc.c:219: warning: statement with no effect
pwc.c:222: error: 'struct pwc_softc' has no member named 'udev'
pwc.c:222: warning: passing argument 1 of 'usbd_get_device_descriptor'  
from incompatible pointer type
pwc.c:224: error: 'USB_MAX_STRING_LEN' undeclared (first use in this function)
pwc.c:226: warning: implicit declaration of function 'usbd_get_string'
pwc.c:226: warning: nested extern declaration of 'usbd_get_string'
pwc.c:226: error: 'struct pwc_softc' has no member named 'udev'
pwc.c:226: error: 'struct pwc_softc' has no member named 'serial'
pwc.c:227: error: 'struct pwc_softc' has no member named 'udev'
pwc.c:228: error: 'struct pwc_softc' has no member named 'udev'
pwc.c:230: warning: format '%s' expects type 'char *', but argument 2  
has type 'const struct pwc_info *'
pwc.c:230: warning: format '%s' expects type 'char *', but argument 3  
has type 'const struct pwc_info *'
pwc.c:225: warning: unused variable 'manufact'
pwc.c:224: warning: unused variable 'prod'
pwc.c:235: error: 'struct pwc_softc' has no member named 'serial'
pwc.c:235: warning: passing argument 1 of 'strcpy' from incompatible  
pointer type
pwc.c:238: error: 'struct pwc_softc' has no member named 'ptrlock'
pwc.c:238: warning: passing argument 1 of 'mtx_init' from incompatible  
pointer type
pwc.c:242: error: 'struct pwc_softc' has no member named 'sc_dev_t'
pwc.c:243: warning: statement with no effect
pwc.c:245: error: 'struct pwc_softc' has no member named 'power_save'
pwc.c:245: warning: passing argument 4 of 'resource_int_value' from  
incompatible pointer type
pwc.c:247: error: 'struct pwc_softc' has no member named 'stats'
pwc.c:247: warning: statement with no effect
pwc.c:248: error: 'struct pwc_softc' has no member named 'stats'
pwc.c:248: warning: passing argument 4 of 'resource_int_value' from  
incompatible pointer type
pwc.c:250: error: 'struct pwc_softc' has no member named 'led_on'
pwc.c:250: warning: statement with no effect
pwc.c:251: error: 'struct pwc_softc' has no member named 'led_on'
pwc.c:251: warning: passing argument 4 of 'resource_int_value' from  
incompatible pointer type
pwc.c:252: error: 'struct pwc_softc' has no member named 'led_on'
pwc.c:253: error: 'struct pwc_softc' has no member named 'led_on'
pwc.c:253: warning: statement with no effect
pwc.c:255: error: 'struct pwc_softc' has no member named 'led_off'
pwc.c:255: warning: statement with no effect
pwc.c:256: error: 'struct pwc_softc' has no member named 'led_off'
pwc.c:256: warning: passing argument 4 of 'resource_int_value' from  
incompatible pointer type
pwc.c:257: error: 'struct pwc_softc' has no member named 'led_off'
pwc.c:258: error: 'struct pwc_softc' has no member named 'led_off'
pwc.c:258: warning: statement with no effect
pwc.c:260: error: 'struct pwc_softc' has no member named 'vframes'
pwc.c:260: warning: statement with no effect
pwc.c:261: error: 'struct pwc_softc' has no member named 'vframes'
pwc.c:261: warning: passing argument 4 of 'resource_int_value' from  
incompatible pointer type
pwc.c:262: error: 'struct pwc_softc' has no member named 'vframes'
pwc.c:262: warning: comparison between pointer and integer
pwc.c:262: error: 'struct pwc_softc' has no member named 'vframes'
pwc.c:262: warning: comparison between pointer and integer
pwc.c:263: error: 'struct pwc_softc' has no member named 'vframes'
pwc.c:263: warning: statement with no effect
pwc.c:268: error: 'struct pwc_softc' has no member named 'pwc_mbufs'
pwc.c:268: warning: statement with no effect
pwc.c:270: error: 'struct pwc_softc' has no member named 'pwc_mbufs'
pwc.c:270: warning: passing argument 4 of 'resource_int_value' from  
incompatible pointer type
pwc.c:271: error: 'struct pwc_softc' has no member named 'pwc_mbufs'
pwc.c:271: warning: comparison between pointer and integer
pwc.c:271: error: 'struct pwc_softc' has no member named 'pwc_mbufs'
pwc.c:271: warning: comparison between pointer and integer
pwc.c:272: error: 'struct pwc_softc' has no member named 'pwc_mbufs'
pwc.c:272: warning: statement with no effect
pwc.c:274: error: 'struct pwc_softc' has no member named 'pwc_fbufs'
pwc.c:274: warning: statement with no effect
pwc.c:275: error: 'struct pwc_softc' has no member named 'pwc_fbufs'
pwc.c:275: warning: passing argument 4 of 'resource_int_value' from  
incompatible pointer type
pwc.c:276: error: 'struct pwc_softc' has no member named 'pwc_fbufs'
pwc.c:276: warning: comparison between pointer and integer
pwc.c:276: error: 'struct pwc_softc' has no member named 'pwc_fbufs'
pwc.c:276: warning: comparison between pointer and integer
pwc.c:277: error: 'struct pwc_softc' has no member named 'pwc_fbufs'
pwc.c:277: warning: statement with no effect
pwc.c:279: error: 'struct pwc_softc' has no member named 'vcompression'
pwc.c:279: warning: statement with no effect
pwc.c:280: error: 'struct pwc_softc' has no member named 'vcompression'
pwc.c:280: warning: passing argument 4 of 'resource_int_value' from  
incompatible pointer type
pwc.c:281: error: 'struct pwc_softc' has no member named 'vcompression'
pwc.c:281: warning: comparison between pointer and integer
pwc.c:282: error: 'struct pwc_softc' has no member named 'vcompression'
pwc.c:282: warning: statement with no effect
pwc.c:284: error: 'struct pwc_softc' has no member named 'vsize'
pwc.c:284: warning: statement with no effect
pwc.c:290: error: 'struct pwc_softc' has no member named 'vsize'
pwc.c:290: warning: statement with no effect
pwc.c:295: error: 'struct pwc_softc' has no member named 'vsize'
pwc.c:295: warning: comparison between pointer and integer
pwc.c:295: error: 'struct pwc_softc' has no member named 'vframes'
pwc.c:295: warning: comparison between pointer and integer
pwc.c:296: error: 'struct pwc_softc' has no member named 'vframes'
pwc.c:296: warning: statement with no effect
pwc.c:298: error: 'struct pwc_softc' has no member named 'pwc_pad'
pwc.c:298: warning: statement with no effect
pwc.c:299: error: 'struct pwc_softc' has no member named 'pwc_pad'
pwc.c:299: warning: passing argument 4 of 'resource_int_value' from  
incompatible pointer type
pwc.c:301: error: 'struct pwc_softc' has no member named 'camera_cb'
pwc.c:301: error: request for member 'cb_attach' in something not a  
structure or union
pwc.c:302: error: 'struct pwc_softc' has no member named 'camera_cb'
pwc.c:302: error: request for member 'cb_attach' in something not a  
structure or union
pwc.c:302: error: called object '<erroneous-expression>' is not a function
pwc.c:302: warning: statement with no effect
pwc.c:304: error: 'struct pwc_softc' has no member named 'pwc_info'
pwc.c:304: error: request for member 'name' in something not a  
structure or union
pwc.c:304: error: 'struct pwc_softc' has no member named 'serial'
pwc.c:304: error: 'struct pwc_softc' has no member named 'pwc_info'
pwc.c:304: error: request for member 'type' in something not a  
structure or union
pwc.c:304: warning: format '%s' expects type 'char *', but argument 3  
has type 'const struct pwc_info *'
pwc.c:304: warning: format '%s' expects type 'char *', but argument 4  
has type 'const struct pwc_info *'
pwc.c:304: warning: format '%d' expects type 'int', but argument 5 has  
type 'const struct pwc_info *'
pwc.c:306: error: 'struct pwc_softc' has no member named 'pwc_info'
pwc.c:306: error: request for member 'sensor' in something not a  
structure or union
pwc.c:306: error: 'struct pwc_softc' has no member named 'pwc_info'
pwc.c:306: error: request for member 'sensor' in something not a  
structure or union
pwc.c:306: warning: passing argument 1 of 'sensor_name' makes integer  
from pointer without a cast
pwc.c:307: error: 'struct pwc_softc' has no member named 'pwc_info'
pwc.c:307: error: request for member 'bridge' in something not a  
structure or union
pwc.c:307: error: 'struct pwc_softc' has no member named 'pwc_info'
pwc.c:307: error: request for member 'bridge' in something not a  
structure or union
pwc.c:307: warning: passing argument 1 of 'bridge_name' makes integer  
from pointer without a cast
pwc.c:307: warning: format '%d' expects type 'int', but argument 3 has  
type 'const struct pwc_info *'
pwc.c:307: warning: format '%d' expects type 'int', but argument 5 has  
type 'const struct pwc_info *'
pwc.c:309: warning: implicit declaration of function 'usbd_add_drv_event'
pwc.c:309: warning: nested extern declaration of 'usbd_add_drv_event'
pwc.c:309: error: 'USB_EVENT_DRIVER_ATTACH' undeclared (first use in  
this function)
pwc.c:309: error: 'struct pwc_softc' has no member named 'udev'
pwc.c:309: warning: implicit declaration of function 'USBDEV'
pwc.c:309: warning: nested extern declaration of 'USBDEV'
pwc.c: In function 'close_videopipe':
pwc.c:319: error: 'struct pwc_softc' has no member named 'sc_videopipe'
pwc.c:320: warning: implicit declaration of function 'usbd_abort_pipe'
pwc.c:320: warning: nested extern declaration of 'usbd_abort_pipe'
pwc.c:320: error: 'struct pwc_softc' has no member named 'sc_videopipe'
pwc.c:321: warning: implicit declaration of function 'usbd_close_pipe'
pwc.c:321: warning: nested extern declaration of 'usbd_close_pipe'
pwc.c:321: error: 'struct pwc_softc' has no member named 'sc_videopipe'
pwc.c:322: error: 'struct pwc_softc' has no member named 'sc_videopipe'
pwc.c:322: warning: statement with no effect
pwc.c: In function 'pwc_detach':
pwc.c:337: error: 'struct pwc_softc' has no member named 'error_status'
pwc.c:337: warning: statement with no effect
pwc.c:339: error: 'struct pwc_softc' has no member named 'vopen'
pwc.c:340: error: 'struct pwc_softc' has no member named 'state'
pwc.c:340: error: invalid operands to binary &
pwc.c:343: error: 'struct pwc_softc' has no member named 'state'
pwc.c:343: error: invalid operands to binary &
pwc.c:344: error: 'struct pwc_softc' has no member named 'state'
pwc.c:344: warning: statement with no effect
pwc.c:345: error: 'struct pwc_softc' has no member named 'rsel'
pwc.c:345: warning: passing argument 1 of 'selwakeuppri' from  
incompatible pointer type
pwc.c:348: warning: implicit declaration of function 'usb_detach_wait'
pwc.c:348: warning: nested extern declaration of 'usb_detach_wait'
pwc.c:352: error: 'struct pwc_softc' has no member named 'sc_dev_t'
pwc.c:353: error: 'struct pwc_softc' has no member named 'sc_dev_t'
pwc.c:353: warning: passing argument 1 of 'destroy_dev' from  
incompatible pointer type
pwc.c:355: error: 'struct pwc_softc' has no member named 'ptrlock'
pwc.c:355: warning: passing argument 1 of 'mtx_destroy' from  
incompatible pointer type
pwc.c:357: error: 'USB_EVENT_DRIVER_DETACH' undeclared (first use in  
this function)
pwc.c:357: error: 'struct pwc_softc' has no member named 'udev'
pwc.c: At top level:
pwc.c:369: error: expected declaration specifiers or '...' before  
'usb_proc_ptr'
pwc.c:370: error: conflicting types for 'pwc_open'
pwc.c:40: error: previous declaration of 'pwc_open' was here
pwc.c: In function 'pwc_open':
pwc.c:373: error: invalid operands to binary &
pwc.c:374: error: 'pwc_devclass' undeclared (first use in this function)
pwc.c:374: warning: passing argument 1 of 'devclass_get_softc' from  
incompatible pointer type
pwc.c:382: error: 'struct pwc_softc' has no member named 'error_status'
pwc.c:382: warning: comparison between pointer and integer
pwc.c:383: error: 'struct pwc_softc' has no member named 'error_status'
pwc.c:383: warning: return makes integer from pointer without a cast
pwc.c:385: error: 'struct pwc_softc' has no member named 'ptrlock'
pwc.c:385: warning: passing argument 1 of '_mtx_lock_flags' from  
incompatible pointer type
pwc.c:386: error: 'struct pwc_softc' has no member named 'vopen'
pwc.c:387: error: 'struct pwc_softc' has no member named 'ptrlock'
pwc.c:387: warning: passing argument 1 of '_mtx_unlock_flags' from  
incompatible pointer type
pwc.c:390: error: 'struct pwc_softc' has no member named 'vopen'
pwc.c:390: warning: statement with no effect
pwc.c:391: error: 'struct pwc_softc' has no member named 'ptrlock'
pwc.c:391: warning: passing argument 1 of '_mtx_unlock_flags' from  
incompatible pointer type
pwc.c:397: error: 'struct pwc_softc' has no member named 'vframes'
pwc.c:397: warning: assignment makes integer from pointer without a cast
pwc.c:400: error: 'struct pwc_softc' has no member named 'camera_cb'
pwc.c:400: error: request for member 'cb_open' in something not a  
structure or union
pwc.c:400: error: 'struct pwc_softc' has no member named 'camera_cb'
pwc.c:400: error: request for member 'cb_open' in something not a  
structure or union
pwc.c:400: error: called object '<erroneous-expression>' is not a function
pwc.c:400: warning: assignment makes integer from pointer without a cast
pwc.c:406: error: 'struct pwc_softc' has no member named 'pwc_fbufs'
pwc.c:406: error: invalid operands to binary *
pwc.c:406: warning: assignment makes integer from pointer without a cast
pwc.c:407: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:407: warning: statement with no effect
pwc.c:408: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:413: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:413: warning: passing argument 1 of 'memset' discards qualifiers  
from pointer target type
pwc.c:416: error: 'struct pwc_softc' has no member named 'pwc_fbufs'
pwc.c:416: warning: comparison between pointer and integer
pwc.c:417: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:417: error: 'struct pwc_info' has no member named 'data'
pwc.c:417: warning: statement with no effect
pwc.c:418: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:418: error: 'struct pwc_info' has no member named 'data'
pwc.c:422: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:422: error: 'struct pwc_info' has no member named 'data'
pwc.c:422: warning: passing argument 1 of 'memset' discards qualifiers  
from pointer target type
pwc.c:423: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:423: error: 'struct pwc_info' has no member named 'filled'
pwc.c:423: warning: statement with no effect
pwc.c:427: error: 'struct pwc_softc' has no member named 'image_data'
pwc.c:428: error: 'struct pwc_softc' has no member named 'image_data'
pwc.c:428: error: 'struct pwc_softc' has no member named 'pwc_mbufs'
pwc.c:428: error: 'struct pwc_softc' has no member named 'len_per_image'
pwc.c:428: error: invalid operands to binary &
pwc.c:428: error: invalid operands to binary *
pwc.c:428: warning: passing argument 1 of 'malloc' makes integer from  
pointer without a cast
pwc.c:428: warning: statement with no effect
pwc.c:429: error: 'struct pwc_softc' has no member named 'image_data'
pwc.c:434: error: 'struct pwc_softc' has no member named 'pwc_mbufs'
pwc.c:434: warning: comparison between pointer and integer
pwc.c:435: error: 'struct pwc_softc' has no member named 'images'
pwc.c:435: error: 'struct pwc_info' has no member named 'bufmem'
pwc.c:435: error: 'struct pwc_softc' has no member named 'image_data'
pwc.c:435: warning: cast discards qualifiers from pointer target type
pwc.c:435: error: 'struct pwc_softc' has no member named 'len_per_image'
pwc.c:435: error: invalid operands to binary &
pwc.c:435: error: invalid operands to binary *
pwc.c:435: error: invalid operands to binary +
pwc.c:435: warning: statement with no effect
pwc.c:436: error: 'struct pwc_softc' has no member named 'images'
pwc.c:436: error: 'struct pwc_info' has no member named 'vma_use_count'
pwc.c:436: warning: statement with no effect
pwc.c:439: error: 'struct pwc_softc' has no member named 'images'
pwc.c:439: error: 'struct pwc_info' has no member named 'bufmem'
pwc.c:439: warning: statement with no effect
pwc.c:441: error: 'struct pwc_softc' has no member named 'pwc_mbufs'
pwc.c:441: warning: comparison between pointer and integer
pwc.c:442: error: 'struct pwc_softc' has no member named 'image_used'
pwc.c:442: error: assignment of read-only location
pwc.c:442: warning: statement with no effect
pwc.c:447: error: 'struct pwc_softc' has no member named 'sbuf'
pwc.c:447: error: 'struct pwc_info' has no member named 'sc'
pwc.c:447: warning: statement with no effect
pwc.c:448: error: 'struct pwc_softc' has no member named 'xfer'
pwc.c:448: warning: implicit declaration of function 'usbd_alloc_xfer'
pwc.c:448: warning: nested extern declaration of 'usbd_alloc_xfer'
pwc.c:448: error: 'struct pwc_softc' has no member named 'udev'
pwc.c:448: error: assignment of read-only location
pwc.c:448: warning: statement with no effect
pwc.c:450: error: 'struct pwc_softc' has no member named 'xfer'
pwc.c:450: error: invalid operands to binary ==
pwc.c:455: error: 'struct pwc_softc' has no member named 'sbuf'
pwc.c:455: error: 'struct pwc_info' has no member named 'data'
pwc.c:455: warning: implicit declaration of function 'usbd_alloc_buffer'
pwc.c:455: warning: nested extern declaration of 'usbd_alloc_buffer'
pwc.c:455: error: 'struct pwc_softc' has no member named 'xfer'
pwc.c:455: warning: statement with no effect
pwc.c:456: error: 'struct pwc_softc' has no member named 'sbuf'
pwc.c:456: error: 'struct pwc_info' has no member named 'data'
pwc.c:463: error: 'struct pwc_softc' has no member named 'state'
pwc.c:463: warning: statement with no effect
pwc.c:464: error: 'struct pwc_softc' has no member named 'frames'
pwc.c:464: warning: statement with no effect
pwc.c:465: error: 'struct pwc_softc' has no member named 'start_ticks'
pwc.c:465: warning: statement with no effect
pwc.c:466: error: 'struct pwc_softc' has no member named 'byte_count'
pwc.c:466: warning: statement with no effect
pwc.c:467: error: 'struct pwc_softc' has no member named 'bytes_skipped'
pwc.c:467: warning: statement with no effect
pwc.c:469: error: 'struct pwc_softc' has no member named 'vframe_count'
pwc.c:469: warning: statement with no effect
pwc.c:470: error: 'struct pwc_softc' has no member named 'vframes_dumped'
pwc.c:470: warning: statement with no effect
pwc.c:471: error: 'struct pwc_softc' has no member named 'vframes_error'
pwc.c:471: warning: statement with no effect
pwc.c:472: error: 'struct pwc_softc' has no member named 'visoc_errors'
pwc.c:472: warning: statement with no effect
pwc.c:473: error: 'struct pwc_softc' has no member named 'error_status'
pwc.c:473: warning: statement with no effect
pwc.c:474: error: 'struct pwc_softc' has no member named 'vsnapshot'
pwc.c:474: warning: statement with no effect
pwc.c:477: error: 'struct pwc_softc' has no member named 'state'
pwc.c:477: warning: statement with no effect
pwc.c:479: error: 'struct pwc_softc' has no member named 'vsize'
pwc.c:479: error: array subscript is not an integer
pwc.c:479: error: request for member 'xy' in something not a structure  
or union
pwc.c:479: error: request for member 'x' in something not a structure or union
pwc.c:479: error: 'struct pwc_softc' has no member named 'vsize'
pwc.c:479: error: array subscript is not an integer
pwc.c:479: error: request for member 'xy' in something not a structure  
or union
pwc.c:479: error: request for member 'y' in something not a structure or union
pwc.c:480: error: 'struct pwc_softc' has no member named 'vcompression'
pwc.c:480: warning: passing argument 2 of 'pwc_try_video_mode' makes  
integer from pointer without a cast
pwc.c:480: warning: passing argument 3 of 'pwc_try_video_mode' makes  
integer from pointer without a cast
pwc.c:480: warning: passing argument 5 of 'pwc_try_video_mode' makes  
integer from pointer without a cast
pwc.c:481: error: 'struct pwc_softc' has no member named 'state'
pwc.c:481: warning: statement with no effect
pwc.c:483: error: 'struct pwc_softc' has no member named 'spca50x'
pwc.c:483: warning: passing argument 1 of 'init_jpeg_decoder' from  
incompatible pointer type
pwc.c:490: error: 'struct pwc_softc' has no member named 'vopen'
pwc.c:490: warning: statement with no effect
pwc.c: At top level:
pwc.c:496: error: expected declaration specifiers or '...' before  
'usb_proc_ptr'
pwc.c:497: error: conflicting types for 'pwc_close'
pwc.c:41: error: previous declaration of 'pwc_close' was here
pwc.c: In function 'pwc_close':
pwc.c:498: error: invalid operands to binary &
pwc.c:499: error: 'pwc_devclass' undeclared (first use in this function)
pwc.c:499: warning: passing argument 1 of 'devclass_get_softc' from  
incompatible pointer type
pwc.c:500: error: 'struct pwc_softc' has no member named 'start_ticks'
pwc.c:500: error: invalid operands to binary -
pwc.c:500: warning: initialization makes integer from pointer without a cast
pwc.c:504: error: 'struct pwc_softc' has no member named 'frames'
pwc.c:505: error: 'struct pwc_softc' has no member named 'frames'
pwc.c:505: warning: statement with no effect
pwc.c:506: error: 'struct pwc_softc' has no member named 'bytes_skipped'
pwc.c:506: warning: format '%d' expects type 'int', but argument 2 has  
type 'const struct pwc_info *'
pwc.c:508: error: 'struct pwc_softc' has no member named 'frames'
pwc.c:508: error: 'struct pwc_softc' has no member named 'vframes_dumped'
pwc.c:509: error: 'struct pwc_softc' has no member named 'frames'
pwc.c:509: error: invalid operands to binary *
pwc.c:509: error: invalid operands to binary *
pwc.c:509: error: invalid operands to binary /
pwc.c:510: error: 'struct pwc_softc' has no member named 'visoc_errors'
pwc.c:511: error: 'struct pwc_softc' has no member named 'byte_count'
pwc.c:512: error: 'struct pwc_softc' has no member named 'byte_count'
pwc.c:512: error: 'struct pwc_softc' has no member named 'frames'
pwc.c:512: error: invalid operands to binary /
pwc.c:512: warning: format '%d' expects type 'int', but argument 2 has  
type 'const struct pwc_info *'
pwc.c:512: warning: format '%d' expects type 'int', but argument 3 has  
type 'const struct pwc_info *'
pwc.c:512: warning: format '%d' expects type 'int', but argument 5 has  
type 'const struct pwc_info *'
pwc.c:512: warning: format '%d' expects type 'int', but argument 6 has  
type 'const struct pwc_info *'
pwc.c:512: warning: format '%d' expects type 'int', but argument 7 has  
type 'const struct pwc_info *'
pwc.c:512: warning: format '%d' expects type 'int', but argument 8 has  
type 'const struct pwc_info *'
pwc.c:520: error: 'struct pwc_softc' has no member named 'vframe_count'
pwc.c:520: warning: comparison between pointer and integer
pwc.c:520: error: 'struct pwc_softc' has no member named 'stats'
pwc.c:523: error: 'struct pwc_softc' has no member named 'vframe_count'
pwc.c:523: error: 'struct pwc_softc' has no member named 'vframes_dumped'
pwc.c:523: error: 'struct pwc_softc' has no member named 'vframes_error'
pwc.c:523: warning: format '%d' expects type 'int', but argument 3 has  
type 'const struct pwc_info *'
pwc.c:523: warning: format '%d' expects type 'int', but argument 4 has  
type 'const struct pwc_info *'
pwc.c:523: warning: format '%d' expects type 'int', but argument 5 has  
type 'const struct pwc_info *'
pwc.c:526: error: 'struct pwc_softc' has no member named 'error_status'
pwc.c:526: warning: comparison between pointer and integer
pwc.c:528: error: 'struct pwc_softc' has no member named 'camera_cb'
pwc.c:528: error: request for member 'cb_close' in something not a  
structure or union
pwc.c:529: error: 'struct pwc_softc' has no member named 'camera_cb'
pwc.c:529: error: request for member 'cb_close' in something not a  
structure or union
pwc.c:529: error: called object '<erroneous-expression>' is not a function
pwc.c:529: warning: statement with no effect
pwc.c:533: error: 'struct pwc_softc' has no member named 'vopen'
pwc.c:533: warning: statement with no effect
pwc.c:534: warning: implicit declaration of function 'usb_detach_wakeup'
pwc.c:534: warning: nested extern declaration of 'usb_detach_wakeup'
pwc.c: In function 'pwc_read':
pwc.c:549: error: invalid operands to binary &
pwc.c:550: error: 'pwc_devclass' undeclared (first use in this function)
pwc.c:550: warning: passing argument 1 of 'devclass_get_softc' from  
incompatible pointer type
pwc.c:557: error: 'struct pwc_softc' has no member named 'error_status'
pwc.c:558: error: 'struct pwc_softc' has no member named 'error_status'
pwc.c:558: warning: return makes integer from pointer without a cast
pwc.c:561: error: 'struct pwc_softc' has no member named 'image_read_pos'
pwc.c:568: error: 'struct pwc_softc' has no member named 'state'
pwc.c:568: warning: statement with no effect
pwc.c:570: error: 'struct pwc_softc' has no member named 'state'
pwc.c:570: warning: statement with no effect
pwc.c:572: error: 'struct pwc_softc' has no member named 'error_status'
pwc.c:573: error: 'struct pwc_softc' has no member named 'error_status'
pwc.c:573: warning: return makes integer from pointer without a cast
pwc.c:581: error: 'struct pwc_softc' has no member named 'vpalette'
pwc.c:581: warning: comparison between pointer and integer
pwc.c:582: error: 'struct pwc_softc' has no member named 'frame_size'
pwc.c:582: warning: assignment makes integer from pointer without a cast
pwc.c:584: error: 'struct pwc_softc' has no member named 'view'
pwc.c:584: error: request for member 'size' in something not a  
structure or union
pwc.c:584: warning: assignment makes integer from pointer without a cast
pwc.c:587: error: 'struct pwc_softc' has no member named 'image_read_pos'
pwc.c:587: warning: comparison between pointer and integer
pwc.c:588: error: 'struct pwc_softc' has no member named 'image_read_pos'
pwc.c:588: error: invalid operands to binary -
pwc.c:588: warning: assignment makes integer from pointer without a cast
pwc.c:592: error: 'struct pwc_softc' has no member named 'images'
pwc.c:592: error: 'struct pwc_softc' has no member named 'fill_image'
pwc.c:592: error: array subscript is not an integer
pwc.c:592: error: request for member 'bufmem' in something not a  
structure or union
pwc.c:592: error: 'struct pwc_softc' has no member named 'image_read_pos'
pwc.c:592: error: invalid operands to binary +
pwc.c:592: warning: passing argument 1 of 'uiomove' discards  
qualifiers from pointer target type
pwc.c:596: error: 'struct pwc_softc' has no member named 'image_read_pos'
pwc.c:596: warning: statement with no effect
pwc.c:597: error: 'struct pwc_softc' has no member named 'image_read_pos'
pwc.c:597: warning: comparison between pointer and integer
pwc.c:598: error: 'struct pwc_softc' has no member named 'frames'
pwc.c:598: error: lvalue required as increment operand
pwc.c:598: warning: statement with no effect
pwc.c:599: error: 'struct pwc_softc' has no member named 'image_read_pos'
pwc.c:599: warning: statement with no effect
pwc.c:601: error: 'struct pwc_softc' has no member named 'image_used'
pwc.c:601: error: 'struct pwc_softc' has no member named 'fill_image'
pwc.c:601: error: array subscript is not an integer
pwc.c:601: warning: statement with no effect
pwc.c:602: error: 'struct pwc_softc' has no member named 'fill_image'
pwc.c:602: error: 'struct pwc_softc' has no member named 'fill_image'
pwc.c:602: error: 'struct pwc_softc' has no member named 'pwc_mbufs'
pwc.c:602: error: invalid operands to binary %
pwc.c:602: warning: statement with no effect
pwc.c: At top level:
pwc.c:609: error: expected declaration specifiers or '...' before  
'usb_proc_ptr'
pwc.c:610: error: conflicting types for 'pwc_ioctl'
pwc.c:43: error: previous declaration of 'pwc_ioctl' was here
pwc.c: In function 'pwc_ioctl':
pwc.c:611: error: invalid operands to binary &
pwc.c:612: error: 'pwc_devclass' undeclared (first use in this function)
pwc.c:612: warning: passing argument 1 of 'devclass_get_softc' from  
incompatible pointer type
pwc.c:616: error: 'struct pwc_softc' has no member named 'error_status'
pwc.c:617: error: 'struct pwc_softc' has no member named 'error_status'
pwc.c:617: warning: return makes integer from pointer without a cast
pwc.c: At top level:
pwc.c:623: error: expected declaration specifiers or '...' before  
'usb_proc_ptr'
pwc.c:624: error: conflicting types for 'pwc_poll'
pwc.c:45: error: previous declaration of 'pwc_poll' was here
pwc.c: In function 'pwc_poll':
pwc.c:625: error: invalid operands to binary &
pwc.c:626: error: 'pwc_devclass' undeclared (first use in this function)
pwc.c:626: warning: passing argument 1 of 'devclass_get_softc' from  
incompatible pointer type
pwc.c:631: error: 'struct pwc_softc' has no member named 'error_status'
pwc.c:632: error: 'struct pwc_softc' has no member named 'error_status'
pwc.c:632: warning: return makes integer from pointer without a cast
pwc.c:635: error: 'struct pwc_softc' has no member named 'ptrlock'
pwc.c:635: warning: passing argument 1 of '_mtx_lock_flags' from  
incompatible pointer type
pwc.c:636: error: 'struct pwc_softc' has no member named 'full_frames'
pwc.c:637: error: 'struct pwc_softc' has no member named 'state'
pwc.c:637: warning: statement with no effect
pwc.c:638: error: 'p' undeclared (first use in this function)
pwc.c:638: error: 'struct pwc_softc' has no member named 'rsel'
pwc.c:638: warning: passing argument 1 of 'selrecord' from  
incompatible pointer type
pwc.c:638: warning: passing argument 2 of 'selrecord' from  
incompatible pointer type
pwc.c:645: error: 'struct pwc_softc' has no member named 'ptrlock'
pwc.c:645: warning: passing argument 1 of '_mtx_unlock_flags' from  
incompatible pointer type
pwc.c: At top level:
pwc.c:707: error: expected declaration specifiers or '...' before  
'usbd_xfer_handle'
pwc.c: In function 'setup_xfer':
pwc.c:714: error: 'struct pwc_softc' has no member named 'vmax_packet_size'
pwc.c:714: warning: assignment makes integer from pointer without a cast
pwc.c:716: warning: implicit declaration of function 'usbd_setup_isoc_xfer'
pwc.c:716: warning: nested extern declaration of 'usbd_setup_isoc_xfer'
pwc.c:716: error: 'xfer' undeclared (first use in this function)
pwc.c:716: error: 'struct pwc_softc' has no member named 'sc_videopipe'
pwc.c:717: error: 'USBD_NO_COPY' undeclared (first use in this function)
pwc.c:717: error: 'pwc_isoc_handler' undeclared (first use in this function)
pwc.c:719: warning: implicit declaration of function 'usbd_transfer'
pwc.c:719: warning: nested extern declaration of 'usbd_transfer'
pwc.c: In function 'pwc_try_video_mode':
pwc.c:737: error: 'struct pwc_softc' has no member named 'view'
pwc.c:737: error: request for member 'x' in something not a structure or union
pwc.c:737: error: 'struct pwc_softc' has no member named 'view'
pwc.c:737: error: request for member 'y' in something not a structure or union
pwc.c:737: error: 'struct pwc_softc' has no member named 'vframes'
pwc.c:737: error: 'struct pwc_softc' has no member named 'vcompression'
pwc.c:737: error: 'struct pwc_softc' has no member named 'vsnapshot'
pwc.c:737: warning: passing argument 2 of 'pwc_set_video_mode' makes  
integer from pointer without a cast
pwc.c:737: warning: passing argument 3 of 'pwc_set_video_mode' makes  
integer from pointer without a cast
pwc.c:737: warning: passing argument 4 of 'pwc_set_video_mode' makes  
integer from pointer without a cast
pwc.c:737: warning: passing argument 5 of 'pwc_set_video_mode' makes  
integer from pointer without a cast
pwc.c:737: warning: passing argument 6 of 'pwc_set_video_mode' makes  
integer from pointer without a cast
pwc.c:744: error: 'struct pwc_softc' has no member named 'drop_frames'
pwc.c:744: error: lvalue required as increment operand
pwc.c:744: warning: statement with no effect
pwc.c:745: error: 'struct pwc_softc' has no member named 'vsync'
pwc.c:745: warning: statement with no effect
pwc.c:747: error: 'struct pwc_softc' has no member named 'udev'
pwc.c:747: error: 'struct pwc_softc' has no member named 'sc_iface'
pwc.c:747: error: 'struct pwc_softc' has no member named 'valternate'
pwc.c:747: warning: passing argument 1 of 'set_alt_interface' from  
incompatible pointer type
pwc.c:747: warning: passing argument 2 of 'set_alt_interface' makes  
integer from pointer without a cast
pwc.c:747: error: too many arguments to function 'set_alt_interface'
pwc.c:748: error: 'USBD_NORMAL_COMPLETION' undeclared (first use in  
this function)
pwc.c:748: warning: comparison between pointer and integer
pwc.c:751: error: 'struct pwc_softc' has no member named 'valternate'
pwc.c:751: warning: format '%d' expects type 'int', but argument 3 has  
type 'const struct pwc_info *'
pwc.c:755: error: 'struct pwc_softc' has no member named 'sc_iface'
pwc.c:755: error: 'struct pwc_softc' has no member named 'sc_iface'
pwc.c:755: error: 'const struct pwc_info' has no member named 'idesc'
pwc.c:759: error: 'struct pwc_softc' has no member named 'sc_iface'
pwc.c:759: error: 'const struct pwc_info' has no member named 'idesc'
pwc.c:759: error: 'const struct pwc_info' has no member named 'bNumEndpoints'
pwc.c:759: warning: comparison between pointer and integer
pwc.c:760: warning: implicit declaration of function  
'usbd_interface2endpoint_descriptor'
pwc.c:760: warning: nested extern declaration of  
'usbd_interface2endpoint_descriptor'
pwc.c:760: error: 'struct pwc_softc' has no member named 'sc_iface'
pwc.c:760: warning: assignment makes pointer from integer without a cast
pwc.c:763: error: 'struct pwc_softc' has no member named 'vendpoint'
pwc.c:763: warning: comparison between pointer and integer
pwc.c:767: error: 'struct pwc_softc' has no member named 'vendpoint'
pwc.c:767: warning: format '%d' expects type 'int', but argument 3 has  
type 'const struct pwc_info *'
pwc.c:773: error: 'struct pwc_softc' has no member named 'vmax_packet_size'
pwc.c:773: warning: statement with no effect
pwc.c:774: error: 'struct pwc_softc' has no member named 'vendpoint'
pwc.c:774: error: 'struct pwc_softc' has no member named 'vmax_packet_size'
pwc.c:774: warning: format '%d' expects type 'int', but argument 2 has  
type 'const struct pwc_info *'
pwc.c:774: warning: format '%d' expects type 'int', but argument 3 has  
type 'const struct pwc_info *'
pwc.c:776: error: 'struct pwc_softc' has no member named 'vmax_packet_size'
pwc.c:776: error: 'struct pwc_softc' has no member named 'vmax_packet_size'
pwc.c:776: warning: comparison between pointer and integer
pwc.c:778: error: 'struct pwc_softc' has no member named 'vmax_packet_size'
pwc.c:778: warning: format '%d' expects type 'int', but argument 3 has  
type 'const struct pwc_info *'
pwc.c:840: error: 'struct pwc_softc' has no member named 'sc_iface'
pwc.c:840: error: 'const struct pwc_info' has no member named 'device'
pwc.c:840: error: 'const struct pwc_info' has no member named 'speed'
pwc.c:841: warning: format '%d' expects type 'int', but argument 2 has  
type 'const struct pwc_info *'
pwc.c:842: warning: implicit declaration of function 'usbd_open_pipe'
pwc.c:842: warning: nested extern declaration of 'usbd_open_pipe'
pwc.c:842: error: 'struct pwc_softc' has no member named 'sc_iface'
pwc.c:842: error: 'struct pwc_softc' has no member named 'sc_videopipe'
pwc.c:843: warning: comparison between pointer and integer
pwc.c:849: error: 'struct pwc_softc' has no member named 'sbuf'
pwc.c:849: error: 'struct pwc_softc' has no member named 'xfer'
pwc.c:849: warning: passing argument 1 of 'setup_xfer' from  
incompatible pointer type
pwc.c:849: error: too many arguments to function 'setup_xfer'
pwc.c:854: error: 'struct pwc_softc' has no member named 'state'
pwc.c:854: error: invalid operands to binary &
pwc.c: In function 'pwc_next_fill_frame':
pwc.c:870: error: 'struct pwc_softc' has no member named 'ptrlock'
pwc.c:870: warning: passing argument 1 of '_mtx_lock_flags' from  
incompatible pointer type
pwc.c:872: error: 'struct pwc_softc' has no member named 'fill_frame'
pwc.c:873: error: 'struct pwc_softc' has no member named 'full_frames'
pwc.c:874: error: 'struct pwc_softc' has no member named 'full_frames'
pwc.c:874: error: 'struct pwc_softc' has no member named 'fill_frame'
pwc.c:874: warning: statement with no effect
pwc.c:876: error: 'struct pwc_softc' has no member named 'full_frames_tail'
pwc.c:876: error: 'const struct pwc_info' has no member named 'next'
pwc.c:876: error: 'struct pwc_softc' has no member named 'fill_frame'
pwc.c:876: warning: statement with no effect
pwc.c:877: error: 'struct pwc_softc' has no member named 'full_frames_tail'
pwc.c:877: error: 'struct pwc_softc' has no member named 'fill_frame'
pwc.c:877: warning: statement with no effect
pwc.c:879: error: 'struct pwc_softc' has no member named 'empty_frames'
pwc.c:881: error: 'struct pwc_softc' has no member named 'fill_frame'
pwc.c:881: error: 'struct pwc_softc' has no member named 'empty_frames'
pwc.c:881: warning: statement with no effect
pwc.c:882: error: 'struct pwc_softc' has no member named 'empty_frames'
pwc.c:882: error: 'struct pwc_softc' has no member named 'empty_frames'
pwc.c:882: error: 'const struct pwc_info' has no member named 'next'
pwc.c:882: warning: statement with no effect
pwc.c:884: error: 'struct pwc_softc' has no member named 'fill_frame'
pwc.c:884: error: 'struct pwc_softc' has no member named 'full_frames'
pwc.c:884: warning: statement with no effect
pwc.c:885: error: 'struct pwc_softc' has no member named 'full_frames'
pwc.c:885: error: 'struct pwc_softc' has no member named 'full_frames'
pwc.c:885: error: 'const struct pwc_info' has no member named 'next'
pwc.c:885: warning: statement with no effect
pwc.c:887: error: 'struct pwc_softc' has no member named 'vframes_dumped'
pwc.c:887: error: lvalue required as increment operand
pwc.c:887: warning: statement with no effect
pwc.c:888: error: 'struct pwc_softc' has no member named 'vframe_count'
pwc.c:888: warning: comparison between pointer and integer
pwc.c:888: error: 'struct pwc_softc' has no member named 'vframes_dumped'
pwc.c:888: warning: comparison between pointer and integer
pwc.c:889: error: 'struct pwc_softc' has no member named 'vframe_count'
pwc.c:889: error: 'struct pwc_softc' has no member named 'vframes_dumped'
pwc.c:889: warning: comparison between pointer and integer
pwc.c:889: warning: format '%d' expects type 'int', but argument 3 has  
type 'const struct pwc_info *'
pwc.c:893: error: 'struct pwc_softc' has no member named 'fill_frame'
pwc.c:893: error: 'const struct pwc_info' has no member named 'next'
pwc.c:893: warning: statement with no effect
pwc.c:894: error: 'struct pwc_softc' has no member named 'ptrlock'
pwc.c:894: warning: passing argument 1 of '_mtx_unlock_flags' from  
incompatible pointer type
pwc.c: At top level:
pwc.c:899: error: expected ')' before 'xfer'
pwc.c: In function 'pwc_handle_frame':
pwc.c:952: error: 'struct pwc_softc' has no member named 'ptrlock'
pwc.c:952: warning: passing argument 1 of '_mtx_lock_flags' from  
incompatible pointer type
pwc.c:957: error: 'struct pwc_softc' has no member named 'full_frames'
pwc.c:958: error: 'struct pwc_softc' has no member named 'ptrlock'
pwc.c:958: warning: passing argument 1 of '_mtx_unlock_flags' from  
incompatible pointer type
pwc.c:962: error: 'struct pwc_softc' has no member named 'read_frame'
pwc.c:962: error: 'struct pwc_softc' has no member named 'full_frames'
pwc.c:962: warning: statement with no effect
pwc.c:963: error: 'struct pwc_softc' has no member named 'full_frames'
pwc.c:963: error: 'struct pwc_softc' has no member named 'full_frames'
pwc.c:963: error: 'const struct pwc_info' has no member named 'next'
pwc.c:963: warning: statement with no effect
pwc.c:964: error: 'struct pwc_softc' has no member named 'read_frame'
pwc.c:964: error: 'const struct pwc_info' has no member named 'next'
pwc.c:964: warning: statement with no effect
pwc.c:970: error: 'struct pwc_softc' has no member named 'ptrlock'
pwc.c:970: warning: passing argument 1 of '_mtx_unlock_flags' from  
incompatible pointer type
pwc.c:971: error: 'struct pwc_softc' has no member named 'images'
pwc.c:971: error: 'struct pwc_softc' has no member named 'fill_image'
pwc.c:971: error: array subscript is not an integer
pwc.c:971: error: request for member 'bufmem' in something not a  
structure or union
pwc.c:971: warning: assignment from incompatible pointer type
pwc.c:974: error: 'struct pwc_softc' has no member named 'read_frame'
pwc.c:974: error: 'const struct pwc_info' has no member named 'data'
pwc.c:974: warning: cast discards qualifiers from pointer target type
pwc.c:974: error: 'struct pwc_softc' has no member named 'frame_header_size'
pwc.c:974: error: invalid operands to binary +
pwc.c:974: warning: assignment from incompatible pointer type
pwc.c:976: error: 'struct pwc_softc' has no member named 'vpalette'
pwc.c:976: warning: comparison between pointer and integer
pwc.c:977: error: 'struct pwc_softc' has no member named 'frame_size'
pwc.c:977: warning: passing argument 3 of 'memcpy' makes integer from  
pointer without a cast
pwc.c:978: error: 'struct pwc_softc' has no member named 'camera_cb'
pwc.c:978: error: request for member 'cb_decompress' in something not  
a structure or union
pwc.c:979: error: 'struct pwc_softc' has no member named 'camera_cb'
pwc.c:979: error: request for member 'cb_decompress' in something not  
a structure or union
pwc.c:979: error: 'struct pwc_softc' has no member named 'read_frame'
pwc.c:979: error: 'const struct pwc_info' has no member named 'filled'
pwc.c:979: error: called object '<erroneous-expression>' is not a function
pwc.c:979: warning: assignment makes integer from pointer without a cast
pwc.c:981: error: 'struct pwc_softc' has no member named 'ptrlock'
pwc.c:981: warning: passing argument 1 of '_mtx_lock_flags' from  
incompatible pointer type
pwc.c:984: error: 'struct pwc_softc' has no member named 'empty_frames'
pwc.c:985: error: 'struct pwc_softc' has no member named 'empty_frames'
pwc.c:985: error: 'struct pwc_softc' has no member named 'read_frame'
pwc.c:985: warning: statement with no effect
pwc.c:986: error: 'struct pwc_softc' has no member named 'empty_frames_tail'
pwc.c:986: error: 'struct pwc_softc' has no member named 'empty_frames'
pwc.c:986: warning: statement with no effect
pwc.c:988: error: 'struct pwc_softc' has no member named 'empty_frames_tail'
pwc.c:988: error: 'const struct pwc_info' has no member named 'next'
pwc.c:988: error: 'struct pwc_softc' has no member named 'read_frame'
pwc.c:988: warning: statement with no effect
pwc.c:989: error: 'struct pwc_softc' has no member named 'empty_frames_tail'
pwc.c:989: error: 'struct pwc_softc' has no member named 'read_frame'
pwc.c:989: warning: statement with no effect
pwc.c:992: error: 'struct pwc_softc' has no member named 'read_frame'
pwc.c:992: warning: statement with no effect
pwc.c:993: error: 'struct pwc_softc' has no member named 'ptrlock'
pwc.c:993: warning: passing argument 1 of '_mtx_unlock_flags' from  
incompatible pointer type
pwc.c: In function 'pwc_reset_buffers':
pwc.c:1006: error: 'struct pwc_softc' has no member named 'ptrlock'
pwc.c:1006: warning: passing argument 1 of '_mtx_lock_flags' from  
incompatible pointer type
pwc.c:1008: error: 'struct pwc_softc' has no member named 'full_frames'
pwc.c:1008: warning: statement with no effect
pwc.c:1009: error: 'struct pwc_softc' has no member named 'full_frames_tail'
pwc.c:1009: warning: statement with no effect
pwc.c:1010: error: 'struct pwc_softc' has no member named 'pwc_fbufs'
pwc.c:1010: warning: comparison between pointer and integer
pwc.c:1011: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:1011: error: 'struct pwc_info' has no member named 'filled'
pwc.c:1011: warning: statement with no effect
pwc.c:1013: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:1013: error: 'struct pwc_info' has no member named 'next'
pwc.c:1013: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:1013: warning: statement with no effect
pwc.c:1015: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:1015: error: 'const struct pwc_info' has no member named 'next'
pwc.c:1015: warning: statement with no effect
pwc.c:1017: error: 'struct pwc_softc' has no member named 'empty_frames'
pwc.c:1017: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:1017: error: 'struct pwc_softc' has no member named 'pwc_fbufs'
pwc.c:1017: error: array subscript is not an integer
pwc.c:1017: warning: statement with no effect
pwc.c:1018: error: 'struct pwc_softc' has no member named 'empty_frames_tail'
pwc.c:1018: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:1018: warning: statement with no effect
pwc.c:1019: error: 'struct pwc_softc' has no member named 'read_frame'
pwc.c:1019: warning: statement with no effect
pwc.c:1020: error: 'struct pwc_softc' has no member named 'fill_frame'
pwc.c:1020: error: 'struct pwc_softc' has no member named 'empty_frames'
pwc.c:1020: warning: statement with no effect
pwc.c:1021: error: 'struct pwc_softc' has no member named 'empty_frames'
pwc.c:1021: error: 'struct pwc_softc' has no member named 'empty_frames'
pwc.c:1021: error: 'const struct pwc_info' has no member named 'next'
pwc.c:1021: warning: statement with no effect
pwc.c:1023: error: 'struct pwc_softc' has no member named 'image_read_pos'
pwc.c:1023: warning: statement with no effect
pwc.c:1024: error: 'struct pwc_softc' has no member named 'fill_image'
pwc.c:1024: warning: statement with no effect
pwc.c:1026: error: 'struct pwc_softc' has no member named 'ptrlock'
pwc.c:1026: warning: passing argument 1 of '_mtx_unlock_flags' from  
incompatible pointer type
pwc.c: In function 'pwc_free_buffers':
pwc.c:1034: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:1035: error: 'struct pwc_softc' has no member named 'pwc_fbufs'
pwc.c:1035: warning: comparison between pointer and integer
pwc.c:1036: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:1036: error: 'struct pwc_info' has no member named 'data'
pwc.c:1037: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:1037: error: 'struct pwc_info' has no member named 'data'
pwc.c:1037: warning: passing argument 1 of 'free' discards qualifiers  
from pointer target type
pwc.c:1038: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:1038: error: 'struct pwc_info' has no member named 'data'
pwc.c:1038: warning: statement with no effect
pwc.c:1041: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:1041: warning: passing argument 1 of 'free' discards qualifiers  
from pointer target type
pwc.c:1042: error: 'struct pwc_softc' has no member named 'fbuf'
pwc.c:1042: warning: statement with no effect
pwc.c:1045: error: 'struct pwc_softc' has no member named 'decompress_data'
pwc.c:1046: error: 'struct pwc_softc' has no member named 'decompress_data'
pwc.c:1046: warning: passing argument 1 of 'free' discards qualifiers  
from pointer target type
pwc.c:1047: error: 'struct pwc_softc' has no member named 'decompress_data'
pwc.c:1047: warning: statement with no effect
pwc.c:1052: error: 'struct pwc_softc' has no member named 'image_data'
pwc.c:1055: error: 'struct pwc_softc' has no member named 'image_data'
pwc.c:1055: warning: passing argument 1 of 'free' discards qualifiers  
from pointer target type
pwc.c:1056: error: 'struct pwc_softc' has no member named 'image_data'
pwc.c:1056: warning: statement with no effect
pwc.c:1062: error: 'struct pwc_softc' has no member named 'xfer'
pwc.c:1062: error: invalid operands to binary !=
pwc.c:1063: warning: implicit declaration of function 'usbd_free_xfer'
pwc.c:1063: warning: nested extern declaration of 'usbd_free_xfer'
pwc.c:1063: error: 'struct pwc_softc' has no member named 'xfer'
pwc.c:1064: error: 'struct pwc_softc' has no member named 'xfer'
pwc.c:1064: error: assignment of read-only location
pwc.c:1064: warning: statement with no effect
pwc.c: At top level:
pwc.c:1070: error: 'usbd_driver_load' undeclared here (not in a function)
pwc.c:1070: error: initializer element is not constant
pwc.c:1070: error: (near initialization for  
'pwc_uhub_driver_mod.dmd_chainevh')
pwc.c:1070: error: 'pwc_driver' undeclared here (not in a function)
pwc.c:1070: error: initializer element is not constant
pwc.c:1070: error: (near initialization for 'pwc_uhub_driver_mod.dmd_driver')
pwc.c:1070: error: 'pwc_devclass' undeclared here (not in a function)
pwc.c:1070: error: initializer element is not constant
pwc.c:1070: error: (near initialization for  
'pwc_uhub_driver_mod.dmd_devclass')
*** Error code 1

Stop in /usr/home/freesbie/pwcbsd/pwcbsd/pwcbsd.
*** Error code 1

Stop in /usr/home/freesbie/pwcbsd/pwcbsd/pwcbsd.


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the freebsd-multimedia mailing list