Subject: current is hardly broken?
To: None <current-users@netbsd.org>
From: Takahiro Kambe <taca@back-street.net>
List: current-users
Date: 10/05/2002 13:28:25
Is current hardly broken?
cc -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-uninitialized -Di386 -I. -I../../../../arch -I../../../.. -nostdinc -DMSGMNB="0x4000" -DMSGMNI="0x29" -DMSGSEG="0x801" -DMSGSSZ="0x40" -DMSGTQL="0x200" -DLKM -DDIAGNOSTIC -DAUTONICEVAL="0" -DIPFORWSRCRT="0" -DIPALLOWSRCRT="0" -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c /b/current/src/sys/arch/i386/compile/SF-1815/../../../../arch/i386/i386/pmc.c
/b/current/src/sys/arch/i386/compile/SF-1815/../../../../arch/i386/i386/pmc.c: In function `pmc_init':
/b/current/src/sys/arch/i386/compile/SF-1815/../../../../arch/i386/i386/pmc.c:77: `cpu_vendor' undeclared (first use in this function)
/b/current/src/sys/arch/i386/compile/SF-1815/../../../../arch/i386/i386/pmc.c:77: (Each undeclared identifier is reported only once
/b/current/src/sys/arch/i386/compile/SF-1815/../../../../arch/i386/i386/pmc.c:77: for each function it appears in.)
*** Error code 1
After remove PERFCTRS option:
ld -T ../../../../arch/i386/conf/kern.ldscript -Ttext c0100000 -e start -X -o netbsd ${SYSTEM_OBJ} vers.o
locore.o: In function `start':
locore.o(.text+0x97): undefined reference to `cpu_info_primary'
locore.o: In function `try586':
locore.o(.text+0x16a): undefined reference to `cpu_info_primary'
locore.o: In function `kcopy':
locore.o(.text+0x373): undefined reference to `cpu_info_primary'
locore.o(.text+0x3ac): undefined reference to `cpu_info_primary'
locore.o(.text+0x3da): undefined reference to `cpu_info_primary'
locore.o(.text+0x431): more undefined references to `cpu_info_primary' follow
gdt.o: In function `setgdt':
gdt.o(.text+0x30): undefined reference to `cpu_info_list'
gdt.o: In function `gdt_init':
gdt.o(.text+0x13d): undefined reference to `cpu_info_primary'
gdt.o(.text+0x152): undefined reference to `cpu_info_primary'
gdt.o(.text+0x166): undefined reference to `cpu_info_primary'
gdt.o: In function `gdt_grow':
gdt.o(.text+0x26e): undefined reference to `cpu_info_list'
machdep.o: In function `i386_proc0_tss_ldt_init':
machdep.o(.text+0x4ac): undefined reference to `cpu_info_primary'
machdep.o: In function `sendsig':
machdep.o(.text+0x18ad): undefined reference to `cpu_info_primary'
machdep.o: In function `initgdt':
machdep.o(.text+0x270e): undefined reference to `cpu_info_primary'
machdep.o: In function `init386':
machdep.o(.text+0x2759): undefined reference to `cpu_info_primary'
machdep.o(.text+0x2763): undefined reference to `cpu_info_primary'
machdep.o(.text+0x2777): more undefined references to `cpu_info_primary' follow
pmap.o: In function `pmap_tlb_shootdown':
pmap.o(.text+0x2aa9): undefined reference to `cpu_info_list'
pmap.o(.text+0x2b59): undefined reference to `cpu_info_primary'
procfs_machdep.o: In function `procfs_getcpuinfstr':
procfs_machdep.o(.text+0xe): undefined reference to `cpu_info_list'
procfs_machdep.o(.text+0xdc): undefined reference to `cpu_info_list'
procfs_machdep.o(.text+0x148): undefined reference to `cpu_info_list'
procfs_machdep.o(.text+0x187): undefined reference to `cpu_info_list'
procfs_machdep.o(.text+0x20c): undefined reference to `cpu_info_list'
sys_machdep.o: In function `i386_set_ldt':
sys_machdep.o(.text+0x23e): undefined reference to `cpu_info_primary'
syscall.o: In function `syscall_plain':
syscall.o(.text+0x41): undefined reference to `cpu_info_primary'
syscall.o(.text+0x14b): undefined reference to `cpu_info_primary'
syscall.o: In function `syscall_fancy':
syscall.o(.text+0x169): undefined reference to `cpu_info_primary'
syscall.o(.text+0x2a7): undefined reference to `cpu_info_primary'
syscall.o(.text+0x2bd): more undefined references to `cpu_info_primary' follow
*** Error code 1
--
Takahiro Kambe <taca@back-street.net>