issue linking - undefined Stub symbols

Riccardo Mottola <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc64
Message-ID <[email protected]>
Hi all!

I am trying to compile a big program on NetBSD-sparc64, on a fresh 9.0
install.
In specific it is ArcticFox, a gecko-based browser (PaleMoon/FireFox fork)
I have it already compiled with success on NetBSD  i386 and amd64, so I
know the "basics" of the OS should work.

On Sparc64 however, compilation appears to succeed, but linking fails:

1246:32.26     INPUT("../../modules/zlib/src/trees.o")
1246:32.26     INPUT("../../modules/zlib/src/uncompr.o")
1246:32.27     INPUT("../../modules/zlib/src/zutil.o")
1246:32.27     INPUT("StaticXULComponentsEnd/StaticXULComponentsEnd.o")
1246:32.27
1246:32.27 ld:
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x28):
undefined reference to `nsXPTCStubBase::Stub3()'
1246:32.28 ld:
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x30):
undefined reference to `nsXPTCStubBase::Stub4()'
1246:32.28 ld:
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x38):
undefined reference to `nsXPTCStubBase::Stub5()'
1246:32.28 ld:
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x40):
undefined reference to `nsXPTCStubBase::Stub6()'

...
1247:13.97 ld:
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x7f8):
undefined reference to `nsXPTCStubBase::Sentinel3()'
1247:13.97 ld:
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x800):
undefined reference to `nsXPTCStubBase::Sentinel4()'
1247:13.97 ld: libxul.so: hidden symbol `_ZN14nsXPTCStubBase7Stub234Ev'
isn't defined
1247:13.98 ld: final link failed: bad value


Never seen all these StubXX symbols! could we have an issue in the
toolchain? or any other ideas?

Riccardo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.