usb compile issue

Manfred Antar null at pozo.com
Wed Sep 29 13:35:01 PDT 2004


At 12:43 PM 9/29/2004, Randy Bush wrote:
>-current on i386
>
>two days ago, kernel compiled fine.  with just now cvsup, i blow chunks.
>
>cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror  /usr/src/sys/dev/usb/usb_quirks.c
>cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror  /usr/src/sys/dev/usb/usb_subr.c
>/usr/src/sys/dev/usb/usb_subr.c: In function `usbd_setup_pipe':
>/usr/src/sys/dev/usb/usb_subr.c:823: error: `Some' undeclared (first use in this function)
>/usr/src/sys/dev/usb/usb_subr.c:823: error: (Each undeclared identifier is reported only once
>/usr/src/sys/dev/usb/usb_subr.c:823: error: for each function it appears in.)
>/usr/src/sys/dev/usb/usb_subr.c:823: error: syntax error before "device"
>/usr/src/sys/dev/usb/usb_subr.c: At top level:
>/usr/src/sys/dev/usb/usb_subr.c:832: warning: type defaults to `int' in declaration of `pipe'
>/usr/src/sys/dev/usb/usb_subr.c:832: error: `p' undeclared here (not in a function)
>/usr/src/sys/dev/usb/usb_subr.c:832: warning: data definition has no type or storage class
>/usr/src/sys/dev/usb/usb_subr.c:833: error: syntax error before "return"
>/usr/src/sys/dev/usb/usb_subr.c:92: warning: 'usbd_getnewaddr' declared `static' but never defined
>/usr/src/sys/dev/usb/usb_subr.c:101: warning: 'usbd_kill_pipe' declared `static' but never defined
>/usr/src/sys/dev/usb/usb_subr.c:103: warning: 'usbd_probe_and_attach' declared `static' but never defined
>/usr/src/sys/dev/usb/usb_subr.c:105: warning: 'usb_cookie_no' defined but not used
>*** Error code 1
>
>Stop in /usr/obj/usr/src/sys/ROAM.
>*** Error code 1
>
>Stop in /usr/src.
>*** Error code 1

There is a extra "*/" comment on line 822 remove it and it will compile
==================================
||      null at pozo.com           ||
||      Ph. (415) 681-6235      ||
================================== 



More information about the freebsd-current mailing list