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: Colin Watson
Subject: Re: Regarding "strstr in bsd is not defined" compilation error
Date: Mon, 22 Nov 2010 08:32:13 +0000
User-agent: Mutt/1.5.18 (2008-05-17)

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



reply via email to

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