Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Nov 2004 02:08:39 +0100
From:      Robert Kot <robkot6@wp.pl>
To:        freebsd-questions@freebsd.org
Cc:        robkot6@wp.pl
Subject:   Kernel compilation failed in 5.3-RELEASE
Message-ID:  <200411140208.39506.robkot6@wp.pl>

next in thread | raw e-mail | index | archive | help
5.3-RELEASE

Hi,

 I'm just trying to build kernel in 5.3-RELEASE and it fails.
I added the following to GENERIC config:

#cpu  I486_CPU
#cpu  I586_CPU
cpu  I686_CPU

options  EXT2FS
options  IPFIREWALL
options  IPFIREWALL_VERBOSE
options  IPFIREWALL_DEFAULT_TO_ACCEPT
options  MAC
options  GEOM_BDE
device  sound

Compilation failed:

===> splash
===> splash/bmp
cc -O -pipe  -D_KERNEL -DKLD_MODULE -nostdinc -I-   
-include /usr/src/sys/i386/compile/ROBERT_20041113/opt_global.h -I. -I@ 
-I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common  
-I/usr/src/sys/i386/compile/ROBERT_20041113 -mno-align-long-strings 
-mpreferred-stack-boundary=2 -ffreestanding -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith 
-Winline -Wcast-qual  -fformat-extensions -std=c99 
-c /usr/src/sys/modules/splash/bmp/splash_bmp.c
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: syntax error before 
"mod"
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: warning: function declaration 
isn't a prototype
/usr/src/sys/modules/splash/bmp/splash_bmp.c: In function 
`splash_bmp_modevent':
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: `modeventtype_t' 
undeclared (first use in this function)
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: (Each undeclared 
identifier is reported only once
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: for each function it 
appears in.)
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: syntax error before 
"type"
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: `MOD_UNLOAD' 
undeclared (first use in this function)
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: case label not within 
a switch statement
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: `default' label not 
within a switch statement
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: break statement not 
within loop or switch
/usr/src/sys/modules/splash/bmp/splash_bmp.c: At top level:
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: syntax error before 
"return"
/usr/src/sys/modules/splash/bmp/splash_bmp.c:47: warning: 'splash_mode' 
defined but not used
/usr/src/sys/modules/splash/bmp/splash_bmp.c:48: warning: 'splash_on' defined 
but not used
/usr/src/sys/modules/splash/bmp/splash_bmp.c:50: warning: 'bmp_start' used but 
never defined
/usr/src/sys/modules/splash/bmp/splash_bmp.c:51: warning: 'bmp_end' used but 
never defined
/usr/src/sys/modules/splash/bmp/splash_bmp.c:52: warning: 'bmp_splash' used 
but never defined
/usr/src/sys/modules/splash/bmp/splash_bmp.c:53: warning: 'bmp_Init' declared 
`static' but never defined
/usr/src/sys/modules/splash/bmp/splash_bmp.c:54: warning: 'bmp_Draw' declared 
`static' but never defined
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: warning: 
'splash_bmp_modevent' defined but not used
*** Error code 1

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

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

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

Stop in /usr/src/sys/i386/compile/ROBERT_20041113.

So, I tried to compile GENERIC kernel only with:

#cpu  I486_CPU
#cpu  I586_CPU
cpu  I686_CPU

Unfortunately, it failed the same way:

===> splash
===> splash/bmp
cc -O -pipe  -D_KERNEL -DKLD_MODULE -nostdinc -I-   
-include /usr/src/sys/i386/compile/ROBERT_20041113_0/opt_global.h -I. -I@ 
-I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common  
-I/usr/src/sys/i386/compile/ROBERT_20041113_0 -mno-align-long-strings 
-mpreferred-stack-boundary=2 -ffreestanding -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith 
-Winline -Wcast-qual  -fformat-extensions -std=c99 
-c /usr/src/sys/modules/splash/bmp/splash_bmp.c
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: syntax error before 
"mod"
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: warning: function declaration 
isn't a prototype
/usr/src/sys/modules/splash/bmp/splash_bmp.c: In function 
`splash_bmp_modevent':
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: `modeventtype_t' 
undeclared (first use in this function)
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: (Each undeclared 
identifier is reported only once
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: for each function it 
appears in.)
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: syntax error before 
"type"
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: `MOD_UNLOAD' 
undeclared (first use in this function)
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: case label not within 
a switch statement
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: `default' label not 
within a switch statement
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: break statement not 
within loop or switch
/usr/src/sys/modules/splash/bmp/splash_bmp.c: At top level:
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: error: syntax error before 
"return"
/usr/src/sys/modules/splash/bmp/splash_bmp.c:47: warning: 'splash_mode' 
defined but not used
/usr/src/sys/modules/splash/bmp/splash_bmp.c:48: warning: 'splash_on' defined 
but not used
/usr/src/sys/modules/splash/bmp/splash_bmp.c:50: warning: 'bmp_start' used but 
never defined
/usr/src/sys/modules/splash/bmp/splash_bmp.c:51: warning: 'bmp_end' used but 
never defined
/usr/src/sys/modules/splash/bmp/splash_bmp.c:52: warning: 'bmp_splash' used 
but never defined
/usr/src/sys/modules/splash/bmp/splash_bmp.c:53: warning: 'bmp_Init' declared 
`static' but never defined
/usr/src/sys/modules/splash/bmp/splash_bmp.c:54: warning: 'bmp_Draw' declared 
`static' but never defined
/usr/src/sys/modules/splash/bmp/splash_bmp.c:60: warning: 
'splash_bmp_modevent' defined but not used
*** Error code 1

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

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

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

Stop in /usr/src/sys/i386/compile/ROBERT_20041113_0.

Does anyone have similar problem ?

Thanks,
Robert




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411140208.39506.robkot6>