On Tue, Apr 30, 2002 at 10:03:22PM -0700, Grant Bowman wrote:
> So based on another recommendation I tried the oskit-mach.  I used this
> CVS command to get the code and got the following error.
> 
> cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot/hurd co -d oskit-mach -r 
>oskit-branch -P gnumach
> 
> 
> 0 Tue Apr 30 21:06:47 root@woody:/misc/hurd/root/oskit-mach/build# make
> gcc -g -nostdlib -nostartfiles  -r -o oskit-kernel.o \
>       -Wl,-\( kernel.o clib-routines.o -L/usr/lib/oskit//.. \
>                -loskit_clientos -loskit_c -loskit_kern -loskit_lmm -loskit_com 
>-loskit_exec -loskit_unsupp -loskit_dev -loskit_linux_dev -loskit_diskpart  -Wl,-\) 
>-lgcc
> ld  -Ttext 0x100000 -o kernel oskit-kernel.o /usr/lib/oskit//crtn.o
> oskit-kernel.o: In function `picinit':
> /misc/hurd/root/oskit-mach/build/../i386/i386/pic.c:70: undefined reference to `cli'
> make: *** [kernel] Error 1
> rm oskit-kernel.o
> 
> 
> I found that the offending file oskit-mach/build/../i386/i386/pic.c has
> the following includes.  The oskit/x86/* files don't exist where I must
> assume the cli() resided.

Those are the include files of the OSKit. The cli() is an extern
inline function defined in oskit/x86/proc_reg.h, the only reason for
this failrue I can think of is that you compile without optimization
and it doesn't get inlined. A quick fix is to just replace the cli()
function with asm("cli").

Jeroen Dekkers
-- 
Jabber supporter - http://www.jabber.org Jabber ID: [EMAIL PROTECTED]
Debian GNU supporter - http://www.debian.org http://www.gnu.org
IRC: jeroen@openprojects

Attachment: msg02231/pgp00000.pgp
Description: PGP signature

Reply via email to