WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: Pesky '#define current' in mini-os/sched.h

To: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>
Subject: [Xen-devel] Re: Pesky '#define current' in mini-os/sched.h
From: Ferenc Wagner <wferi@xxxxxxx>
Date: Mon, 27 Apr 2009 21:42:42 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 27 Apr 2009 12:43:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090427185955.GF5965@xxxxxxxxxxxxxxxxxxxxxxxxx> (Samuel Thibault's message of "Mon, 27 Apr 2009 20:59:55 +0200")
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <87k5563r1v.fsf@xxxxxxxxxxxxx> <20090427182543.GD5965@xxxxxxxxxxxxxxxxxxxxxxxxx> <877i163pga.fsf@xxxxxxxxxxxxx> <20090427185955.GF5965@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)
Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> writes:

> Ferenc Wagner, le Mon 27 Apr 2009 20:45:57 +0200, a écrit :
>> Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> writes:
>>> Ferenc Wagner, le Mon 27 Apr 2009 20:11:24 +0200, a écrit :
>>>> #define current get_current()
>>>
>>> I guess we should probably just get rid of the current macro
>> 
>> Simply removing it works in my case, but I guess there are cases when
>> it is needed, aren't there?
>
> Of course, everywhere it's used inside minios.

Ok.  Till then, may I ask for your help to integrate ncurses into
minios?  I'm not familiar with the build system.  Basically, I think I
got the ncurses library built for the minios target, but can't use it
in my c stubdom yet, it get undefined references:

wferi@rs22:~/xen/xen-3.3.1/extras/mini-os$ ld -nostdlib 
-L/home/wferi/xen/xen-3.3.1/stubdom/cross-root-i686/i686-xen-elf/lib 
-L/home/wferi/xen/xen-3.3.1/stubdom/ncurses-x86_32/lib -m elf_i386 -T 
arch/x86/minios-x86_32.lds 
/home/wferi/xen/xen-3.3.1/stubdom/mini-os-x86_32-c/mini-os.o -o 
/home/wferi/xen/xen-3.3.1/stubdom/mini-os-x86_32-c/mini-os
/home/wferi/xen/xen-3.3.1/stubdom/mini-os-x86_32-c/mini-os.o: In function 
`grub_ncurses_getxy':
/home/wferi/xen/grub2/util/console.c:267: undefined reference to `stdscr'
[...]

(Yes, I'm trying to build a PV-Grub2 for getting LVM support :)

Of course if I add -lncurses to the above command, I get lots of
undefined references to the libc functions from ncurses.
Sure it's possible to find out, but it would be nice if you could
spare me a few cycles if you don't mind.  At least I wouldn't waste
further effort banging my head against the wrong wall.
-- 
Thanks,
Feri.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel