DragonFly BSD
DragonFly bugs List (threaded) for 2003-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Kernel compile failure


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 20 Jul 2003 00:29:50 -0700 (PDT)

:Maybe not a bug but something dumb I am doing but...
:
:With a CVS checkout of dragonfly on FreeBSD 4.8 userland builds fine but 
:I have problems with 'make kernelbuild' and get the following error:-
:
:cc -shared -nostdlib hack.c -o hack.So
:rm -f hack.c

    Thanks for the bug report, Steve!  It turns out the various
    cpu directives in GENERIC conditionally compiled in some
    code that had not had its underscores properly removed.  I've
    committed fixes for it but haven't tested those cpus.  It
    ought to work now.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>

:...
:-Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I/usr/src/sys 
:-I/usr/src/sys/../include -I/usr/src/sys/contrib/ipfilter  -D_KERNEL 
:-include opt_global.h  -mpreferred-stack-boundary=2  vers.c
:linking kernel
:support.o: In function `generic_copyout':
:support.o(.text+0x425): undefined reference to `_cpu_class'
:support.o: In function `suword':
:support.o(.text+0x89a): undefined reference to `_cpu_class'
:support.o(.text+0x8ab): undefined reference to `_PTmap'
:support.o(.text+0x8b7): undefined reference to `_PTmap'
:support.o(.text+0x8c0): undefined reference to `_PTmap'
:support.o(.text+0x8ce): undefined reference to `_trapwrite'
:support.o: In function `susword':
:support.o(.text+0x916): undefined reference to `_cpu_class'
:support.o(.text+0x927): undefined reference to `_PTmap'
:support.o(.text+0x933): undefined reference to `_PTmap'
:support.o(.text+0x93c): undefined reference to `_PTmap'
:support.o(.text+0x94a): undefined reference to `_trapwrite'
:support.o: In function `subyte':
:support.o(.text+0x99e): undefined reference to `_cpu_class'
:support.o(.text+0x9af): undefined reference to `_PTmap'
:support.o(.text+0x9bb): undefined reference to `_PTmap'
:support.o(.text+0x9c4): undefined reference to `_PTmap'
:support.o(.text+0x9d2): undefined reference to `_trapwrite'
:*** Error code 1
:
:Stop in /usr/obj/usr/src/sys/GENERIC.
:
:-- Steve




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]