You are not logged in.

#1 2012-08-24 19:15:56

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,471
Website

[SOLVED] Can't build Grub

Hey all,

I'm trying to patch Grub so that it doesn't show the "Welcome to GRUB" message during startup. I have done as is explained here: http://lists.gnu.org/archive/html/grub- … 00176.html
This is the diff file I came up with:

--- main.c.orig 2012-06-25 22:33:41.000000000 +0200
+++ src/grub-2.00/grub-core/kern/main.c 2012-08-24 20:59:37.129694404 +0200
@@ -210,11 +210,6 @@
   /* First of all, initialize the machine.  */
   grub_machine_init ();
 
-  /* Hello.  */
-  grub_setcolorstate (GRUB_TERM_COLOR_HIGHLIGHT);
-  grub_printf ("Welcome to GRUB!\n\n");
-  grub_setcolorstate (GRUB_TERM_COLOR_STANDARD);
-
   /* Load pre-loaded modules and free the space.  */
   grub_register_exported_symbols ();
 #ifdef GRUB_LINKER_HAVE_INIT

But now, when I try building I get the following:

In file included from argp-fmtstream.h:27:0,
                 from argp-fs-xinl.c:26:
./stdio.h:456:1: fout: 'gets' undeclared here (not in a function)
In file included from argp.h:22:0,
                 from argp-eexst.c:25:
./stdio.h:456:1: fout: 'gets' undeclared here (not in a function)
x86_64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..  -I../../intl    -MT argp-pin.o -MD -MP -MF .deps/argp-pin.Tpo -c -o argp-pin.o argp-pin.c
make[4]: *** [argp-eexst.o] Fout 1
make[4]: *** Wachten op onvoltooide taken...
make[4]: *** [argp-fs-xinl.o] Fout 1
In file included from argp.h:22:0,
                 from argp-parse.c:42:
./stdio.h:456:1: fout: 'gets' undeclared here (not in a function)
In file included from argp-fmtstream.h:27:0,
                 from argp-fmtstream.c:34:
./stdio.h:456:1: fout: 'gets' undeclared here (not in a function)
In file included from argp.h:22:0,
                 from argp-help.c:49:
./stdio.h:456:1: fout: 'gets' undeclared here (not in a function)
make[4]: *** [argp-parse.o] Fout 1
make[4]: *** [argp-fmtstream.o] Fout 1
mv -f .deps/argp-pin.Tpo .deps/argp-pin.Po
make[4]: *** [argp-help.o] Fout 1
make[4]: Map '/home/jente/abs/grub/src/grub_bios-2.00/grub-core/gnulib' wordt verlaten
make[3]: *** [all-recursive] Fout 1
make[3]: Map '/home/jente/abs/grub/src/grub_bios-2.00/grub-core/gnulib' wordt verlaten
make[2]: *** [all] Fout 2
make[2]: Map '/home/jente/abs/grub/src/grub_bios-2.00/grub-core/gnulib' wordt verlaten
make[1]: *** [all-recursive] Fout 1
make[1]: Map '/home/jente/abs/grub/src/grub_bios-2.00' wordt verlaten
make: *** [all] Fout 2
==> ERROR: A failure occurred in build().
    Aborting...

I have also tried building without applying my patch, and I get the same output. What's going on here?

Last edited by Unia (2012-08-25 17:41:33)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#2 2012-08-25 10:20:16

shulamy
Member
From: israel
Registered: 2010-09-11
Posts: 324

Re: [SOLVED] Can't build Grub

dosn't it have "hidemenu" option ?

ezik

Offline

#3 2012-08-25 10:31:04

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,471
Website

Re: [SOLVED] Can't build Grub

Then still it shows "Welcome to Grub". That message shows before you see the menu.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#4 2012-08-25 14:43:47

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: [SOLVED] Can't build Grub

Please search the forum before opening a new topic:

https://bbs.archlinux.org/viewtopic.php?id=145591
https://bbs.archlinux.org/viewtopic.php?id=146805

Last edited by the.ridikulus.rat (2012-08-25 18:00:30)

Offline

#5 2012-08-25 16:33:46

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,471
Website

Re: [SOLVED] Can't build Grub

the.ridikulus.rat wrote:

Darn, sorry. I forgot to use the search function.

Thanks!


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

Board footer

Powered by FluxBB