From: Ferenc Wagner Subject: Re: Pesky '#define current' in mini-os/sched.h Date: Mon, 27 Apr 2009 21:42:42 +0200 Message-ID: <873abt51e5.fsf@tac.ki.iif.hu> References: <87k5563r1v.fsf@tac.ki.iif.hu> <20090427182543.GD5965@const.famille.thibault.fr> <877i163pga.fsf@tac.ki.iif.hu> <20090427185955.GF5965@const.famille.thibault.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20090427185955.GF5965@const.famille.thibault.fr> (Samuel Thibault's message of "Mon, 27 Apr 2009 20:59:55 +0200") List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Samuel Thibault Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Samuel Thibault writes: > Ferenc Wagner, le Mon 27 Apr 2009 20:45:57 +0200, a =C3=A9crit : >> Samuel Thibault writes: >>> Ferenc Wagner, le Mon 27 Apr 2009 20:11:24 +0200, a =C3=A9crit : >>>> #define current get_current() >>> >>> I guess we should probably just get rid of the current macro >>=20 >> 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/x= en-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 /ho= me/wferi/xen/xen-3.3.1/stubdom/mini-os-x86_32-c/mini-os.o -o /home/wferi/xe= n/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. --=20 Thanks, Feri.