The compile of Firefox is step number approximately-110 in the 2-hundred-and-thirty-something-step procedure of building the full Gnome desktop, when building Gnome using gnome.org's purpose-built build-tool, which is called jhbuild.tronkel wrote:...I've been having a go with compiling the latest Firefox for Wary. Seems much more difficult than compiling Seamonkey. Big problems with compile-time dependencies...
So, I suspect that the developers of Firefox maintain its makefile under the expectation and assumption that a substantial fraction of the full Gnome desktop (all harmonized to the identical kernel and glibc) will be already present, on the machine on which Firefox is compiled.
So, building Firefox with high confidence that you nailed all the dependencies does not seem practical to me, except unless you build Firefox by running jhbuild as if you intend to build Gnome, but then just stop after Firefox (which is in two parts: 'xulrunner', then 'mozilla', in the jhbuild descriptors) is compiled. And then you would have to extract Firefox and its dependencies from the partial Gnome desktop you have just built.
It would not surprise me if Seamonkey, to truly get it 100% right, is similarly demanding.