Date: Thu, 28 Jun 2007 18:17:57 +0200 From: Lars Engels <lars.engels@0x20.net> To: current@freebsd.org Subject: recent USB changes broke multimedia/pwcbsd Message-ID: <20070628161757.GN44311@e.0x20.net>
next in thread | raw e-mail | index | archive | help
--0FRtVia6Q6lt+M0P Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=3Dprescott -march=3D= prescott -D_KERNEL -DKLD_MODULE -std=3Dc99 -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=3D8000 --param inline-unit-growth=3D100 --p= aram large-function-growth=3D1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=3D2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno= -sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-q= ual -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 --=20 Lars Engels E-Mail: lars.engels@0x20.net =09 --0FRtVia6Q6lt+M0P Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGg981Kc512sD3afgRAm8XAJ9GoBEDymiSlDl31PogvnSU5Hf5awCfaqJW A7ac99KATHsi7YCkb0rHcwM= =d0Gs -----END PGP SIGNATURE----- --0FRtVia6Q6lt+M0P--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070628161757.GN44311>