[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems compiling NTFS on GRUB2
From: |
Marco Gerards |
Subject: |
Re: problems compiling NTFS on GRUB2 |
Date: |
Fri, 13 Aug 2004 12:25:07 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
"lode leroy" <address@hidden> 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 <stdlib.h>, <ctype.h> 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