apolkosnik-old / jsunpack-n

Automatically exported from code.google.com/p/jsunpack-n
GNU General Public License v2.0
0 stars 0 forks source link

INSTALL.spindermoneky errors. JSString has no member named u #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download jsunpack-n
2. Download Spidermonkey - wget 
http://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz
3. Follow INSTALL.spidermonkey instructions with jsunpack.

Specificall.  

     line = 0;
        principals = NULL;
    }

    if (JSSTRING_IS_DEPENDENT(str)) {
        n = (size_t)JSSTRDEP_LENGTH(str);
        s = JSSTRDEP_CHARS(str);
    } else {
        n = (size_t)str->length;
        s = str->u.chars;                     //this line causes comile error
        //why doesn't this work
    }
    printf("\n//eval\n");
    for (i = 0; i < n; i++){
        if (s[i] == '\0'){
                break;
        }
        printf("%c",s[i]);
    }
    printf("\n");

    /*
     * Set JSFRAME_EVAL on fp and any frames (e.g., fun_call if eval.call was

4.  Run build of spidermonkey

[root@nsm src]# make BUILD_OPT=1 -f Makefile.ref

<snip a few lines.
gcc -o Linux_All_OPT.OBJ/jsobj.o -c -Wall -Wno-format -DGCC_OPT_BUG -O 
-DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R 
-DX86_LINUX  -UDEBUG -DNDEBUG -UDEBUG_root -DEDITLINE -ILinux_All_OPT.OBJ  
jsobj.c
jsobj.c: In function âobj_evalâ:
jsobj.c:1375: error: âJSStringâ has no member named âuâ
make[1]: *** [Linux_All_OPT.OBJ/jsobj.o] Error 1
make[1]: Leaving directory `/home/kyle/js/src'
make: *** [all] Error 2

What is the expected output? What do you see instead?

See above

What version of the product are you using? On what operating system?

[root@nsm src]# cat /etc/redhat-release
Fedora release 11 (Leonidas)

Please provide any additional information below.

Original issue reported on code.google.com by kmoet...@gmail.com on 19 Jun 2010 at 2:47

GoogleCodeExporter commented 9 years ago
The SpiderMonkey instructions within INSTALL.spidermonkey are meant to be 
applied to version 1.8rc1 of SpiderMonkey. I've updated the INSTALL 
instructions to use a version that I distribute (which already has the patches) 
in ./depends/js-1.8.0-rc1-src/. 

Original comment by urul...@gmail.com on 26 Jun 2010 at 10:02

GoogleCodeExporter commented 9 years ago

Original comment by urul...@gmail.com on 26 May 2011 at 2:54