Compilation error occured during 'make buildkernel'

Ashish Shukla आशीष शुक्ल wahjava.ml at gmail.com
Fri Sep 19 19:56:45 UTC 2008


Hi all,

I just started tracking 8.0-CURRENT, and this is my first 8.0-CURRENT
'make buildkernel' execution and my first posting to this list . I'm
getting following compilation error while building it for my custom
kernel configuration file:

---->8---->8----
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -march=nocona -std=c99 -g -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 --pa
ram inline-unit-growth=100 --param large-function-growth=1000  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  -msoft-float -fno-asy
nchronous-unwind-tables -ffreestanding -fstack-protector -Werror  /usr/src/sys/net/if_sl.c
/usr/src/sys/net/if_sl.c:179: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'slclose'
/usr/src/sys/net/if_sl.c:180: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'slinput'
/usr/src/sys/net/if_sl.c:181: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sltioctl'
/usr/src/sys/net/if_sl.c:182: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sltstart'
/usr/src/sys/net/if_sl.c:189: error: variable 'slipdisc' has initializer but incomplete type
/usr/src/sys/net/if_sl.c:190: error: unknown field 'l_open' specified in initializer
cc1: warnings being treated as errors
/usr/src/sys/net/if_sl.c:190: warning: excess elements in struct initializer
/usr/src/sys/net/if_sl.c:190: warning: (near initialization for 'slipdisc')
/usr/src/sys/net/if_sl.c:191: error: unknown field 'l_close' specified in initializer
/usr/src/sys/net/if_sl.c:191: error: 'slclose' undeclared here (not in a function)
/usr/src/sys/net/if_sl.c:191: warning: excess elements in struct initializer
/usr/src/sys/net/if_sl.c:191: warning: (near initialization for 'slipdisc')
/usr/src/sys/net/if_sl.c:192: error: unknown field 'l_read' specified in initializer
/usr/src/sys/net/if_sl.c:192: error: 'l_noread' undeclared here (not in a function)
/usr/src/sys/net/if_sl.c:192: warning: excess elements in struct initializer
/usr/src/sys/net/if_sl.c:192: warning: (near initialization for 'slipdisc')
/usr/src/sys/net/if_sl.c:193: error: unknown field 'l_write' specified in initializer
/usr/src/sys/net/if_sl.c:193: error: 'l_nowrite' undeclared here (not in a function)
/usr/src/sys/net/if_sl.c:193: warning: excess elements in struct initializer
/usr/src/sys/net/if_sl.c:193: warning: (near initialization for 'slipdisc')
/usr/src/sys/net/if_sl.c:194: error: unknown field 'l_ioctl' specified in initializer
/usr/src/sys/net/if_sl.c:194: error: 'sltioctl' undeclared here (not in a function)
/usr/src/sys/net/if_sl.c:194: warning: excess elements in struct initializer
/usr/src/sys/net/if_sl.c:194: warning: (near initialization for 'slipdisc')
/usr/src/sys/net/if_sl.c:195: error: unknown field 'l_rint' specified in initializer
/usr/src/sys/net/if_sl.c:195: error: 'slinput' undeclared here (not in a function)
/usr/src/sys/net/if_sl.c:195: warning: excess elements in struct initializer
/usr/src/sys/net/if_sl.c:195: warning: (near initialization for 'slipdisc')
/usr/src/sys/net/if_sl.c:196: error: unknown field 'l_start' specified in initializer
/usr/src/sys/net/if_sl.c:196: error: 'sltstart' undeclared here (not in a function)
/usr/src/sys/net/if_sl.c:196: warning: excess elements in struct initializer
/usr/src/sys/net/if_sl.c:196: warning: (near initialization for 'slipdisc')
/usr/src/sys/net/if_sl.c:197: error: unknown field 'l_modem' specified in initializer
/usr/src/sys/net/if_sl.c:197: error: 'ttymodem' undeclared here (not in a function)
/usr/src/sys/net/if_sl.c:198: warning: excess elements in struct initializer
/usr/src/sys/net/if_sl.c:198: warning: (near initialization for 'slipdisc')
/usr/src/sys/net/if_sl.c: In function 'sl_modevent':
/usr/src/sys/net/if_sl.c:208: warning: implicit declaration of function 'ldisc_register'
/usr/src/sys/net/if_sl.c:208: warning: nested extern declaration of 'ldisc_register'
/usr/src/sys/net/if_sl.c:212: warning: implicit declaration of function 'ldisc_deregister'
/usr/src/sys/net/if_sl.c:212: warning: nested extern declaration of 'ldisc_deregister'
/usr/src/sys/net/if_sl.c: In function 'slopen':
/usr/src/sys/net/if_sl.c:365: error: 'struct tty' has no member named 't_hotchar'
/usr/src/sys/net/if_sl.c:367: error: 'struct tty' has no member named 't_ospeed'
/usr/src/sys/net/if_sl.c:368: warning: implicit declaration of function 'ttyflush'
/usr/src/sys/net/if_sl.c:368: warning: nested extern declaration of 'ttyflush'
/usr/src/sys/net/if_sl.c:380: error: 'struct tty' has no member named 't_canq'
/usr/src/sys/net/if_sl.c:383: warning: passing argument 1 of 'clist_alloc_cblocks' from incompatible pointer type
/usr/src/sys/net/if_sl.c:384: error: 'struct tty' has no member named 't_rawq'
/usr/src/sys/net/if_sl.c: In function 'slclose':
/usr/src/sys/net/if_sl.c:423: warning: passing argument 1 of 'clist_free_cblocks' from incompatible pointer type
/usr/src/sys/net/if_sl.c: In function 'sltioctl':
/usr/src/sys/net/if_sl.c:486: warning: passing argument 1 of 'clist_alloc_cblocks' from incompatible pointer type
/usr/src/sys/net/if_sl.c: In function 'sloutput':
/usr/src/sys/net/if_sl.c:564: error: 'struct tty' has no member named 't_state'
/usr/src/sys/net/if_sl.c:564: error: 'TS_CONNECTED' undeclared (first use in this function)
/usr/src/sys/net/if_sl.c:564: error: (Each undeclared identifier is reported only once
/usr/src/sys/net/if_sl.c:564: error: for each function it appears in.)
----8<----8<----

When I tried building with 'GENERIC' kernel configuration, it built
fine. I'm not able to figure out, what is wrong ? I'm running FreeBSD
7.1-PRERELEASE (amd64).

If my kernel configuration is desired, please mention.

Since, this is also my first posting, so I'm wondering if posting
compilation errors are not off-topic for this list ?

TIA.
Ashish
-- 
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
()  ascii ribbon campaign - against HTML e-mail
/\  www.asciiribbon.org   - against proprietary attachments
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20080919/55792013/attachment.pgp


More information about the freebsd-current mailing list