Skip to contentSkip to conversation

BUG - linux-2.5.13/arch/i386/kernel - bluesmoke.c

DISCUSSION Treeve Jelbert 3 participants 3 messages May 3, 2002

lore
Share & tools
lore
#0 lore raw

gcc -D__KERNEL__ -I/usr/src/linux-2.5.13/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -DKBUILD_BASENAME=bluesmoke -c -o bluesmoke.o bluesmoke.c bluesmoke.c: In function `intel_thermal_interrupt':
bluesmoke.c:36: warning: implicit declaration of function ack_APIC_irq' bluesmoke.c: In function intel_init_thermal':
bluesmoke.c:92: warning: implicit declaration of function apic_read' bluesmoke.c:104: warning: implicit declaration of function apic_write_around'

-----

make[1]: Leaving directory `/usr/src/linux-2.5.13/arch/i386/lib' ld -m elf_i386 -T /usr/src/linux-2.5.13/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o

init/version.o init/do_mounts.o \
        --start-group \
        arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o 
fs/fs.o ipc/ipc.o \
        /usr/src/linux-2.5.13/arch/i386/lib/lib.a 

/usr/src/linux-2.5.13/lib/lib.a /usr/src/linux-2.5.13/arch/i386/lib/lib.a \
drivers/acpi/acpi.o drivers/base/base.o drivers/char/char.o
drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/pci/driver.o

drivers/pnp/pnp.o drivers/video/video.o drivers/input/inputdrv.o \
        net/network.o \
        --end-group \
        -o vmlinux

arch/i386/kernel/kernel.o: In function `intel_thermal_interrupt':
arch/i386/kernel/kernel.o(.text+0x7801): undefined reference to ack_APIC_irq' arch/i386/kernel/kernel.o: In function intel_init_thermal':
arch/i386/kernel/kernel.o(.text.init+0x2e41): undefined reference to `apic_read'
arch/i386/kernel/kernel.o(.text.init+0x2e83): undefined reference to `apic_write_around'
arch/i386/kernel/kernel.o(.text.init+0x2ea3): undefined reference to `apic_read'
arch/i386/kernel/kernel.o(.text.init+0x2eb3): undefined reference to `apic_write_around'
make: *** [vmlinux] Error 1

Signature · 1 line
Regards,  Treeve
#1 lore raw
Quoted 9 lines · Treeve Jelbert

gcc -D__KERNEL__ -I/usr/src/linux-2.5.13/include -Wall -Wstrict-prototypes

(quoted diff) +0 -3
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common 
-pipe -mpreferred-stack-boundary=2 -march=athlon    
-DKBUILD_BASENAME=bluesmoke  -c -o bluesmoke.o bluesmoke.c

bluesmoke.c: In function `intel_thermal_interrupt':
bluesmoke.c:36: warning: implicit declaration of function ack_APIC_irq' bluesmoke.c: In function intel_init_thermal':
bluesmoke.c:92: warning: implicit declaration of function apic_read' bluesmoke.c:104: warning: implicit declaration of function apic_write_around'

You need CONFIG_X86_LOCAL_APIC, a proper fix is currently in 2.5-dj pending a merge.

Thanks,
Zwane

Signature · 1 line
http://function.linuxpower.ca
#2 lore raw
In reply to Treeve Jelbert
Quoted 2 lines · Zwane Mwaikambo

You need CONFIG_X86_LOCAL_APIC, a proper fix is currently in 2.5-dj pending a merge.

+ Brian Gerst's changes, + some more bending of my own.
I'll put up another patch soon, if that goes ok, I'll push the bluesmoke bits to Linus in the next round.

Signature · 2 lines
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs