I’ve written in the past about compiling recent versions of Firefox for the powerpc under Linux. The Firefox rapid release schedule means that a new firefox release happens almost every 6 weeks. I last wrote about firefox 16, which is now almost 4 releases old. In the past 6 months I’ve been regularly testing firefox builds on the powerpc as they make their way through the development process. I am going to summarize the state of recent firefox versions for ppc users.
Posts Tagged ‘powerpc’
Tags: firefox, linux, mozilla, open source, powerpc, ppc, ppc64
Tags: debian, firefox, firefox 16, mozilla, powerpc, software
A few months ago I wrote a blog post on compiling FireFox for the powerpc on Debian Linux. I had built Firefox 9 when I was writing that post and in the intervening months, thanks to the Mozilla rapid release cycle, Firefox 16 has been released. Does Firefox 16 still build on the powerpc with Debian Squeeze?
- I downloaded the latest firefox source code from mozilla
- This time I didn’t need to apply any patches for the powerpc.
- When I ran ./configure followed by ‘make’ as described in my post on Firefox9 I encountered a compile error.
syntax error in VERSION script when trying to build libraries in the subdirectories under security/nss/lib such as util (libnssutil).
The issue is that the mapfiles such as security/nss/lib/util/nssutil.def that are included in the source tree are not suitable as input files to the linker but need to be pre-processed first. The rules to process the ‘MAPFILE’ are defined in security/coreconf/Linux.mk and are invoked by a rule in security/coreconf/Rules.mk that build a proper mapfile by running the mapfile distributed in the source tree (such as nssutil.def) through sed and grep to produce a file that can be passed to the linker.
The make rule takes a mapfile $(MAPFILE_SOURCE)=nssutil.def and generates $(MAPFILE)=nssutil.def from it. If you try building firefox as I describe above it will put the output files in the same directory as the input files. This means that the sed/grep rule won’t be executed because the target (nssutil.def) is already present and isn’t older than the dependency (nssutil.def), itself.
If you instead
- Set the shell environment variable MOZ_OBJDIR to be a directory other than the source directory
- Put your configure options in the file .mozconfig, as described in the Mozilla build instructions
- Run make -f client.mk
firefox 16 will build successfully. The issues I encountered with the version script shouldn’t be specific to the powerpc or debian.