PDA

View Full Version : Missing header file(s) in source tree


phatfish
05-04-2008, 06:39 PM
Hello all,

Im getting this error when i do "make buildkernel":

/usr/src/sys/dev/re/if_re.c:156:23: error: miibus_if.h: No such file or directory
mkdep: compile failed
*** Error code 1

This is the supfile i used to grab the sources, i dont know how im missing files...


*default host=cvsup.uk.FreeBSD.org
*default prefix=/usr
*default base=/var/db
*default tag=RELENG_7
*default release=cvs delete use-rel-suffix compress

cvsroot-all
src-all


I have a feeling its more than just that file in particular, previously i had a few modules enabled and make complained about missing module dirs.

Thanks

ephemera
05-04-2008, 07:28 PM
do you have "device miibus" enabled in your kernel config file?

phatfish
05-04-2008, 07:42 PM
No it was commented out. And shouldn't have been, missed that one, thanks.

It got a lot further this time, then i got:


/usr/src/sys/dev/usb/udbp.c:440: undefined reference to `ng_parse_struct_type'
udbp.o(.rodata+0xa8):/usr/src/sys/dev/usb/udbp.c:459: undefined reference to `ng_parse_int32_type'
udbp.o(.rodata+0xc0):/usr/src/sys/dev/usb/udbp.c:463: undefined reference to `ng_parse_int32_type'
*** Error code 1


I didn't have this much trouble when i build a kernel on my old system. Are these errors symptoms of a bad kernel config?

cajunman4life
05-04-2008, 07:58 PM
If memory serves me correctly, by using RELENG_7 you're tracking the -STABLE branch (which the name can be a bit misleading as -STABLE isn't alwasy stable). Perhaps it was an error that has been corrected and you can csup again.

If you want to track sercurity updates only, use RELENG_7_0.

ephemera
05-04-2008, 08:14 PM
do you have the file /sys/netgraph/ng_parse.h ?

Carpetsmoker
05-04-2008, 08:16 PM
Post your kernel configuration file.

cajunman4life
05-04-2008, 09:13 PM
Yep, on RELENG_7_0 I have /usr/src/sys/netgraph/ng_parse.h

Disclaimer: I haven't csup'ed my src in a while...

[ajgraves@cd-ajg-u-vm-1 /usr/src/sys/netgraph]$ uname -r
7.0-RELEASE-p1

phatfish
05-04-2008, 09:36 PM
I was tracking the wrong branch as cajunman4life said. I put RELENG_7 by mistake, i did mean 7_0 :) Kernel built fine when i changed that. All my fault.

Thanks for the help everyone.

cajunman4life
05-04-2008, 09:40 PM
Glad we helped :)