Mike McCarty wrote:
> 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:*
> [...]
>> grub_mkelfimage-gnulib_progname.o:(.bss+0x0): multiple definition of
>> `program_name'
>> grub_mkelfimage-gnulib_progname.o:(.bss+0x0): first defined here
>> grub_mkelfimage-gnulib_progname.o: In function `set_program_name':
>> progname.c:(.text+0x0): multiple definition of `set_program_name'
> 
> [...]
> 
> Did this ever get resolved? I see that the .o files got included
> in the link more than once, but I didn't see a resolution.

In a fresh svn build yesterday, I get no errors at all.  You've cut down 
the output to where I can't see what the Makefile was trying to do.  I have:

gcc -Ignulib -I./gnulib -I. -I./include -I./gnulib -I./include -Wall -W 
-DGRUB_LIBDIR=\"/usr/lib/`echo grub/i386-pc | sed 's,x,x,'`\" 
-DLOCALEDIR=\"\" -DGRUB_MACHINE_PCBIOS=1 -DGRUB_UTIL=1  -MD -c -o 
grub_mkelfimage-gnulib_progname.o gnulib/progname.c

But I'm not sure if your error is in a compile or a link.  However the 
link completed without error for me too:

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

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to