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

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.