FreeBSD 6.0 buildkernel failed

Cesare Gargano cesare.gargano at email.it
Fri Jan 13 16:51:33 PST 2006


There's a problem with VLAN_INPUT_TAG definition
in /usr/src/sys/pci/if_ti.c
in which the arguments passed are 3 (three) and not 4 (four). In
according with
/usr/src/sys/net/if_vlan_var.h at line ~107 we find:
        #define VLAN_INPUT_TAG(_ifp, _m, _t, _errcase) do {     \
                struct m_tag *mtag;                             \
                mtag = m_tag_alloc(MTAG_VLAN, MTAG_VLAN_TAG,
                ...
                ...
I set _errcase to 'return' in if_ti.c:
        VLAN_INPUT_TAG(ifp, m, vlan_tag, return);
                                         ^^^^^^
but I don't know if this is what you want. Now I can compile my kernel.
See you.

+kae

# uname -a
FreeBSD plusiagamma.ghiaia.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0:
Thu Jan 12 00:58:32 CET 2006
kae at plusiagamma.ghiaia.net:/usr/obj/usr/src/sys/
PLUSIAGAMMA  i386

Error output:
===> ti (all)
cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE
-nostdinc -I-  -DHAVE_KERNEL_OPTIO
N_HEADERS -include /usr/obj/usr/src/sys/PLUSIAGAMMA/opt_global.h -I. -I@
-I@/con trib/altq -I@/../inc
lude -finline-limit=8000 -fno-common  -I/usr/obj/usr/src/sys/PLUSIAGAMMA
-mno-al ign-long-strings -mp
referred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-ffreestanding  -Wall -Wredundant-d
ecls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual
  -fformat-extensions -std=c99
-c /usr/src/sys/modules/ti/../../pci/if_ti.c
/usr/src/sys/modules/ti/../../pci/if_ti.c:2536:35: macro
"VLAN_INPUT_TAG" requir es 4 arguments, but
only 3 given
/usr/src/sys/modules/ti/../../pci/if_ti.c: In function `ti_rxeof':
/usr/src/sys/modules/ti/../../pci/if_ti.c:2536: error: `VLAN_INPUT_TAG'
undeclar ed (first use in thi
s function)
/usr/src/sys/modules/ti/../../pci/if_ti.c:2536: error: (Each undeclared
identifi er is reported only
once
/usr/src/sys/modules/ti/../../pci/if_ti.c:2536: error: for each function
it appe ars in.)
*** Error code 1

Stop in /usr/src/sys/modules/ti.
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/obj/usr/src/sys/PLUSIAGAMMA.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Vuoi proteggere la tua casa? Chiedi a Ras come, clicca e fai un preventivo online!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=4027&d=14-1


More information about the freebsd-stable mailing list