Date: Sat, 20 Sep 2008 00:59:17 +0530 From: wahjava.ml@gmail.com (Ashish Shukla =?utf-8?B?4KSG4KS24KWA4KS3IA==?= =?utf-8?B?4KS24KWB4KSV4KWN4KSy?=) To: freebsd-current@freebsd.org Subject: Compilation error occured during 'make buildkernel' Message-ID: <87od2kj5o2.fsf@chateau.d.lf>
next in thread | raw e-mail | index | archive | help
--=-=-= Content-Type: text/plain; charset=utf-8 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 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkjT/ZAACgkQHy+EEHYuXnTWWACgrnjpiyXRtP4SQ2hAY3iS0MsU V5gAn2JeYq8P5/BunA1KIISp6BhxZ1VZ =xiZ4 -----END PGP SIGNATURE----- --=-=-=--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87od2kj5o2.fsf>