help-hurd
[Top][All Lists]
Advanced

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

Re: Compile error for oskit-mach


From: Jeroen Dekkers
Subject: Re: Compile error for oskit-mach
Date: Thu, 2 May 2002 13:34:55 +0200
User-agent: Mutt/1.3.28i

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:anoncvs@subversions.gnu.org:/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: jdekkers@jabber.org
Debian GNU supporter - http://www.debian.org http://www.gnu.org
IRC: jeroen@openprojects

Attachment: pgpAv9B5lvHl3.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]