Date: Thu, 20 Mar 2008 13:00:01 -0600 From: Jason Beazell <panic@antix.org> To: multimedia@freebsd.org Subject: Re: webcam on freebsd Message-ID: <47E2B431.6070303@antix.org> In-Reply-To: <c39ec84c0803200340y143afe17v4b1076725b43b85b@mail.gmail.com> References: <47E20B5E.3040300@elischer.org> <c39ec84c0803200340y143afe17v4b1076725b43b85b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
usleepless@gmail.com wrote: > On Thu, Mar 20, 2008 at 7:59 AM, Julian Elischer <julian@elischer.org> wrote: > >> tried to make the linux driver port... >> >> ===> Building for linux-ov511-kmod-1.0 >> [...] >> In file included from ov511.c:38: >> /usr/local/share/linux-kmod-compat/linux_compat/linux/module.h:212:1: >> error: "msleep" redefined >> In file included from >> /usr/local/share/linux-kmod-compat/linux_compat/linux/module.h:45, >> from ov511.c:38: >> @/sys/systm.h:303:1: error: this is the location of the previous >> definition >> In file included from ov511.h:8, >> from ov511.c:53: >> /usr/local/share/linux-kmod-compat/linux_compat/linux/usb.h:171:12: >> error: missing terminating ' character >> *** Error code 1 >> >> Stop in /usr/ports/multimedia/linux-ov511-kmod/work/linux-ov511-kmod-1.0. >> *** Error code 1 >> >> Stop in /usr/ports/multimedia/linux-ov511-kmod. >> >> >> >> has anyone succeeded compiling this for -current? >> > > yes > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org" > I'm having the same issue with FreeBSD 7.0 RELEASE. I tried with 6.2, but it would not compile there, either. In fact, I just upgraded to a fresh install to see if that would help it compile... it didn't. I cannot compile the linux-kmod I'm on an AMD 64bit platform. ===> Building for linux-ov511-kmod-1.0 @ -> /usr/src/sys machine -> /usr/src/sys/amd64/include awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h awk -f @/tools/makeobjops.awk @/kern/device_if.m -h :> opt_usb.h rm -f .depend mkdep -f .depend -a -nostdinc -D__KERNEL__ -DDRIVER_NAME=ov511 -DDEV_NAME=\"video\" -D_KERNEL -DKLD_MODULE -I/usr/local/share/linux-kmod-compat/linux_compat -I. -I@ -I@/contrib/altq ov511.c /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c /usr/local/share/linux-kmod-compat/linux_compat/linux_compat.c Warning: Object directory not changed from original /usr/ports/multimedia/linux-ov511-kmod/work/linux-ov511-kmod-1.0 cc -O2 -fno-strict-aliasing -pipe -D__KERNEL__ -DDRIVER_NAME=ov511 -DDEV_NAME=\"video\" -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I/usr/local/share/linux-kmod-compat/linux_compat -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c ov511.c In file included from ov511.c:38: /usr/local/share/linux-kmod-compat/linux_compat/linux/module.h:212:1: warning: "msleep" redefined In file included from /usr/local/share/linux-kmod-compat/linux_compat/linux/module.h:45, from ov511.c:38: @/sys/systm.h:307:1: warning: this is the location of the previous definition In file included from ov511.h:8, from ov511.c:53: /usr/local/share/linux-kmod-compat/linux_compat/linux/usb.h:171:12: warning: missing terminating ' character cc -O2 -fno-strict-aliasing -pipe -D__KERNEL__ -DDRIVER_NAME=ov511 -DDEV_NAME=\"video\" -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I/usr/local/share/linux-kmod-compat/linux_compat -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c In file included from /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.h:78, from /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:44: /usr/local/share/linux-kmod-compat/linux_compat/linux/usb.h:171:12: warning: missing terminating ' character /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:85: warning: data definition has no type or storage class /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:85: warning: type defaults to 'int' in declaration of 'USB_DECLARE_DRIVER' /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:85: warning: parameter names (without types) in function declaration /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c: In function 'ldev_attach': /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:278: warning: implicit declaration of function 'USBDEV' /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:278: warning: nested extern declaration of 'USBDEV' /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:278: warning: passing argument 3 of 'usbd_add_drv_event' makes pointer from integer without a cast /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c: In function 'ldev_detach': /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:297: warning: passing argument 1 of 'usb_detach_wait' makes pointer from integer without a cast /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:307: warning: passing argument 3 of 'usbd_add_drv_event' makes pointer from integer without a cast /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c: At top level: /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:312: error: expected declaration specifiers or '...' before 'usb_proc_ptr' /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:313: error: conflicting types for 'ldev_open' /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:58: error: previous declaration of 'ldev_open' was here /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c: In function 'ldev_open': /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:316: error: 'ldev_devclass' undeclared (first use in this function) /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:316: error: (Each undeclared identifier is reported only once /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:316: error: for each function it appears in.) /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c: At top level: /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:343: error: expected declaration specifiers or '...' before 'usb_proc_ptr' /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:344: error: conflicting types for 'ldev_close' /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:59: error: previous declaration of 'ldev_close' was here /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c: In function 'ldev_close': /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:346: error: 'ldev_devclass' undeclared (first use in this function) /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:355: warning: passing argument 1 of 'usb_detach_wakeup' makes pointer from integer without a cast /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c: In function 'ldev_read': /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:363: error: 'ldev_devclass' undeclared (first use in this function) /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c: At top level: /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:408: error: expected declaration specifiers or '...' before 'usb_proc_ptr' /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:409: error: conflicting types for 'ldev_ioctl' /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:61: error: previous declaration of 'ldev_ioctl' was here /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c: In function 'ldev_ioctl': /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:411: error: 'ldev_devclass' undeclared (first use in this function) /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c: At top level: /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:437: error: expected declaration specifiers or '...' before 'usb_proc_ptr' /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:438: error: conflicting types for 'ldev_poll' /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:63: error: previous declaration of 'ldev_poll' was here /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c: In function 'ldev_poll': /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:440: error: 'ldev_devclass' undeclared (first use in this function) /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:451: error: 'p' undeclared (first use in this function) /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c: At top level: /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:531: error: 'ldev_driver' undeclared here (not in a function) /usr/local/share/linux-kmod-compat/linux_compat/ldev_stub.c:531: error: 'ldev_devclass' undeclared here (not in a function) *** Error code 1 Stop in /usr/ports/multimedia/linux-ov511-kmod/work/linux-ov511-kmod-1.0. *** Error code 1 -Jason
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47E2B431.6070303>