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
