From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1BvZIx-00060H-LD for mharc-grub-devel@gnu.org; Fri, 13 Aug 2004 06:28:59 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BvZIv-00060C-Mq for grub-devel@gnu.org; Fri, 13 Aug 2004 06:28:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BvZIu-0005zz-5O for grub-devel@gnu.org; Fri, 13 Aug 2004 06:28:57 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BvZIu-0005zt-3H for grub-devel@gnu.org; Fri, 13 Aug 2004 06:28:56 -0400 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BvZEp-0004lf-RJ for grub-devel@gnu.org; Fri, 13 Aug 2004 06:24:44 -0400 Received: from localhost (charlie.han.nl [145.74.66.9]) by mail-cn.han.nl (Postfix) with ESMTP id 4FB858A42 for ; Fri, 13 Aug 2004 12:24:43 +0200 (CEST) Received: from mail-cn.han.nl ([145.74.66.11]) by localhost (charlie.han.nl [145.74.66.9]) (amavisd-new, port 10024) with ESMTP id 28413-10 for ; Fri, 13 Aug 2004 12:24:41 +0200 (CEST) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 7DCC78579 for ; Fri, 13 Aug 2004 12:24:41 +0200 (CEST) Received: from marco.marco-g.com (a82-92-27-129.adsl.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id CAEB6C045 for ; Fri, 13 Aug 2004 11:24:43 +0200 (CEST) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: From: Marco Gerards Date: Fri, 13 Aug 2004 12:25:07 +0200 In-Reply-To: (lode leroy's message of "Fri, 13 Aug 2004 08:59:05 +0200") Message-ID: <87vffnmj24.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new@vscan-cn.han.nl Subject: Re: problems compiling NTFS on GRUB2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2004 10:28:58 -0000 "lode leroy" writes: >>How do you compile and link fs/ntfs.c > > I modified i386-pc.mk :%s/minix/ntfs/g Ok. But I assume you have to add something in order to link it to the library? >>Can you show a backtrace of the crash? > > see attached mkimg.log > > I noticed that there are some external unresolved link symbols... > ie. libntfs uses fprintf, calloc, mbrtowc, memcpy etc... Oh, that sucks. > I suppose these will need to be defined in ntfs.o > and libntfs.a is compiled for linux, it will need to be compiled > for grub2. How do I do this? I suppose --no-stdlib > and make equivalents for , etc.... Well, in GRUB we have functions like grub_memcpy, etc. But the best way to implement NTFS is by writing it yourself. It is on my todo already, or do you want to do this? I don't think it is easy and clean to use libntfs. Another thing to consider is its size. -- Marco