Please search the forums before opening a post.
https://bbs.archlinux.org/viewtopic.php?id=145591
https://bbs.archlinux.org/viewtopic.php?id=146805
Darn, sorry. I forgot to use the search function.
Thanks!
]]>https://bbs.archlinux.org/viewtopic.php?id=145591
https://bbs.archlinux.org/viewtopic.php?id=146805
ezik
]]>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?
]]>