nxsty wrote:Master Shake wrote:Just out of curiousity does glibc2.4-r3 break mozilla-firefox? I'm having problems with it and I think its because I updated to the new glibc.
Are you using the gcc from toolchain_overlay? Post the error!
I've been having a rather baffling mozilla-firefox compile error. Maybe it's related.
Packages:
binutils 2.17.50.0.3 from portage
glibc-2.4-r3 and gcc-4.1.1 from
http://svn.evolution-mission.org/toolchain_overlay
I am using hash-style=both and --as-needed in my LDFLAGS having followed the guide at
http://gentoo-wiki.com/HOWTO_Hashstyle.
My entire world is built with my current toolchain including xorg, mythtv, xfce4, etc but the only packages that don't build are mozilla-firefox and mozilla-thunderbird. The error looks like a common problem with --as-needed and undefined references, but removing --as-needed or even completely removing the LDFLAGS line and all extra CFLAGS from my /etc/make.conf does not fix the problem. I have also tried disabling ccache and setting maketopts to "-j1" as well as rebuilding direct dependencies. No matter what I try, only the mozilla packages on my system fail to build. Perhaps I am missing a patch or something, but still doesn't explain why they won't compile even when disabling any extra LDFLAGS. Thanks for any ideas.
Code: Select all
gmake[3]: Entering directory `/var/tmp/portage/mozilla-firefox-1.5.0.4/work/mozilla/js/src/xpconnect/shell'
xpcshell.cpp
i686-pc-linux-gnu-g++ -o xpcshell.o -c -I../../../../dist/include/system_wrappers -include ../../../../config/gcc_hidden.h -DMOZ$i686-pc-linux-gnu-g++ -DGENTOO_NSPLUGINS_DIR="/usr/lib/nsplugins" -DGENTOO_NSBROWSER_PLUGINS_DIR="/usr/lib/nsbrowser/plugins$xpcshell.o: In function `DumpXPC(JSContext*, JSObject*, unsigned int, long*, long*)':
xpcshell.cpp:(.text._Z7DumpXPCP9JSContextP8JSObjectjPlS3_+0x5b): undefined reference to `nsCOMPtr_base::assign_from_gs_cid(nsGet$xpcshell.cpp:(.text._Z7DumpXPCP9JSContextP8JSObjectjPlS3_+0x79): undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
xpcshell.o: In function `main':
xpcshell.cpp:(.text.main+0x6a): undefined reference to `nsCOMPtr_base::begin_assignment()'
xpcshell.cpp:(.text.main+0x82): undefined reference to `NS_InitXPCOM2_P'
xpcshell.cpp:(.text.main+0xa7): undefined reference to `nsCOMPtr_base::assign_from_qi(nsQueryInterface, nsID const&)'
xpcshell.cpp:(.text.main+0xc5): undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
xpcshell.cpp:(.text.main+0xe6): undefined reference to `nsCOMPtr_base::assign_from_gs_contractid(nsGetServiceByContractID, nsID $xpcshell.cpp:(.text.main+0x16a): undefined reference to `nsCOMPtr_base::assign_from_gs_cid(nsGetServiceByCID, nsID const&)'
xpcshell.cpp:(.text.main+0x1f5): undefined reference to `nsCOMPtr_base::assign_from_gs_contractid_with_error(nsGetServiceByContr$xpcshell.cpp:(.text.main+0x21e): undefined reference to `nsCOMPtr_base::begin_assignment()'
xpcshell.cpp:(.text.main+0x264): undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
xpcshell.cpp:(.text.main+0x26f): undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
xpcshell.cpp:(.text.main+0x296): undefined reference to `nsCOMPtr_base::assign_from_gs_contractid(nsGetServiceByContractID, nsID$xpcshell.cpp:(.text.main+0x2d5): undefined reference to `nsCOMPtr_base::begin_assignment()'
xpcshell.cpp:(.text.main+0x305): undefined reference to `nsCOMPtr_base::begin_assignment()'
xpcshell.cpp:(.text.main+0x377): undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
xpcshell.cpp:(.text.main+0x382): undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
xpcshell.cpp:(.text.main+0x38d): undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
xpcshell.cpp:(.text.main+0x395): undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
xpcshell.cpp:(.text.main+0x3a0): undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
xpcshell.o:xpcshell.cpp:(.text.main+0x3ab): more undefined references to `nsCOMPtr_base::~nsCOMPtr_base()' follow
xpcshell.o: In function `main':
xpcshell.cpp:(.text.main+0x637): undefined reference to `nsCOMPtr_base::assign_with_AddRef(nsISupports*)'
xpcshell.cpp:(.text.main+0x663): undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
xpcshell.cpp:(.text.main+0x66e): undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
xpcshell.cpp:(.text.main+0x679): undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
xpcshell.cpp:(.text.main+0x681): undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
xpcshell.cpp:(.text.main+0x68c): undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
xpcshell.o:xpcshell.cpp:(.text.main+0x697): more undefined references to `nsCOMPtr_base::~nsCOMPtr_base()' follow
xpcshell.o: In function `main':
xpcshell.cpp:(.text.main+0x6ae): undefined reference to `NS_ShutdownXPCOM_P'
collect2: ld returned 1 exit status
gmake[3]: *** [xpcshell] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.4/work/mozilla/js/src/xpconnect/shell'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.4/work/mozilla/js/src/xpconnect'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.4/work/mozilla'
make: *** [default] Error 2
!!! ERROR: www-client/mozilla-firefox-1.5.0.4 failed.