[mythtv-users] tv_grab_au ninemsn and JavaScript

stephen stephen at carins.com.au
Thu Mar 1 10:25:20 UTC 2007


The "uber" grabber 'shepherd' is great, im now getting a great list of tv channels but because it uses Rex and NineMSN scripts, JavaScript is still needed for complete success, i installed libjs and libjs-devel copied the /usr/include/js files to /usr/include but now when i run 'perl JavaScript' i get

OS Suse 10.2

Code:

sn-e-a000331:/ # cpan JavaScript
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Wed, 28 Feb 2007 11:08:58 GMT
Running install for module JavaScript
Running make for C/CL/CLAESJAC/JavaScript-1.03.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /root/.cpan/sources/authors/id/C/CL/CLAESJAC/JavaScript-1.03.tar.gz ok
Scanning cache /root/.cpan/build for sizes
JavaScript-1.03/
JavaScript-1.03/Changes
JavaScript-1.03/JavaScript.h
JavaScript-1.03/JavaScript.xs
JavaScript-1.03/lib/
JavaScript-1.03/lib/JavaScript/
JavaScript-1.03/lib/JavaScript/Boxed.pm
JavaScript-1.03/lib/JavaScript/Context.pm
JavaScript-1.03/lib/JavaScript/Error.pm
JavaScript-1.03/lib/JavaScript/Function.pm
JavaScript-1.03/lib/JavaScript/Runtime.pm
JavaScript-1.03/lib/JavaScript/Script.pm
JavaScript-1.03/lib/JavaScript.pm
JavaScript-1.03/lib/Test/
JavaScript-1.03/lib/Test/JavaScript/
JavaScript-1.03/lib/Test/JavaScript/More.pm
JavaScript-1.03/Makefile.PL
JavaScript-1.03/MANIFEST
JavaScript-1.03/META.yml
JavaScript-1.03/README
JavaScript-1.03/t/
JavaScript-1.03/t/00-init.t
JavaScript-1.03/t/01-types-from-js.t
JavaScript-1.03/t/02-types-from-perl.t
JavaScript-1.03/t/03-call.t
JavaScript-1.03/t/04-prototypes.t
JavaScript-1.03/t/05-deep-assign.t
JavaScript-1.03/t/06-bind-object.t
JavaScript-1.03/t/07-eval-file.js
JavaScript-1.03/t/07-eval-file.t
JavaScript-1.03/t/08-can.t
JavaScript-1.03/t/09-script.t
JavaScript-1.03/t/10-round-trip.t
JavaScript-1.03/t/11-recursive.t
JavaScript-1.03/t/12-destroy.t
JavaScript-1.03/t/13-in-context.t
JavaScript-1.03/t/14-roundtrip-function.t
JavaScript-1.03/t/15-function.t
JavaScript-1.03/t/16-object.t
JavaScript-1.03/t/17-error-handler.t
JavaScript-1.03/t/18-interrupt-handler.t
JavaScript-1.03/t/19-engine-version.t
JavaScript-1.03/t/20-bind-class.t
JavaScript-1.03/t/21-branch-handler.t
JavaScript-1.03/t/22-string-attributes.t
JavaScript-1.03/t/23-unicode.t
JavaScript-1.03/t/24-c-level-interrupt-handler.t
JavaScript-1.03/t/26-e4x.t
JavaScript-1.03/t/27-supports.t
JavaScript-1.03/t/28-test-javascript-more.t
JavaScript-1.03/t/pod-coverage.t
JavaScript-1.03/t/pod.t
JavaScript-1.03/TODO
JavaScript-1.03/typemap
Removing previously used /root/.cpan/build/JavaScript-1.03

  CPAN.pm: Going to build C/CL/CLAESJAC/JavaScript-1.03.tar.gz

Is your SpiderMonkey compiled with JS_THREADSAFE (most things will fail if you answer wrong)? [y/N]
Is your SpiderMonkey compiled with support for unicode (t/23-unicode.t will fail if you answer wrong) ? [y/N] [N]
Do you want support for E4X (requires SpiderMonkey > 1.5) ? [y/N] [N]
WARNING: LICENSE is not a known parameter.
Checking if your kit is complete...
Looks good
'LICENSE' is not a known MakeMaker parameter name.
Writing Makefile for JavaScript
cp lib/JavaScript/Function.pm blib/lib/JavaScript/Function.pm
cp lib/Test/JavaScript/More.pm blib/lib/Test/JavaScript/More.pm
cp lib/JavaScript/Context.pm blib/lib/JavaScript/Context.pm
cp lib/JavaScript/Boxed.pm blib/lib/JavaScript/Boxed.pm
cp JavaScript_Env.h blib/arch/auto/JavaScript/JavaScript_Env.h
cp lib/JavaScript/Script.pm blib/lib/JavaScript/Script.pm
cp lib/JavaScript.pm blib/lib/JavaScript.pm
cp lib/JavaScript/Error.pm blib/lib/JavaScript/Error.pm
cp typemap blib/arch/auto/JavaScript/typemap
cp JavaScript.h blib/arch/auto/JavaScript/JavaScript.h
cp lib/JavaScript/Runtime.pm blib/lib/JavaScript/Runtime.pm
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap  JavaScript.xs > JavaScri
pt.xsc && mv JavaScript.xsc JavaScript.c
cc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOUR
CE -D_FILE_OFFSET_BITS=64 -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall -pipe   -DVERSION=\"1.03\" -DXS_VERSION=\"1.03\" -fPIC "-
I/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/CORE"   JavaScript.c
In file included from /usr/include/jsdbgapi.h:46,
                 from JavaScript_Env.h:6,
                 from JavaScript.h:1,
                 from JavaScript.xs:5:
/usr/include/jsopcode.h:57:24: error: jsopcode.tbl: No such file or directory
JavaScript.xs: In function PJS_free_context:
JavaScript.xs:938: warning: ISO C90 forbids mixed declarations and code
JavaScript.xs:946: warning: ISO C90 forbids mixed declarations and code
JavaScript.xs: In function SVToJSVAL_real:
JavaScript.xs:1188: warning: ISO C90 forbids mixed declarations and code
JavaScript.xs:1250: warning: ISO C90 forbids mixed declarations and code
JavaScript.xs: In function JSVALToSV:
JavaScript.xs:1371: warning: ISO C90 forbids mixed declarations and code
JavaScript.xs:1377: warning: ISO C90 forbids mixed declarations and code
JavaScript.xs: In function JSARRToSV:
JavaScript.xs:1428: warning: ISO C90 forbids mixed declarations and code
JavaScript.xs: In function JSHASHToSV:
JavaScript.xs:1465: warning: ISO C90 forbids mixed declarations and code
JavaScript.xs: In function XS_JavaScript__Context_jsc_free_root:
JavaScript.xs:1821: warning: ISO C90 forbids mixed declarations and code
JavaScript.xs: In function XS_JavaScript__Context_jsc_call_in_context:
JavaScript.xs:1904: warning: ISO C90 forbids mixed declarations and code
make: *** [JavaScript.o] Error 1
  /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

end code:

I have also downloaded JavaScript-1.03 and get as far as 'make test' same error
also what is the correct way to paste code??

again many thanks





More information about the mythtv-users mailing list