On Aug 24, 2004, at 2:35 PM, Hollis Blanchard wrote:
I just tried to build grub2 from cvs on PPC and got this error: grubof-fs_hfs.o(.text+0xbc4): In function `grub_hfs_iterate_dir': fs/hfs.c:588: undefined reference to `memset' grubof-fs_hfs.o(.text+0xe74): In function `dir_hook': fs/hfs.c:728: undefined reference to `memset'
Reading just a little closer... this seems to do the trick:
diff -u -r1.13 misc.c --- kern/misc.c 18 Aug 2004 09:00:01 -0000 1.13 +++ kern/misc.c 24 Aug 2004 19:38:45 -0000 @@ -359,6 +359,9 @@
return s; } +/* GCC emits references to memset() for struct initialization etc. */ +void *memset (void *s, int c, grub_size_t n) + __attribute__ ((alias ("grub_memset")));
grub_size_t grub_strlen (const char *s)
-Hollis
_______________________________________________ Bug-grub mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/bug-grub