Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2007 08:36:22 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Subject:   Re: buildworld RELENG_6 with new USB stack
Message-ID:  <200706180836.22090.hselasky@c2i.net>
In-Reply-To: <467379C5.4020109@dobrohot.org>
References:  <467379C5.4020109@dobrohot.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

The "usbd" utility has been replaced by "devd". I will add a patch to the 
installer to clean this file.

Just:

rm /usr/src/usr.sbin/usbd/usbd.c
touch /usr/src/usr.sbin/usbd/usbd.c
echo "int main() {  return 0; }" > /usr/src/usr.sbin/usbd/usbd.c

Then try buildworld again.

--HPS

On Saturday 16 June 2007 07:48, Andrew Muhametshin wrote:
> Hello
>
> It is impossible to buildworld with a new USB stack.
>
>
> ================
> 1.
> Update(csup RELENG_6) /usr/src in 2007-06-16 05:21
>
> 2.
> $ svn --username anonsvn --password anonsvn  \
>    checkout svn://svn.turbocat.net/i4b
> <...>
> Checked out revision 516.
>
> $cd i4b/trunk/i4b/FreeBSD.usb
> $ make S=../src package
> <...>
>
> $ make install
> <...>
>
> 3.
> cd /usr/src
> make buildworld
> <...>skip<...>
> ===> usr.sbin/usbd (all)
> cc -O2 -fno-strict-aliasing -pipe -march=athlon-mp  -c
> /usr/src/usr.sbin/usbd/usbd.c
> /usr/src/usr.sbin/usbd/usbd.c:116: error: `USB_EVENT_CTRLR_ATTACH'
> undeclared here (not in a function)
> /usr/src/usr.sbin/usbd/usbd.c:116: error: initializer element is not
> constant
> /usr/src/usr.sbin/usbd/usbd.c:116: error: (near initialization for
> `event_names[0].type')
> /usr/src/usr.sbin/usbd/usbd.c:116: error: initializer element is not
> constant
> /usr/src/usr.sbin/usbd/usbd.c:116: error: (near initialization for
> `event_names[0]')
> /usr/src/usr.sbin/usbd/usbd.c:117: error: `USB_EVENT_CTRLR_DETACH'
> undeclared here (not in a function)
> /usr/src/usr.sbin/usbd/usbd.c:117: error: initializer element is not
> constant
> /usr/src/usr.sbin/usbd/usbd.c:117: error: (near initialization for
> `event_names[1].type')
> /usr/src/usr.sbin/usbd/usbd.c:117: error: initializer element is not
> constant
> /usr/src/usr.sbin/usbd/usbd.c:117: error: (near initialization for
> `event_names[1]')
> /usr/src/usr.sbin/usbd/usbd.c:118: error: `USB_EVENT_DRIVER_ATTACH'
> undeclared here (not in a function)
> /usr/src/usr.sbin/usbd/usbd.c:118: error: initializer element is not
> constant
> /usr/src/usr.sbin/usbd/usbd.c:118: error: (near initialization for
> `event_names[2].type')
> /usr/src/usr.sbin/usbd/usbd.c:118: error: initializer element is not
> constant
> /usr/src/usr.sbin/usbd/usbd.c:118: error: (near initialization for
> `event_names[2]')
> /usr/src/usr.sbin/usbd/usbd.c:119: error: `USB_EVENT_DRIVER_DETACH'
> undeclared here (not in a function)
> /usr/src/usr.sbin/usbd/usbd.c:119: error: initializer element is not
> constant
> /usr/src/usr.sbin/usbd/usbd.c:119: error: (near initialization for
> `event_names[3].type')
> /usr/src/usr.sbin/usbd/usbd.c:119: error: initializer element is not
> constant
> /usr/src/usr.sbin/usbd/usbd.c:119: error: (near initialization for
> `event_names[3]')
> /usr/src/usr.sbin/usbd/usbd.c:120: error: `USB_EVENT_DEVICE_ATTACH'
> undeclared here (not in a function)
> /usr/src/usr.sbin/usbd/usbd.c:120: error: initializer element is not
> constant
> /usr/src/usr.sbin/usbd/usbd.c:120: error: (near initialization for
> `event_names[4].type')
> /usr/src/usr.sbin/usbd/usbd.c:120: error: initializer element is not
> constant
> /usr/src/usr.sbin/usbd/usbd.c:120: error: (near initialization for
> `event_names[4]')
> /usr/src/usr.sbin/usbd/usbd.c:121: error: `USB_EVENT_DEVICE_DETACH'
> undeclared here (not in a function)
> /usr/src/usr.sbin/usbd/usbd.c:121: error: initializer element is not
> constant
> /usr/src/usr.sbin/usbd/usbd.c:121: error: (near initialization for
> `event_names[5].type')
> /usr/src/usr.sbin/usbd/usbd.c:121: error: initializer element is not
> constant
> /usr/src/usr.sbin/usbd/usbd.c:121: error: (near initialization for
> `event_names[5]')
> /usr/src/usr.sbin/usbd/usbd.c:122: error: initializer element is not
> constant
> /usr/src/usr.sbin/usbd/usbd.c:122: error: (near initialization for
> `event_names[6]')
> /usr/src/usr.sbin/usbd/usbd.c:208: warning: "struct usb_event" declared
> inside parameter list
> /usr/src/usr.sbin/usbd/usbd.c:208: warning: its scope is only this
> definition or declaration, which is probably not what you want
> /usr/src/usr.sbin/usbd/usbd.c:567: warning: "struct usb_event" declared
> inside parameter list
> /usr/src/usr.sbin/usbd/usbd.c:568: error: conflicting types for
> 'print_event'
> /usr/src/usr.sbin/usbd/usbd.c:208: error: previous declaration of
> 'print_event' was here
> /usr/src/usr.sbin/usbd/usbd.c:568: error: conflicting types for
> 'print_event'
> /usr/src/usr.sbin/usbd/usbd.c:208: error: previous declaration of
> 'print_event' was here
> /usr/src/usr.sbin/usbd/usbd.c: In function `print_event':
> /usr/src/usr.sbin/usbd/usbd.c:570: error: dereferencing pointer to
> incomplete type
> /usr/src/usr.sbin/usbd/usbd.c:571: error: dereferencing pointer to
> incomplete type
> /usr/src/usr.sbin/usbd/usbd.c:575: error: dereferencing pointer to
> incomplete type
> /usr/src/usr.sbin/usbd/usbd.c:581: error: dereferencing pointer to
> incomplete type
> /usr/src/usr.sbin/usbd/usbd.c:583: error: dereferencing pointer to
> incomplete type
> /usr/src/usr.sbin/usbd/usbd.c:584: error: dereferencing pointer to
> incomplete type
> /usr/src/usr.sbin/usbd/usbd.c:585: error: dereferencing pointer to
> incomplete type
> /usr/src/usr.sbin/usbd/usbd.c:609: error: dereferencing pointer to
> incomplete type
> /usr/src/usr.sbin/usbd/usbd.c:610: error: dereferencing pointer to
> incomplete type
> /usr/src/usr.sbin/usbd/usbd.c:611: error: dereferencing pointer to
> incomplete type
> /usr/src/usr.sbin/usbd/usbd.c:612: error: dereferencing pointer to
> incomplete type
> /usr/src/usr.sbin/usbd/usbd.c:613: error: dereferencing pointer to
> incomplete type
> /usr/src/usr.sbin/usbd/usbd.c:615: error: dereferencing pointer to
> incomplete type
> /usr/src/usr.sbin/usbd/usbd.c:616: error: dereferencing pointer to
> incomplete type
> /usr/src/usr.sbin/usbd/usbd.c: In function `process_event_queue':
> /usr/src/usr.sbin/usbd/usbd.c:847: error: storage size of 'events' isn't
> known
> /usr/src/usr.sbin/usbd/usbd.c:852: error: storage size of 'the_event'
> isn't known
> *** Error code 1
>
> _______________________________________________
> freebsd-usb@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-usb
> To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706180836.22090.hselasky>