grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Gnanasekar Loganathan <l.gnanasekar@gmail.com>
To: cjwatson@ubuntu.com
Cc: grub-devel@gnu.org
Subject: Re: Regarding "strstr in bsd is not defined" compilation error
Date: Mon, 22 Nov 2010 14:27:38 +0530	[thread overview]
Message-ID: <AANLkTi=1OZ1cnBMUy_HsWbpXkcuDscm_P2761T89ypc1@mail.gmail.com> (raw)
In-Reply-To: <20101122083212.GW21862@riva.ucam.org>

[-- Attachment #1: Type: text/plain, Size: 982 bytes --]

Thanks a lot Colin.
Its cleared!

Thanks,
Gnana



On Mon, Nov 22, 2010 at 2:02 PM, Colin Watson <cjwatson@ubuntu.com> 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                                       [cjwatson@ubuntu.com]
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>

[-- Attachment #2: Type: text/html, Size: 1616 bytes --]

      reply	other threads:[~2010-11-22  8:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-22  7:46 Regarding "strstr in bsd is not defined" compilation error Gnanasekar Loganathan
2010-11-22  8:32 ` Colin Watson
2010-11-22  8:57   ` Gnanasekar Loganathan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi=1OZ1cnBMUy_HsWbpXkcuDscm_P2761T89ypc1@mail.gmail.com' \
    --to=l.gnanasekar@gmail.com \
    --cc=cjwatson@ubuntu.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).