Building Firefox on my old laptop
#1
I followed this resource .
I changed a line - like this:
ac_add_options --enable-optimize="-O3 -march=pentium-m -mtune=pentium-m -pipe -ftracer -fomit-frame-pointer"
I also added these lines:
ac_add_options --enable-static ac_add_options --disable-shared
Building begin: 02.53 AM …
…Building end: 07.15 AM
Result:
../../dist/lib/components/libgfx_gtk.a(nsDrawingSurfaceGTK.o): In function `nsDrawingSurfaceGTK::~nsDrawingSurfaceGTK()':nsDrawingSurfaceGTK.cpp:(.text+0x7d6): undefined reference to `XftDrawDestroy' :nsDrawingSurfaceGTK.cpp:(.text+0x80f): undefined reference to `XftDrawDestroy' collect2: ld returned 1 exit status make[4]: *** [firefox-bin] Error 1 make[4]: Leaving directory `/home/intersezioni/mozilla/firefox-bin/browser/app' make[3]: *** [libs] Error 2 make[3]: Leaving directory `/home/intersezioni/mozilla/firefox-bin/browser' make[2]: *** [tier_99] Error 2 make[2]: Leaving directory `/home/intersezioni/mozilla/firefox-bin'make[1]: *** [default] Error 2make[1]: Leaving directory `/home/pinna/mozilla/firefox-bin'make: *** [build] Error 2
# 2
I read the "gtk 2.8 builds are broken due to missing xft dependencies" bugzilla page
I'm going to disable pango support, add three lines as suggested by Marco Perez and try again.
(…some hours later…)
No errors in
make -f client.mk build
This is the output of
make -C firefox-bin/browser/installer/ :
Creating package directory...
rm -f -rf ../../dist/xpt
/usr/bin/perl -I/home/pinna/mozilla/xpinstall/packager -e 'use Packager; \
Packager::Copy("../../dist", "../../dist/firefox", \
packages-static", "unix", 1, 0, 1);'
Error: package file "SCALAR(0x814c684)" is not a file or is unreadable.
See '-e --help' for more information.
Exiting...
make[1]: *** [firefox-1.5.0.2.en-US.linux-i686.tar.gz] Error 4
make[1]: Leaving directory `/home/pinna/mozilla/firefox-bin/browser/installer'
make: *** [all] Error 2
make: Leaving directory `/home/pinna/mozilla/firefox-bin/browser/installer'
18 October 2006 at 12:19 am
Perhaps, Packger.pm has bug.
— xpinstall/packager/Packager.pm.orig 2006-10-18 09:14:19.000000000 +0900
+++ xpinstall/packager/Packager.pm 2006-10-18 09:09:17.000000000 +0900
@@ -462,6 +460,7 @@
}
# check package file
+ $package = $$package if ( ref($package));
if ( $package eq “” ) {
print “Error: package file (–file) not specified.\n”;
$exitval += 8;