Greetings,
Stefan Lambrev wrote:
Greetings,
Any idea why I get this error when trying go build kernel with latest
usb4bsd?
cc -c -O2 -pipe -fno-strict-aliasing -march=prescott -std=c99 -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
-Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
-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 -mno-mmx
-mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror
/usr/src/sys/dev/usb/usb.c
cc1: warnings being treated as errors
/usr/src/sys/dev/usb/usb.c: In function 'usb_event_thread':
/usr/src/sys/dev/usb/usb.c:206: warning: implicit declaration of
function 'kproc_exit'
/usr/src/sys/dev/usb/usb.c:206: warning: nested extern declaration of
'kproc_exit'
/usr/src/sys/dev/usb/usb.c: In function 'usb_create_event_thread':
/usr/src/sys/dev/usb/usb.c:303: warning: implicit declaration of
function 'kproc_create'
/usr/src/sys/dev/usb/usb.c:303: warning: nested extern declaration of
'kproc_create'
*** Error code 1
Stop in /usr/obj/usr/src/sys/CORE.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
I'm using FreeBSD 7.0-RC1 #11: Mon Jan 7 11:31:53 EET 2008 i386 and
revision 566 of usb4bsd.
Is the new revision of usb4bsd only for -current or should work with
releng_7_0 ?
I think the new code depends on kproc_exits which is introduced in
src/sys/kern/kern_kthread.c Revision 1.40,
but this version is only in -current.
Also I saw that there is a fix for freebsd 6.X in
i4b/trunk/i4b/src/sys/dev/usb/usb_port.h at line 197:
#if (__FreeBSD_version >= 700000)
But at version 700055 (releng_7_0 from today) kproc_exec() is still not
introduced, so the build failed.
I tried to compile by changing few lines to:
#if (__FreeBSD_version >= 800000)
#define usb_thread_create(f, s, p, ...) \
kproc_create((f), (s), (p), RFHIGHPID, 0, __VA_ARGS__)
#define usb_thread_exit(err) kproc_exit(err)
#elif ((__FreeBSD_version >= 700000) && (__FreeBSD_version < 800000))
#define usb_thread_create(f, s, p, ...) \
kthread_create((f), (s), (p), RFHIGHPID, 0, __VA_ARGS__)
#define usb_thread_exit(err) kthread_exit(err)
#else
#define usb_thread_create(f, s, p, ...) \
kthread_create((f), (s), (p), RFHIGHPID, 0, __VA_ARGS__)
#define usb_thread_exit(err) kthread_exit(err)
#define thread_lock(td) mtx_lock_spin(&sched_lock)
#define thread_unlock(td) mtx_unlock_spin(&sched_lock)
#endif
But I'm now stuck at:
cc -c -O2 -pipe -fno-strict-aliasing -march=prescott -std=c99 -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
-Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
-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 -mno-mmx
-mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror
/usr/src/sys/dev/usb/usb_transfer.c
cc1: warnings being treated as errors
/usr/src/sys/dev/usb/usb_transfer.c: In function 'usbd_callback_intr_td':
/usr/src/sys/dev/usb/usb_transfer.c:2094: warning: 'xfer[2]' may be used
uninitialized in this function
/usr/src/sys/dev/usb/usb_transfer.c:2094: warning: 'xfer[3]' may be used
uninitialized in this function
*** Error code 1
Stop in /usr/obj/usr/src/sys/CORE.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
--
Best Wishes,
Stefan Lambrev
ICQ# 24134177
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "[EMAIL PROTECTED]"