Revision 646162333664 () - Diff

Link to this snippet: https://friendpaste.com/5MwatQTQLgiN4Jiz0nWLMd
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
cp spawnkillable/couchspawnkillable.sh couchspawnkillable
chmod +x couchspawnkillable
gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/snappy/google-snappy -I/opt/local/include -I/opt/local/include/js -I/usr/local/include -I/usr/local/include/js -I/usr/include -I/usr/include/js -g -Wall -Werror -D_BSD_SOURCE -DXP_UNIX -I/Users/fdmanana/sm185/install/include -O2 -g -O2 -MT couchjs-http.o -MD -MP -MF .deps/couchjs-http.Tpo -c -o couchjs-http.o `test -f 'couch_js/http.c' || echo './'`couch_js/http.c
mv -f .deps/couchjs-http.Tpo .deps/couchjs-http.Po
gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/snappy/google-snappy -I/opt/local/include -I/opt/local/include/js -I/usr/local/include -I/usr/local/include/js -I/usr/include -I/usr/include/js -g -Wall -Werror -D_BSD_SOURCE -DXP_UNIX -I/Users/fdmanana/sm185/install/include -O2 -g -O2 -MT couchjs-main.o -MD -MP -MF .deps/couchjs-main.Tpo -c -o couchjs-main.o `test -f 'couch_js/main.c' || echo './'`couch_js/main.c
In file included from couch_js/main.c:16:
couch_js/sm185.c:37: error: ‘JS_StrictPropertyStub’ undeclared here (not in a function)
cc1: warnings being treated as errors
couch_js/sm185.c: In function ‘req_ctor’:
couch_js/sm185.c:50: warning: implicit declaration of function ‘JS_NewObjectForConstructor’
couch_js/sm185.c:50: warning: initialization makes pointer from integer without a cast
couch_js/sm185.c: In function ‘evalcx’:
couch_js/sm185.c:152: error: ‘JSCrossCompartmentCall’ undeclared (first use in this function)
couch_js/sm185.c:152: error: (Each undeclared identifier is reported only once
couch_js/sm185.c:152: error: for each function it appears in.)
couch_js/sm185.c:152: error: ‘call’ undeclared (first use in this function)
couch_js/sm185.c:172: warning: implicit declaration of function ‘JS_GetStringCharsAndLength’
couch_js/sm185.c:172: warning: assignment makes pointer from integer without a cast
couch_js/sm185.c:178: warning: implicit declaration of function ‘JS_EnterCrossCompartmentCall’
couch_js/sm185.c:181: warning: implicit declaration of function ‘JS_NewGlobalObject’
couch_js/sm185.c:181: warning: assignment makes pointer from integer without a cast
couch_js/sm185.c:202: warning: implicit declaration of function ‘JS_LeaveCrossCompartmentCall’
couch_js/sm185.c: In function ‘seal’:
couch_js/sm185.c:271: warning: implicit declaration of function ‘JS_DeepFreezeObject’
couch_js/sm185.c:271: warning: implicit declaration of function ‘JS_FreezeObject’
In file included from couch_js/main.c:16:
couch_js/sm185.c:302:34: error: macro "JS_FS" requires 5 arguments, but only 4 given
couch_js/sm185.c: At top level:
couch_js/sm185.c:302: error: ‘JS_FS’ undeclared here (not in a function)
couch_js/sm185.c:303:49: error: macro "JS_FS" requires 5 arguments, but only 4 given
couch_js/sm185.c:304:34: error: macro "JS_FS" requires 5 arguments, but only 4 given
couch_js/sm185.c:310:33: error: macro "JS_FS" requires 5 arguments, but only 4 given
couch_js/sm185.c:310: warning: missing braces around initializer
couch_js/sm185.c:310: warning: (near initialization for ‘global_functions[0]’)
couch_js/sm185.c:310: error: initializer element is not constant
couch_js/sm185.c:310: error: (near initialization for ‘global_functions[0].name’)
couch_js/sm185.c:311:25: error: macro "JS_FS" requires 5 arguments, but only 4 given
couch_js/sm185.c:311: error: initializer element is not constant
couch_js/sm185.c:311: error: (near initialization for ‘global_functions[0].call’)
couch_js/sm185.c:312:31: error: macro "JS_FS" requires 5 arguments, but only 4 given
couch_js/sm185.c:312: error: initializer element is not constant
couch_js/sm185.c:312: error: (near initialization for ‘global_functions[0].nargs’)
couch_js/sm185.c:313:29: error: macro "JS_FS" requires 5 arguments, but only 4 given
couch_js/sm185.c:313: error: initializer element is not constant
couch_js/sm185.c:313: error: (near initialization for ‘global_functions[0].flags’)
couch_js/sm185.c:314:37: error: macro "JS_FS" requires 5 arguments, but only 4 given
couch_js/sm185.c:314: error: initializer element is not constant
couch_js/sm185.c:314: error: (near initialization for ‘global_functions[0].extra’)
couch_js/sm185.c:315:29: error: macro "JS_FS" requires 5 arguments, but only 4 given
couch_js/sm185.c:315: error: initializer element is not constant
couch_js/sm185.c:315: error: (near initialization for ‘global_functions[1].name’)
couch_js/sm185.c:316: warning: braces around scalar initializer
couch_js/sm185.c:316: warning: (near initialization for ‘global_functions[1].call’)
couch_js/sm185.c:316: warning: excess elements in scalar initializer
couch_js/sm185.c:316: warning: (near initialization for ‘global_functions[1].call’)
couch_js/sm185.c:316: warning: excess elements in scalar initializer
couch_js/sm185.c:316: warning: (near initialization for ‘global_functions[1].call’)
couch_js/sm185.c:316: warning: excess elements in scalar initializer
couch_js/sm185.c:316: warning: (near initialization for ‘global_functions[1].call’)
couch_js/sm185.c:316: warning: excess elements in scalar initializer
couch_js/sm185.c:316: warning: (near initialization for ‘global_functions[1].call’)
couch_js/sm185.c: In function ‘main’:
couch_js/sm185.c:326: error: ‘JSCrossCompartmentCall’ undeclared (first use in this function)
couch_js/sm185.c:326: error: ‘call’ undeclared (first use in this function)
couch_js/sm185.c:326: error: invalid operands to binary * (have ‘struct JSFunctionSpec *’ and ‘struct JSFunctionSpec *’)
couch_js/sm185.c:326: warning: statement with no effect
couch_js/sm185.c:352: warning: implicit declaration of function ‘JS_NewCompartmentAndGlobalObject’
couch_js/sm185.c:352: warning: assignment makes pointer from integer without a cast
couch_js/sm185.c:356: warning: statement with no effect
couch_js/sm185.c:376: warning: passing argument 5 of ‘JS_InitClass’ from incompatible pointer type
couch_js/sm185.c:391: warning: assignment makes pointer from integer without a cast
couch_js/sm185.c:395: warning: implicit declaration of function ‘JS_AddValueRoot’
couch_js/sm185.c:414: warning: implicit declaration of function ‘JS_RemoveValueRoot’
make[4]: *** [couchjs-main.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2