Subject: Kernel Compile Error: MPACPI & MPBIOS
To: NetBSD Current <current-users@netbsd.org>
From: Conrad T. Pino <Conrad@Pino.com>
List: current-users
Date: 12/27/2003 01:24:20
I updated current yesterday and today via AnonCVS.

I created a custom kernel by combining GENERIC &
GENERIC.MP into a single file and enabled MPACPI
and left MPBIOS enabled (both are enabled).

Build system is a NetBSD 1.6.1 binary install.

Command to repeat:

$ cd /usr/src
$ ./build.sh tools
$ ./build.sh kernel=Custom

The link fails as shown below "====" line.

Problem may be in "config" process.  The "Makefile" created
for Custom kernel compiles and links "mpbios.c" but ignores
"mpacpi.c" file.  File "mpbios.o" exists but "mpacpi.o" does
not exist.

Thank you,

Conrad Pino
===============================================================
#      link  Custom/netbsd
/usr/src/tooldir.NetBSD-1.6-i386/bin/i386--netbsdelf-ld -T /usr/src/sys/arch/i386/conf/kern.ldscript -Ttext c0100000 -e start -X -o
netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
mpbios.o(.text+0x540): In function `mpbios_scan':
: undefined reference to `mpacpi_ncpu'
mpbios.o(.text+0x699): In function `mpbios_scan':
: undefined reference to `mpacpi_ncpu'
mpbios.o(.text+0x7b1): In function `mpbios_scan':
: undefined reference to `mpacpi_nioapic'
mpbios.o(.text+0x8ef): In function `mpbios_scan':
: undefined reference to `mpacpi_ncpu'
mpbios.o(.text+0x8fc): In function `mpbios_scan':
: undefined reference to `mpacpi_nioapic'
pci_machdep.o(.text+0x36): In function `pci_attach_hook':
: undefined reference to `mpacpi_pci_attach_hook'