Firefox become a compile error on FreeBSD 8.0:

c++ -o nsHtml5ElementName.o -c -I../../dist/system_wrappers -include ../../cnfig/gcc_hidden.h -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_COM_OBSOLETE -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DOSTYPE=\"FreeBSD8\" -DOSARCH=FreeBSD  -I. -I. -I../../dist/include -I../../dist/include/nsprpub  -I/usr/local/include/nspr -I/usr/local/tmp/usr/ports/www/firefox/work/mozilla-1.9.2/dist/include/nss   -I/usr/include   -I./../../content/base/src  -I/usr/local/include   -fPIC  -I/usr/local/include  -I/usr/local/include -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-long-long -O2 -pipe -O2 -fno-strict-aliasing -O2 -fno-strict-aliasing -fshort-wchar -pipe  -DNDEBUG -DTRIMMED -O2  -I/usr/local/include  -I/usr/local/include -DMOZILLA_CLIENT -include ../../mozilla-config.h nsHtml5ElementName.cpp

To avoid this error, we must rebuild libxul and Firefox as follows:


cd /usr/ports/www/libxul && make CONFIGURE_ARGS=--enable-optimize=-O3 clean all && make install
cd /usr/ports/www/firefox && make CONFIGURE_ARGS=--enable-optimize=-O3 clean all && make install