Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-288

couch_js.c:1217: error: 'JSOPTION_NATIVE_BRANCH_CALLBACK' with spidermonkey tip

    XMLWordPrintableJSON

Details

    Description

      libtool: link: ( cd ".libs" && rm -f "couch_erl_driver.la" && ln -s "../couch_erl_driver.la" "couch_erl_driver.la" )
      i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -D_XOPEN_SOURCE -L/usr/local/lib -L/opt/local/lib -I/usr/lib/erlang/usr/include -I/usr/lib/erlang/usr/include -I/usr/local/lib/erlang/usr/include -I/opt/local/lib/erlang/usr/include -I/usr/include -I/usr/include/js -I/usr/include/mozjs -I/usr/local/include -I/opt/local/include -I/usr/local/include/js -I/opt/local/include/js -DXP_UNIX -DMUDKIPZ -march=native -pipe -O2 -MT couchjs-couch_js.o -MD -MP -MF .deps/couchjs-couch_js.Tpo -c -o couchjs-couch_js.o `test -f 'couch_js.c' || echo './'`couch_js.c
      couch_js.c: In function 'main':
      couch_js.c:1217: error: 'JSOPTION_NATIVE_BRANCH_CALLBACK' undeclared (first use in this function)
      couch_js.c:1217: error: (Each undeclared identifier is reported only once
      couch_js.c:1217: error: for each function it appears in.)
      make[2]: Leaving directory `/var/tmp/paludis/build/dev-db-couchdb-scm/work/couchdb-scm/src/couchdb'
      make[2]: *** [couchjs-couch_js.o] Error 1
      make[1]: Leaving directory `/var/tmp/paludis/build/dev-db-couchdb-scm/work/couchdb-scm'
      make[1]: *** [all-recursive] Error 1
      make: *** [all] Error 2

      Patching with
      Index: src/couchdb/couch_js.c
      ===================================================================
      — src/couchdb/couch_js.c (revision 752552)
      +++ src/couchdb/couch_js.c (working copy)
      @@ -1213,8 +1213,8 @@
      if (!context)
      return 1;
      JS_SetErrorReporter(context, PrintError);

      • JS_SetBranchCallback(context, BranchCallback);
      • JS_ToggleOptions(context, JSOPTION_NATIVE_BRANCH_CALLBACK);
        +// JS_SetBranchCallback(context, BranchCallback);
        +// JS_ToggleOptions(context, JSOPTION_NATIVE_BRANCH_CALLBACK);
        JS_ToggleOptions(context, JSOPTION_XML);

      global = JS_NewObject(context, NULL, NULL, NULL);

      compiles and "works" in so far as I can talk to futon

      I think it might me related to http://markmail.org/search/?q=JS_SetBranchCallback#query:JS_SetBranchCallback%20list%3Aorg.apache.couchdb.commits+page:1+mid:kgc3bx6rclmlpkvb+state:results

      Attachments

        1. COUCHDB-288-tests.patch
          0.6 kB
          Jan Lehnardt
        2. couchdb_spidermonkey_tip-1.diff
          3 kB
          Alessandro Decina

        Activity

          People

            Unassigned Unassigned
            rbrown Richard Brown
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: