Subject: kern/9600: GENERIC macppc kernel does not compile
To: None <gnats-bugs@gnats.netbsd.org>
From: Havard Eidnes <he@netbsd.org>
List: netbsd-bugs
Date: 03/11/2000 07:06:35
>Number:         9600
>Category:       kern
>Synopsis:       GENERIC macppc kernel does not compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 11 07:06:00 2000
>Last-Modified:
>Originator:     Havard Eidnes
>Organization:
	
>Release:        NetBSD-current 11 Mar 2000
>Environment:
	
System: NetBSD vader.runit.sintef.no 1.4 NetBSD 1.4 (VADER) #2: Mon Jun 14 13:08:51 MEST 1999 he@vader.runit.sintef.no:/usr/src/sys/arch/i386/compile/VADER i386


>Description:
	GENERIC macppc kernel does not compile due to problems in the
	pci-cardbus code:

cc  -O2 -pipe -Werror -Wreturn-type -Wpointer-arith -Wno-main -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -I../../../../../gnu/sys -DLKM -DDIAGNOSTIC -DTRAP_PANICWAIT -DNMBCLUSTERS="0x400" -DMAXUSERS=32 -D_KERNEL -Dmacppc  -c ../../../../dev/pci/pccbb.c
../../../../dev/pci/pccbb.c: In function `pccbb_pci_callback':
../../../../dev/pci/pccbb.c:601: structure has no member named `sc_pil_intr_enable'
../../../../dev/pci/pccbb.c: In function `pccbbintr':
../../../../dev/pci/pccbb.c:964: structure has no member named `sc_pil_intr_enable'
../../../../dev/pci/pccbb.c: In function `pccbb_powerhook':
../../../../dev/pci/pccbb.c:3167: structure has no member named `sc_pil_intr_enable'
../../../../dev/pci/pccbb.c:3170: structure has no member named `sc_pil_intr_enable'
../../../../dev/pci/pccbb.c:3195: structure has no member named `sc_pil_intr_enable'
*** Error code 1

	Inspection of the code reveals that something appears to be
	half-cooked here:

sys/dev/pci/pccbbvar.h says:

struct pccbb_softc {
...
       /* interrupt handler list on the bridge */
        struct pccbb_intrhand_list *sc_pil;

whereas the code in pccbb.c does:

        /* clear data structure for child device interrupt handlers */
        sc->sc_pil = NULL;
        sc->sc_pil_intr_enable = 1;

etc., and sc_pil_intr_enable is not defined anywhere.


>How-To-Repeat:
	Try to compile up-to-date sources.

>Fix:
	Sorry, don't know.
>Audit-Trail:
>Unformatted: