On todays current building multimedia/pwcbsd (kmod for philips based USB webcams) results in the following errors: cc -O2 -fno-strict-aliasing -fno-tree-vrp -pipe -march=prescott -march=prescott -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I. -I_at_ -I_at_/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 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c pwc.c 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:104: warning: return type defaults to 'int' pwc.c:104: warning: function declaration isn't a prototype pwc.c: In function 'USB_MATCH': pwc.c:104: warning: type of 'pwc' defaults to 'int' pwc.c:105: warning: implicit declaration of function 'USB_MATCH_START' pwc.c:105: warning: nested extern declaration of 'USB_MATCH_START' pwc.c:105: error: 'uaa' undeclared (first use in this function) pwc.c:105: error: (Each undeclared identifier is reported only once pwc.c:105: error: for each function it appears in.) pwc.c: At top level: pwc.c:141: warning: return type defaults to 'int' pwc.c:141: warning: function declaration isn't a prototype pwc.c: In function 'USB_ATTACH': pwc.c:141: warning: type of 'pwc' defaults to 'int' pwc.c:142: warning: implicit declaration of function 'USB_ATTACH_START' pwc.c:142: warning: nested extern declaration of 'USB_ATTACH_START' pwc.c:142: error: 'sc' undeclared (first use in this function) pwc.c:142: error: 'uaa' undeclared (first use in this function) pwc.c:155: error: 'USB_ATTACH_ERROR_RETURN' undeclared (first use in this function) pwc.c:159: error: 'USB_ATTACH_SETUP' undeclared (first use in this function) pwc.c:199: error: 'self' undeclared (first use in this function) pwc.c:287: warning: implicit declaration of function 'USBDEV' pwc.c:287: warning: nested extern declaration of 'USBDEV' pwc.c:287: warning: passing argument 3 of 'usbd_add_drv_event' makes pointer from integer without a cast pwc.c:288: error: 'USB_ATTACH_SUCCESS_RETURN' undeclared (first use in this function) pwc.c: At top level: pwc.c:292: warning: return type defaults to 'int' pwc.c:292: warning: function declaration isn't a prototype pwc.c: In function 'USB_DETACH': pwc.c:292: warning: type of 'pwc' defaults to 'int' pwc.c:293: warning: implicit declaration of function 'USB_DETACH_START' pwc.c:293: warning: nested extern declaration of 'USB_DETACH_START' pwc.c:293: error: 'sc' undeclared (first use in this function) pwc.c:321: warning: passing argument 3 of 'usbd_add_drv_event' makes pointer from integer without a cast pwc.c: At top level: pwc.c:326: error: expected declaration specifiers or '...' before 'usb_proc_ptr' pwc.c:327: error: conflicting types for 'pwc_open' pwc.c:42: error: previous declaration of 'pwc_open' was here pwc.c: In function 'pwc_open': pwc.c:332: warning: implicit declaration of function 'USB_GET_SC_OPEN' pwc.c:332: warning: nested extern declaration of 'USB_GET_SC_OPEN' pwc.c:332: error: 'pwc' undeclared (first use in this function) pwc.c: At top level: pwc.c:460: error: expected declaration specifiers or '...' before 'usb_proc_ptr' pwc.c:461: error: conflicting types for 'pwc_close' pwc.c:43: error: previous declaration of 'pwc_close' was here pwc.c: In function 'pwc_close': pwc.c:465: warning: implicit declaration of function 'USB_GET_SC' pwc.c:465: warning: nested extern declaration of 'USB_GET_SC' pwc.c:465: error: 'pwc' undeclared (first use in this function) pwc.c: In function 'pwc_read': pwc.c:516: error: 'pwc' undeclared (first use in this function) pwc.c: At top level: pwc.c:568: error: expected declaration specifiers or '...' before 'usb_proc_ptr' pwc.c:569: error: conflicting types for 'pwc_ioctl' pwc.c:45: error: previous declaration of 'pwc_ioctl' was here pwc.c: In function 'pwc_ioctl': pwc.c:573: error: 'pwc' undeclared (first use in this function) pwc.c: At top level: pwc.c:582: error: expected declaration specifiers or '...' before 'usb_proc_ptr' pwc.c:583: error: conflicting types for 'pwc_poll' pwc.c:47: error: previous declaration of 'pwc_poll' was here pwc.c: In function 'pwc_poll': pwc.c:588: error: 'pwc' undeclared (first use in this function) pwc.c:597: error: 'p' undeclared (first use in this function) pwc.c: At top level: pwc.c:1069: error: 'pwc_driver' undeclared here (not in a function) pwc.c:1069: error: 'pwc_devclass' undeclared here (not in a function) *** Error code 1 Does the port need to be patched or is it a problem on the USB side? Lars -- Lars Engels E-Mail: lars.engels_at_0x20.net
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:13 UTC