Subject: | JSPL-1.06 build error (xulrunner-9.0.1) |
Hello.
I want to learn JSPL in practice, but can't build it successfully.
My system: GNU/Linux
Distrubution: Archlinux
Mozilla Firefox version: 9.0.1
It seems no need in perl -v output.
-----------------------------------
CPAN.pm: Building S/SO/SORTIZ/JSPL-1.06.tar.gz
Found mozilla-js (9.0.1)
Will use
JS_LIBS="-L/usr/lib/xulrunner-devel-9.0.1/lib -lxpcomglue_s -lxul
-lxpcom -lmozalloc -lplds4 -lplc4 -lnspr4 -lpthread -ldl "
JS_INC="-I/usr/include/xulrunner-9.0.1
-I/usr/include/xulrunner-9.0.1/js -I/usr/include/nspr "
JS_DEFINES="-DXP_UNIX -DJS_THREADSAFE "
Testing the environment...
Warning: unfinished port to this SM version!
Checking if your kit is complete...
....
cp lib/JSPL/Runtime/CommonJS.pm blib/lib/JSPL/Runtime/CommonJS.pm
cp lib/JSPL/Boolean.pm blib/lib/JSPL/Boolean.pm
cp lib/JSPL/Controller.pm blib/lib/JSPL/Controller.pm
cp lib/PerlHash.pod blib/lib/PerlHash.pod
cp lib/PerlObject.pod blib/lib/PerlObject.pod
cp lib/JSPL/Visitor.pm blib/lib/JSPL/Visitor.pm
/usr/bin/perl /usr/share/perl5/site_perl/ExtUtils/xsubpp -C++ -typemap
/usr/share/perl5/core_perl/ExtUtils/typemap -typemap typemap JS.xs >
JS.xsc && mv JS.xsc JS.c
c++ -c -I/usr/include/xulrunner-9.0.1 -I/usr/include/xulrunner-9.0.1/js
-I/usr/include/nspr -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -march=i686 -mtune=generic -O2 -pipe
-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
-DVERSION=\"1.06\" -DXS_VERSION=\"1.06\" -fPIC
"-I/usr/lib/perl5/core_perl/CORE" -DXP_UNIX -DJS_THREADSAFE JS.c
In file included from /usr/include/xulrunner-9.0.1/jsapi.h:50:0,
from JS.h:25,
from JS.xs:1:
/usr/include/xulrunner-9.0.1/jsutil.h:842:21: error: macro "Move"
requires 4 arguments, but only 1 given
/usr/include/xulrunner-9.0.1/jsutil.h:845:27: error: macro "Move"
requires 4 arguments, but only 1 given
/usr/include/xulrunner-9.0.1/jsutil.h:842:12: error: template
declaration of ‘js::MoveRef<T> js::Move’
/usr/include/xulrunner-9.0.1/jsutil.h:842:12: warning: extended
initializer lists only available with -std=c++0x or -std=gnu++0x
[enabled by default]
/usr/include/xulrunner-9.0.1/jsutil.h:842:25: error: expected
primary-expression before ‘return’
/usr/include/xulrunner-9.0.1/jsutil.h:842:25: error: expected ‘}’ before
‘return’
/usr/include/xulrunner-9.0.1/jsutil.h:845:1: error: ‘MoveRef’ does not
name a type
/usr/include/xulrunner-9.0.1/jsutil.h:847:1: error: expected declaration
before ‘}’ token
make: *** [JS.o] Error 1
SORTIZ/JSPL-1.06.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
-----------------
Thank you,
Nick.