Compiling grub-1.98 fails

Karthik Bhuvanagiri karthik.bhuvanagiri at gmail.com
Sat Feb 12 09:18:27 PST 2011


Hi,

Where can I get md5sum of grub-1.98 tar ball? I'm able to successfully
extract tarball without any integrity or checksum errors.
Still it fails when i give "make" command. What could be the problem?

Thanks,
Karthik

2011/2/7 Bruce Dubbs <bruce.dubbs at gmail.com>

> Karthik Bhuvanagiri wrote:
> > Hi,
> >
> > I'm following LFS-Book-6.7. I followed everything in the book
> successfully
> > until section 6.44.1-Installation of Grub. Compiling grub-1.98 fails
> after
> > issuing "make" command.
> > Please suggest me in resolving the issue.
> >
> > *Output of ./configure --prefix=/usr --sysconfdir=/etc
> > --disable-grub-emu-usb --disable-grub-fstest --disable-efiemu:*
>
> > *Following is the output of "make" command at which it seems to be
> failed:*
>
> ...
>
> > gcc -o grub-mkelfimage grub_mkelfimage-gnulib_progname.o
> > grub_mkelfimage-util_elf_grub_mkimage.o grub_mkelfimage-util_misc.o
> > grub_mkelfimage-util_resolve.o grub_mkelfimage-gnulib_progname.o
> > grub_mkelfimage-util_elf_grub_mkimage.o grub_mkelfimage-util_misc.o
> > grub_mkelfimage-util_resolve.o
>
> > grub_mkelfimage-gnulib_progname.o:(.bss+0x0): multiple definition of
> > `program_name'
>
> I don't know why it happened, but note that on the gcc line above, the
> object files are included twice.  Here is the same line reformatted:
>
> gcc -o grub-mkelfimage
> grub_mkelfimage-gnulib_progname.o
> grub_mkelfimage-util_elf_grub_mkimage.o
> grub_mkelfimage-util_misc.o
> grub_mkelfimage-util_resolve.o
>
> grub_mkelfimage-gnulib_progname.o
> grub_mkelfimage-util_elf_grub_mkimage.o
> grub_mkelfimage-util_misc.o
> grub_mkelfimage-util_resolve.o
>
> I would suggest removing the entire grub directory, checking the md5sun
> of the tarball, and extract/rebuild.
>
>   -- Bruce
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>



-- 
Thanks and Regards,
Karthik Bhuvanagiri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20110212/a7d110d6/attachment.html>


More information about the lfs-support mailing list