[WBEL-users] Problems re-compiling kernel under WBL 3.0

Robert Heller <[email protected]>
Newsgroups gmane.linux.whitebox.user
Organization Deepwoods Software
Message-ID <[email protected]>
I need to rebuild the kernel and I am getting a compile error:

make[1]: Entering directory `/usr/src/linux-2.4.21-40.EL/arch/i386/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-40.EL/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common  -Wno-unused -fomit-frame-pointer -pipe -freorder-blocks -mpreferred-stack-boundary=2 -march=i586   -nostdinc -iwithprefix include -DKBUILD_BASENAME=io_apic  -c -o io_apic.o io_apic.c
io_apic.c:40: `dest_LowestPrio' undeclared here (not in a function)
io_apic.c: In function `__mask_IO_APIC_irq':
io_apic.c:135: warning: implicit declaration of function `io_apic_read'
io_apic.c:135: warning: implicit declaration of function `io_apic_write'
io_apic.c:135: warning: implicit declaration of function `io_apic_sync'
io_apic.c: In function `clear_IO_APIC_pin':
io_apic.c:164: storage size of `entry' isn't known
io_apic.c:170: `dest_SMI' undeclared (first use in this function)
io_apic.c:170: (Each undeclared identifier is reported only once
io_apic.c:170: for each function it appears in.)
io_apic.c: In function `clear_IO_APIC':
io_apic.c:190: `nr_ioapics' undeclared (first use in this function)
io_apic.c: In function `find_irq_entry':
io_apic.c:267: `mp_irq_entries' undeclared (first use in this function)
io_apic.c:268: `mp_irqs' undeclared (first use in this function)
io_apic.c:269: `mp_ioapics' undeclared (first use in this function)
io_apic.c:270: `MP_APIC_ALL' undeclared (first use in this function)
io_apic.c: In function `find_isa_irq_pin':
io_apic.c:284: `mp_irq_entries' undeclared (first use in this function)
io_apic.c:285: `mp_irqs' undeclared (first use in this function)
io_apic.c:287: `mp_bus_id_to_type' undeclared (first use in this function)
io_apic.c:287: `MP_BUS_ISA' undeclared (first use in this function)
io_apic.c:288: `MP_BUS_EISA' undeclared (first use in this function)
io_apic.c:289: `MP_BUS_MCA' undeclared (first use in this function)
io_apic.c: In function `IO_APIC_get_PCI_irq_vector':
io_apic.c:308: warning: implicit declaration of function `Dprintk'
io_apic.c:310: `mp_bus_id_to_pci_bus' undeclared (first use in this function)
io_apic.c:314: `mp_irq_entries' undeclared (first use in this function)
io_apic.c:315: `mp_irqs' undeclared (first use in this function)
io_apic.c:317: `nr_ioapics' undeclared (first use in this function)
io_apic.c:318: `mp_ioapics' undeclared (first use in this function)
io_apic.c:319: `MP_APIC_ALL' undeclared (first use in this function)
io_apic.c:322: `mp_bus_id_to_type' undeclared (first use in this function)
io_apic.c:322: `MP_BUS_PCI' undeclared (first use in this function)
io_apic.c: In function `MPBIOS_polarity':
io_apic.c:385: `mp_irqs' undeclared (first use in this function)
io_apic.c:395: `mp_bus_id_to_type' undeclared (first use in this function)
io_apic.c:397: `MP_BUS_ISA' undeclared (first use in this function)
io_apic.c:402: `MP_BUS_EISA' undeclared (first use in this function)
io_apic.c:407: `MP_BUS_PCI' undeclared (first use in this function)
io_apic.c:412: `MP_BUS_MCA' undeclared (first use in this function)
io_apic.c: In function `MPBIOS_trigger':
io_apic.c:454: `mp_irqs' undeclared (first use in this function)
io_apic.c:464: `mp_bus_id_to_type' undeclared (first use in this function)
io_apic.c:466: `MP_BUS_ISA' undeclared (first use in this function)
io_apic.c:471: `MP_BUS_EISA' undeclared (first use in this function)
io_apic.c:476: `MP_BUS_PCI' undeclared (first use in this function)
io_apic.c:481: `MP_BUS_MCA' undeclared (first use in this function)
io_apic.c: In function `pin_2_irq':
io_apic.c:534: `mp_irqs' undeclared (first use in this function)
io_apic.c:542: `mp_bus_id_to_type' undeclared (first use in this function)
io_apic.c:544: `MP_BUS_ISA' undeclared (first use in this function)
io_apic.c:545: `MP_BUS_EISA' undeclared (first use in this function)
io_apic.c:546: `MP_BUS_MCA' undeclared (first use in this function)
io_apic.c:551: `MP_BUS_PCI' undeclared (first use in this function)
io_apic.c: In function `IO_APIC_irq_trigger':
io_apic.c:591: `nr_ioapics' undeclared (first use in this function)
io_apic.c:593: `mp_INT' undeclared (first use in this function)
io_apic.c: In function `setup_IO_APIC_irqs':
io_apic.c:634: storage size of `entry' isn't known
io_apic.c:640: `nr_ioapics' undeclared (first use in this function)
io_apic.c:648: `dest_LowestPrio' undeclared (first use in this function)
io_apic.c:653: `mp_INT' undeclared (first use in this function)
io_apic.c:656: `mp_ioapics' undeclared (first use in this function)
io_apic.c: In function `setup_ExtINT_IRQ0_pin':
io_apic.c:716: storage size of `entry' isn't known
io_apic.c:724: warning: implicit declaration of function `apic_write_around'
io_apic.c:733: `dest_LowestPrio' undeclared (first use in this function)
io_apic.c: In function `print_IO_APIC':
io_apic.c:765: storage size of `reg_00' isn't known
io_apic.c:766: storage size of `reg_01' isn't known
io_apic.c:767: storage size of `reg_02' isn't known
io_apic.c:768: storage size of `reg_03' isn't known
io_apic.c:771: `mp_irq_entries' undeclared (first use in this function)
io_apic.c:772: `nr_ioapics' undeclared (first use in this function)
io_apic.c:774: `mp_ioapics' undeclared (first use in this function)
io_apic.c:861: storage size of `entry' isn't known
io_apic.c: In function `print_APIC_bitfield':
io_apic.c:913: warning: implicit declaration of function `apic_read'
io_apic.c: In function `print_local_APIC':
io_apic.c:935: warning: implicit declaration of function `get_maxlvt'
io_apic.c:968: warning: implicit declaration of function `apic_write'
io_apic.c: In function `enable_IO_APIC':
io_apic.c:1041: storage size of `reg_01' isn't known
io_apic.c:1056: `nr_ioapics' undeclared (first use in this function)
io_apic.c: In function `disable_IO_APIC':
io_apic.c:1079: warning: implicit declaration of function `disconnect_bsp_APIC'
io_apic.c: In function `setup_ioapic_ids_from_mpc':
io_apic.c:1091: storage size of `reg_00' isn't known
io_apic.c:1092: `phys_cpu_present_map' undeclared (first use in this function)
io_apic.c:1104: `nr_ioapics' undeclared (first use in this function)
io_apic.c:1111: `mp_ioapics' undeclared (first use in this function)
io_apic.c:1153: `mp_irq_entries' undeclared (first use in this function)
io_apic.c:1154: `mp_irqs' undeclared (first use in this function)
io_apic.c: In function `ack_edge_ioapic_irq':
io_apic.c:1270: warning: implicit declaration of function `ack_APIC_irq'
io_apic.c: In function `unlock_ExtINT_logic':
io_apic.c:1503: storage size of `entry0' isn't known
io_apic.c:1503: storage size of `entry1' isn't known
io_apic.c:1507: `mp_INT' undeclared (first use in this function)
io_apic.c:1522: `dest_ExtINT' undeclared (first use in this function)
io_apic.c: In function `check_timer':
io_apic.c:1586: `mp_INT' undeclared (first use in this function)
io_apic.c:1587: `mp_ExtINT' undeclared (first use in this function)
io_apic.c:1597: `nmi_watchdog' undeclared (first use in this function)
io_apic.c:1597: `NMI_IO_APIC' undeclared (first use in this function)
io_apic.c:1601: warning: implicit declaration of function `check_nmi_watchdog'
io_apic.c: In function `setup_IO_APIC':
io_apic.c:1699: warning: implicit declaration of function `sync_Arb_IDs'
make[1]: *** [io_apic.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.21-40.EL/arch/i386/kernel'
make: *** [_dir_arch/i386/kernel] Error 2

I'm using gcc-3.2.3-49:

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-49)

On a i586 laptop:

Linux gollum.deepsoft.com 2.4.21-40.EL #1 Fri Mar 24 13:23:44 EST 2006 i586 i586 i386 GNU/Linux

The only thing I changed in the configuration was CONFIG_MODVERSIONS:

gollum.deepsoft.com% diff /boot/config-2.4.21-40.EL /usr/src/linux-2.4/.config 
13c13
< CONFIG_MODVERSIONS=y
---
> # CONFIG_MODVERSIONS is not set

(I need this change so I can use the madwifi-ng driver.)

Is there something else I need to change or patch? 


Robert Heller             -- 978-544-6933
Deepwoods Software        -- Linux Installation and Administration
http://www.deepsoft.com/  -- Web Hosting, with CGI and Database
[email protected]       -- Contract Programming: C/C++, Tcl/Tk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.