undefined symbol: JS_SetContextThread

Jim Lill
2008-12-13
2013-05-30
  • Jim Lill
    Jim Lill
    2008-12-13

    How to fix this????.......

    MediaTomb UPnP Server version 0.12.0 - http://mediatomb.cc/

    ===============================================================================
    Copyright 2005-2008 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
    MediaTomb is free software, covered by the GNU General Public License version 2

    2008-12-13 16:42:43    INFO: Loading configuration from: /root/.mediatomb/config.xml
    2008-12-13 16:42:43    INFO: Checking configuration...
    2008-12-13 16:42:43    INFO: Setting filesystem import charset to UTF-8
    2008-12-13 16:42:43    INFO: Setting metadata import charset to UTF-8
    2008-12-13 16:42:43    INFO: Setting playlist charset to UTF-8
    2008-12-13 16:42:43    INFO: Configuration check succeeded.
    2008-12-13 16:42:43    INFO: Initialized port: 49152
    2008-12-13 16:42:43    INFO: Server bound to: 192.168.1.2
    2008-12-13 16:42:44    INFO: MediaTomb Web UI can be reached by following this link:
    2008-12-13 16:42:44    INFO: http://192.168.1.2:49152/
    mediatomb: symbol lookup error: mediatomb: undefined symbol: JS_SetContextThread

     
    • Jin
      Jin
      2008-12-14

      Are you sure that you use js headers and libraries of the same version? And that the version used when running MT is the same that was used to compile it?

      I do have ifdefs for JS_THREADSAFE ifdef, so that case should be handled.

      Look in your autoconfig.h, do you have:
      #define JS_THREADSAFE 1 there, or is it undefined?

      Also, when running configure, what was the message regarding the JS_ClearContextThread() check?

      I.e.: checking for JS_ClearContextThread in -ljs... ?

      Kind regards,
      Jin

       
    • Jim Lill
      Jim Lill
      2008-12-14

      I used RPM's for installs
      I had 11
      uninstalled it
      then did 12

      thanks!

      -Jim

       
    • Jin
      Jin
      2008-12-14

      You did not answer my questions.. or is the issue solved now?

       
    • Jim Lill
      Jim Lill
      2008-12-14

      I installed binaries.... not a complete build from scratch

      thus no autoconfig.h to look at

      If I can find source, I'll build it

       
    • Jin
      Jin
      2008-12-14

      0.12 is not yet released, so where is the binary package coming from?

       
    • Jim Lill
      Jim Lill
      2008-12-14

      I found it on rpmfind.net

       
    • Jim Lill
      Jim Lill
      2008-12-14

      I got the src so now just have to figure out how to build it.......    patch apply etc

       
    • Jim Lill
      Jim Lill
      2008-12-14

      hmmmmmm   not finding configure

      this in Mandriva BTW

       
    • Jin
      Jin
      2008-12-14

      Well, that explains a lot then... you should not install just some precompiled package that does not match your distribution. Probably it was compiled vs a threadsafe JS library, while you are using the non theradsafe version.

      The easiest way to recompile an rpm is to get the .src.rpm and use rpmbuild --rebuild on it, however if the rpm is not for your distro you may run into other problems.

      The 0.12 version - seems that Mandriva guys simply took some SVN revision and used it, so its not an official release.

      You could also compile from source yourself, instructions for that are on our webpage.

      Btw, why do you want 0.12 codebase, is there a special feature you are looking for? It's not yet released, some things are not finished.

      Kind regards,
      Jin

       
    • Jim Lill
      Jim Lill
      2008-12-14

      I want to run it on DirectV HR2x and the transcoding

      I run Mandriva 2008.1

      build of it p[ending figuring out the configure issue

       
    • sean darcy
      sean darcy
      2008-12-15

      before running configure, have the spec file run autoreconf -f -i

      For instance, for FC9:

      %build

      if [ ! -f configure ]
      then
      autoreconf -f -i
      fi

      %configure --enable-inotify --enable-taglib --enable-libjs \    --with-js-h=%{_includedir}/xulrunner-sdk-1.9/js/ --enable-libdvdnav

      make

       
    • Jin
      Jin
      2008-12-15

      I would not enable libdvdnav just yet...

      Also, there is a spec file provided in trunk, so theoretically you could do the following:

      1. check out mediatomb trunk
      2. autoreconf -i
      3. ./configure
      4. make dist
      rpmbuilt -tb mediatomb-0.12.tar.gz

      And of course make sure that you have all dependencies installed...

       
    • Jim Lill
      Jim Lill
      2008-12-18

      I am finding js to be pesky even from a raw build..........

       
    • Jin
      Jin
      2008-12-19

      If you do not plan to use the playlist or the import scripting feature - then you can simply compile without JS support.

       
    • Jim Lill
      Jim Lill
      2008-12-19

      OK, figured out all the issues to get it to build (I am not a programmer type) and now seems to run and not crash etc. I just need to get the transcoding etc to work now for HR20 DVR which I am guessing is simply a config.xml thing. Thanks for your help