#31 JS 1.8 compatibility patches

open
nobody
None
5
2011-09-14
2011-09-14
Rich Mattes
No

The attached patches are used by Fedora to make Mediatomb compatible with js 1.8.

Not all of the js/c++ functions in js_functions.cc have been ported forward, just the ones required for the default import.js to work.

Discussion

  • Rich Mattes
    Rich Mattes
    2011-09-14

    Port forward to new js

     
  • Rich Mattes
    Rich Mattes
    2011-09-14

    Fixes to c++ js parsing functions

     
  • Denis
    Denis
    2012-01-23

    I get this error here:

    g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc -I/usr/local/include/js -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX -I/usr/local/include/js -I/usr/include/taglib -pthread -fpermissive -Wall -g -O2 -MT libmediatomb_a-dvd_image_import_script.o -MD -MP -MF .deps/libmediatomb_a-dvd_image_import_script.Tpo -c -o libmediatomb_a-dvd_image_import_script.o `test -f '../src/scripting/dvd_image_import_script.cc' || echo './'`../src/scripting/dvd_image_import_script.cc
    mv -f .deps/libmediatomb_a-dvd_image_import_script.Tpo .deps/libmediatomb_a-dvd_image_import_script.Po
    g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc -I/usr/local/include/js -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX -I/usr/local/include/js -I/usr/include/taglib -pthread -fpermissive -Wall -g -O2 -MT libmediatomb_a-import_script.o -MD -MP -MF .deps/libmediatomb_a-import_script.Tpo -c -o libmediatomb_a-import_script.o `test -f '../src/scripting/import_script.cc' || echo './'`../src/scripting/import_script.cc
    ../src/scripting/import_script.cc: In constructor 'ImportScript::ImportScript(zmm::Ref<Runtime>)':
    ../src/scripting/import_script.cc:57:56: error: 'JS_AddNamedObjectRoot' was not declared in this scope
    ../src/scripting/import_script.cc: In destructor 'virtual ImportScript::~ImportScript()':
    ../src/scripting/import_script.cc:120:38: error: 'JS_RemoveObjectRoot' was not declared in this scope
    make[3]: *** [libmediatomb_a-import_script.o] Error 1
    make[3]: Leaving directory `/usr/local/src/mediatomb-with-js-support/mediatomb-0.12.1/build'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/usr/local/src/mediatomb-with-js-support/mediatomb-0.12.1'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/usr/local/src/mediatomb-with-js-support/mediatomb-0.12.1'

    What can you advise ?
    Thanks in advance.

    $ gcc --version
    gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1

    $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 11.10
    Release: 11.10
    Codename: oneiric

    libjs-1.8.0-rc1