grub-devel
[Top][All Lists]
Advanced

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

Re: Regarding "strstr in bsd is not defined" compilation error


From: Gnanasekar Loganathan
Subject: Re: Regarding "strstr in bsd is not defined" compilation error
Date: Mon, 22 Nov 2010 14:27:38 +0530

Thanks a lot Colin.
Its cleared!

Thanks,
Gnana



On Mon, Nov 22, 2010 at 2:02 PM, Colin Watson <address@hidden> wrote:
On Mon, Nov 22, 2010 at 01:16:09PM +0530, Gnanasekar Loganathan wrote:
>    I'm newly joined in this group.
>    I'm want to booting system from network/usb/harddisk by giving command.
>    So modifying the grub as well in loader/i386/bsd.c.
>
>    I used strstr function  from string.h at the end of compilation i'm
>    getting the following error.
>
>    strstr in bsd is not defined

strstr is a libc (standard C library) function, and you can't use those
in most parts of GRUB because the GRUB boot loader is a restricted
environment where libc is not available.  Use grub_strstr instead.

--
Colin Watson                                       [address@hidden]

_______________________________________________
Grub-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/grub-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]