problems with binutils and/or g++
Alan Modra
alan@linuxcare.com.au
Wed, 18 Oct 2000 19:01:16 +1100 (EST)
On Wed, 18 Oct 2000, Randolph Chung wrote:
> > After fixing a zillion bugs of the "friend foo" -> "friend class foo" type
> > and assorted protected/private/public issues, I finally managed to have apt
> > compile. Same error as you found. It's not a linker bug as it's not a
> > case of the linker dropping some section; the undefined symbol really
> > isn't defined anywhere. I don't know enough C++ to debug the problem
> > further.
>
> Alan, for my curiosity, could you explain this particular line from g++'s
> output (from dhd's message)?
>
> ../build/obj/cmdline/apt-get.o(.gnu.linkonce.t.__tf10LogCleaner+0x1c):
> cannot handle R_PARISC_PCREL17F for pkgArchiveCleaner type_info function
>
> that seems to be causing the "undefined" symbol messages.
That message actually comes from the linker in response to an error during
final link. See bfd/elf32-hppa.c:elf32_hppa_relocate_section. It's
saying a particular relocation couldn't be relocated for some reason. In
this case, the undefined symbol is the cause of the message (not the other
way around), and since the linker already reported the undefined symbol
it's rather redundant. I should probably not report "cannot handle.." for
undefined symbols.
Alan Modra
--
Linuxcare. Support for the Revolution.