/usr/bin/ld: cannot find -lstdc++ /usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open': (.text+0x68cb): warning: the use of `mktemp' is dangerous, better use `mkstemp' collect2: ld returned 1 exit status make[7]: *** [dump_syms] Error 1 make[7]: Leaving directory `/home/cwtseng/mozilla-central/obj-x86_64-unknown-linux-gnu/toolkit/crashreporter/google-breakpad/src/tools/linux/dump_syms' make[6]: *** [libs] Error 2 make[6]: Leaving directory `/home/cwtseng/mozilla-central/obj-x86_64-unknown-linux-gnu/toolkit/crashreporter' make[5]: *** [crashreporter_libs] Error 2 make[5]: Leaving directory `/home/cwtseng/mozilla-central/obj-x86_64-unknown-linux-gnu/toolkit' make[4]: *** [libs_tier_platform] Error 2 make[4]: Leaving directory `/home/cwtseng/mozilla-central/obj-x86_64-unknown-linux-gnu' make[3]: *** [tier_platform] Error 2 make[3]: Leaving directory `/home/cwtseng/mozilla-central/obj-x86_64-unknown-linux-gnu' make[2]: *** [default] Error 2 make[2]: Leaving directory `/home/cwtseng/mozilla-central/obj-x86_64-unknown-linux-gnu' make[1]: *** [realbuild] Error 2 make[1]: Leaving directory `/home/cwtseng/mozilla-central' make: *** [build] Error 2