I am trying to build NSPR and Spidermonkey tip (mozilla-
central-566bc0cea950) on Solaris 9. Tried several compilers with no
success.
Build steps:
--------------
#!/bin/tcsh
setenv CXX [compiler]
cd mozilla-central/js/src/
autoconf-2.13
mkdir sparc-SunOS-release
cd sparc-SunOS-release/
../configure --enable-threadsafe --with-system-nspr --with-nspr-prefix=
[nspr-install]
make
--------------
make is gmake in my environment.
With [compiler] = CC, c++ or g++ errors are:
In file included from ../jsapi.cpp:49:
../jsstdint.h:63: error: conflicting types for `typedef JSInt8 int8_t'
../nanojit/VMPI.h:78:20: stdint.h: No such file or directory
----------
With [compiler] = gcc the error is:
make[2]: Leaving directory `/home/dmitri/mozilla-central-566bc0cea950/
js/src/sparc-SunOS-release/tests'
gcc -DOSTYPE=\"SunOS5\" -DOSARCH=SunOS -DEXPORT_JS_API -I/home/
dmitri/mozilla-central/sparc-SunOS/install/include/nspr -o jscpucfg ../
jscpucfg.cpp
Undefined first referenced
symbol in file
__gxx_personality_v0 /var/tmp//ccKZuMat.o
ld: fatal: Symbol referencing errors. No output written to jscpucfg
----------
I also tried changing JS_HAVE_STDINT_H macro in js-config.h file, but
to no avail.
Either
#undef JS_HAVE_STDINT_H
or
#define JS_HAVE_STDINT_H 1
Any help will be appreciated.
Dmitri.