El Mar 04 Mar 2008, Brett Goulder escribió:
On Tue, 04 Mar 2008 20:10:12 +1100
Danny Rawlins wrote:
Alan wrote:
Couldn't build the new port:
c++ -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -O2 -march=i686 -fomit-frame-pointer -pipe -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -O2 -march=i686 -fomit-frame-pointer -pipe -fvisibility-inlines-hidden -fvisibility=hidden -fPIC -shared -Wl,-z,defs -Wl,-h,libxpcom_core.so -o libxpcom_core.so pldhash.o nsCOMPtr.o nsComponentManagerUtils.o nsDebug.o nsID.o nsIInterfaceRequestorUtils.o nsINIParser.o nsMemory.o nsTraceRefcnt.o nsWeakReference.o nsGREGlue.o nsVersionComparator.o nsTHashtable.o nsTArray.o nsGenericFactory.o nsXPComInit.o nsStringAPI.o -Wl,--whole-archive ../../dist/lib/libxpcomds_s.a ../../dist/lib/libxpcomio_s.a ../../dist/lib/libxpcomcomponents_s.a ../../dist/lib/libxpcomthreads_s.a ../../dist/lib/libxpcomproxy_s.a ../../dist/lib/libxpcombase_s.a ../../dist/lib/libxptcall.a ../../dist/lib/libxptinfo.a ../../dist/lib/libxpt.a ../../dist/lib/libxptcmd.a ../../dist/lib/libstring_s.a -Wl,--no-whole-archive -L/usr/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -ldl -lm /usr/bin/ld: ../../dist/lib/libxptinfo.a(xptiMisc.o)(.text+0x141): unresolvable R_386_GOTOFF relocation against symbol `PR_LocalTimeParameters' /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status make[3]: *** [libxpcom_core.so] Error 1 make[3]: Leaving directory `/usr/ports/work/firefox/src/mozilla/xpcom/build' make[2]: *** [libs] Error 2 make[2]: Leaving directory `/usr/ports/work/firefox/src/mozilla/xpcom' make[1]: *** [tier_2] Error 2 make[1]: Leaving directory `/usr/ports/work/firefox/src/mozilla' make: *** [default] Error 2 =======> ERROR: Building '/usr/ports/pkgs/firefox#2.0.0.12-2.pkg.tar.gz' failed.
Google suggests:
http://linuxfromscratch.org/pipermail/blfs-support/2006-November/061480 .html
Hmm I'd say try "-fvisibility=hidden" in CXXFLAGS
I'd say I forgot to remove the -fvisibility=hidden bit that I forced in my personal port, which caused this. Removed that just now, so anyone experiencing this problem should grab the port again and retest.
I had to remove the complete CFLAGS line and add "ac_cv_visibility_pragma=no" to my mozconfig to be able to build it. I'm using GCC 4.2.2. I wonder why I had to do this and you didn't. Comparing this port with the previous one: firefox#2.0.0.11-1.pkg.tar.gz: 14002213 bytes 4704 files firefox#2.0.0.12-2.pkg.tar.gz: 11621062 bytes 3413 files I haven't noticed any other difference yet, except that startup time seems faster, but this might be subjective. Thanks for your work. -- Alan