Subject: kernel compile problems, ioconf.c
To: netbsd-macppc <port-macppc@NetBSD.ORG>
From: Riccardo Mottola <rollei@tiscalinet.it>
List: port-macppc
Date: 08/29/2005 11:18:28
Hello,

I tried to compile a current kernel to check if there was some progress
in gt G4 issues! I left in some patches from Michael though since I need
to use my video card with X11..

even with a  make clean, new config... I get:

cc -mno-strict-align -msoft-float -Wa,-maltivec -ffreestanding
-mcpu=7400 -O2 -Wreturn-type -Werror -Wall -Wno-main
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
-Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual
-Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss
-Dmacppc=macppc -I. -I../../../../arch -I../../../.. -nostdinc
-DOFB_FAKE_VGA_FB -DLKM -DDIAGNOSTIC -DZS_CONSOLE_ABORT -DMAXUSERS=32
-D_KERNEL -D_KERNEL_OPT -c ioconf.c
ioconf.c:15: warning: initialization from incompatible pointer type
ioconf.c:18: warning: initialization from incompatible pointer type
ioconf.c:21: warning: initialization from incompatible pointer type
ioconf.c:24: warning: initialization from incompatible pointer type
ioconf.c:27: warning: initialization from incompatible pointer type
ioconf.c:30: warning: initialization from incompatible pointer type
ioconf.c:33: warning: initialization from incompatible pointer type
ioconf.c:48: warning: initialization from incompatible pointer type
ioconf.c:53: warning: initialization from incompatible pointer type
ioconf.c:56: warning: initialization from incompatible pointer type
ioconf.c:59: warning: initialization from incompatible pointer type
ioconf.c:68: warning: initialization from incompatible pointer type
ioconf.c:73: warning: initialization from incompatible pointer type
ioconf.c:76: warning: initialization from incompatible pointer type
ioconf.c:81: warning: initialization from incompatible pointer type
ioconf.c:86: warning: initialization from incompatible pointer type
ioconf.c:93: warning: initialization from incompatible pointer type
ioconf.c:96: warning: initialization from incompatible pointer type
ioconf.c:447: warning: excess elements in struct initializer
ioconf.c:447: warning: (near initialization for `cfdata[0]')
ioconf.c:450: warning: excess elements in struct initializer
[cut]


line 15 is for example the second line of this pair:
static const char * const ex_attrs[] = { "mii", NULL };
CFDRIVER_DECL(ex, DV_IFNET, ex_attrs);


any suggestions ? is my "config" tool outdated possibly ? I got no
errors while running it.

Bye,

   Riccardo