Ticket #22413: buildlog

File buildlog, 10.6 KB (added by catalyst, 4 years ago)
Line 
1make  all-am
2make[1]: Entering directory '/home/tlyu/src/tor'
3  CC       src/common/compress_zstd.o
4src/common/compress_zstd.c: In function ‘tor_zstd_get_header_version_str’:
5src/common/compress_zstd.c:82:10: error: ‘ZSTD_VERSION_STRING’ undeclared (first use in this function)
6   return ZSTD_VERSION_STRING;
7          ^
8src/common/compress_zstd.c:82:10: note: each undeclared identifier is reported only once for each function it appears in
9src/common/compress_zstd.c: At top level:
10src/common/compress_zstd.c:94:5: error: unknown type name ‘ZSTD_CStream’
11     ZSTD_CStream *compress_stream;
12     ^
13src/common/compress_zstd.c:96:5: error: unknown type name ‘ZSTD_DStream’
14     ZSTD_DStream *decompress_stream;
15     ^
16src/common/compress_zstd.c: In function ‘tor_zstd_compress_new’:
17src/common/compress_zstd.c:194:33: error: implicit declaration of function ‘ZSTD_createCStream’ [-Werror=implicit-function-declaration]
18     result->u.compress_stream = ZSTD_createCStream();
19                                 ^
20src/common/compress_zstd.c:194:5: error: nested extern declaration of ‘ZSTD_createCStream’ [-Werror=nested-externs]
21     result->u.compress_stream = ZSTD_createCStream();
22     ^
23src/common/compress_zstd.c:194:31: error: assignment makes pointer from integer without a cast [-Werror=int-conversion]
24     result->u.compress_stream = ZSTD_createCStream();
25                               ^
26src/common/compress_zstd.c:201:14: error: implicit declaration of function ‘ZSTD_initCStream’ [-Werror=implicit-function-declaration]
27     retval = ZSTD_initCStream(result->u.compress_stream, preset);
28              ^
29src/common/compress_zstd.c:201:5: error: nested extern declaration of ‘ZSTD_initCStream’ [-Werror=nested-externs]
30     retval = ZSTD_initCStream(result->u.compress_stream, preset);
31     ^
32src/common/compress_zstd.c:209:35: error: implicit declaration of function ‘ZSTD_createDStream’ [-Werror=implicit-function-declaration]
33     result->u.decompress_stream = ZSTD_createDStream();
34                                   ^
35src/common/compress_zstd.c:209:5: error: nested extern declaration of ‘ZSTD_createDStream’ [-Werror=nested-externs]
36     result->u.decompress_stream = ZSTD_createDStream();
37     ^
38src/common/compress_zstd.c:209:33: error: assignment makes pointer from integer without a cast [-Werror=int-conversion]
39     result->u.decompress_stream = ZSTD_createDStream();
40                                 ^
41src/common/compress_zstd.c:216:14: error: implicit declaration of function ‘ZSTD_initDStream’ [-Werror=implicit-function-declaration]
42     retval = ZSTD_initDStream(result->u.decompress_stream);
43              ^
44src/common/compress_zstd.c:216:5: error: nested extern declaration of ‘ZSTD_initDStream’ [-Werror=nested-externs]
45     retval = ZSTD_initDStream(result->u.decompress_stream);
46     ^
47src/common/compress_zstd.c:230:5: error: implicit declaration of function ‘ZSTD_freeCStream’ [-Werror=implicit-function-declaration]
48     ZSTD_freeCStream(result->u.compress_stream);
49     ^
50src/common/compress_zstd.c:230:5: error: nested extern declaration of ‘ZSTD_freeCStream’ [-Werror=nested-externs]
51src/common/compress_zstd.c:232:5: error: implicit declaration of function ‘ZSTD_freeDStream’ [-Werror=implicit-function-declaration]
52     ZSTD_freeDStream(result->u.decompress_stream);
53     ^
54src/common/compress_zstd.c:232:5: error: nested extern declaration of ‘ZSTD_freeDStream’ [-Werror=nested-externs]
55src/common/compress_zstd.c: In function ‘tor_zstd_compress_process’:
56src/common/compress_zstd.c:270:3: error: unknown type name ‘ZSTD_inBuffer’
57   ZSTD_inBuffer input = { *in, *in_len, 0 };
58   ^
59src/common/compress_zstd.c:270:27: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
60   ZSTD_inBuffer input = { *in, *in_len, 0 };
61                           ^
62src/common/compress_zstd.c:270:27: note: (near initialization for ‘input’)
63src/common/compress_zstd.c:270:32: error: excess elements in scalar initializer [-Werror]
64   ZSTD_inBuffer input = { *in, *in_len, 0 };
65                                ^
66src/common/compress_zstd.c:270:32: note: (near initialization for ‘input’)
67src/common/compress_zstd.c:270:41: error: excess elements in scalar initializer [-Werror]
68   ZSTD_inBuffer input = { *in, *in_len, 0 };
69                                         ^
70src/common/compress_zstd.c:270:41: note: (near initialization for ‘input’)
71src/common/compress_zstd.c:271:3: error: unknown type name ‘ZSTD_outBuffer’
72   ZSTD_outBuffer output = { *out, *out_len, 0 };
73   ^
74src/common/compress_zstd.c:271:29: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
75   ZSTD_outBuffer output = { *out, *out_len, 0 };
76                             ^
77src/common/compress_zstd.c:271:29: note: (near initialization for ‘output’)
78src/common/compress_zstd.c:271:35: error: excess elements in scalar initializer [-Werror]
79   ZSTD_outBuffer output = { *out, *out_len, 0 };
80                                   ^
81src/common/compress_zstd.c:271:35: note: (near initialization for ‘output’)
82src/common/compress_zstd.c:271:45: error: excess elements in scalar initializer [-Werror]
83   ZSTD_outBuffer output = { *out, *out_len, 0 };
84                                             ^
85src/common/compress_zstd.c:271:45: note: (near initialization for ‘output’)
86src/common/compress_zstd.c:274:14: error: implicit declaration of function ‘ZSTD_compressStream’ [-Werror=implicit-function-declaration]
87     retval = ZSTD_compressStream(state->u.compress_stream,
88              ^
89src/common/compress_zstd.c:274:5: error: nested extern declaration of ‘ZSTD_compressStream’ [-Werror=nested-externs]
90     retval = ZSTD_compressStream(state->u.compress_stream,
91     ^
92src/common/compress_zstd.c:277:14: error: implicit declaration of function ‘ZSTD_decompressStream’ [-Werror=implicit-function-declaration]
93     retval = ZSTD_decompressStream(state->u.decompress_stream,
94              ^
95src/common/compress_zstd.c:277:5: error: nested extern declaration of ‘ZSTD_decompressStream’ [-Werror=nested-externs]
96     retval = ZSTD_decompressStream(state->u.decompress_stream,
97     ^
98src/common/compress_zstd.c:281:31: error: request for member ‘pos’ in something not a structure or union
99   state->input_so_far += input.pos;
100                               ^
101src/common/compress_zstd.c:282:33: error: request for member ‘pos’ in something not a structure or union
102   state->output_so_far += output.pos;
103                                 ^
104src/common/compress_zstd.c:284:24: error: request for member ‘dst’ in something not a structure or union
105   *out = (char *)output.dst + output.pos;
106                        ^
107src/common/compress_zstd.c:284:37: error: request for member ‘pos’ in something not a structure or union
108   *out = (char *)output.dst + output.pos;
109                                     ^
110src/common/compress_zstd.c:285:20: error: request for member ‘size’ in something not a structure or union
111   *out_len = output.size - output.pos;
112                    ^
113src/common/compress_zstd.c:285:34: error: request for member ‘pos’ in something not a structure or union
114   *out_len = output.size - output.pos;
115                                  ^
116src/common/compress_zstd.c:286:22: error: request for member ‘src’ in something not a structure or union
117   *in = (char *)input.src + input.pos;
118                      ^
119src/common/compress_zstd.c:286:34: error: request for member ‘pos’ in something not a structure or union
120   *in = (char *)input.src + input.pos;
121                                  ^
122src/common/compress_zstd.c:287:18: error: request for member ‘size’ in something not a structure or union
123   *in_len = input.size - input.pos;
124                  ^
125src/common/compress_zstd.c:287:31: error: request for member ‘pos’ in something not a structure or union
126   *in_len = input.size - input.pos;
127                               ^
128src/common/compress_zstd.c:304:14: error: implicit declaration of function ‘ZSTD_flushStream’ [-Werror=implicit-function-declaration]
129     retval = ZSTD_flushStream(state->u.compress_stream, &output);
130              ^
131src/common/compress_zstd.c:304:5: error: nested extern declaration of ‘ZSTD_flushStream’ [-Werror=nested-externs]
132     retval = ZSTD_flushStream(state->u.compress_stream, &output);
133     ^
134src/common/compress_zstd.c:306:26: error: request for member ‘dst’ in something not a structure or union
135     *out = (char *)output.dst + output.pos;
136                          ^
137src/common/compress_zstd.c:306:39: error: request for member ‘pos’ in something not a structure or union
138     *out = (char *)output.dst + output.pos;
139                                       ^
140src/common/compress_zstd.c:307:22: error: request for member ‘size’ in something not a structure or union
141     *out_len = output.size - output.pos;
142                      ^
143src/common/compress_zstd.c:307:36: error: request for member ‘pos’ in something not a structure or union
144     *out_len = output.size - output.pos;
145                                    ^
146src/common/compress_zstd.c:323:14: error: implicit declaration of function ‘ZSTD_endStream’ [-Werror=implicit-function-declaration]
147     retval = ZSTD_endStream(state->u.compress_stream, &output);
148              ^
149src/common/compress_zstd.c:323:5: error: nested extern declaration of ‘ZSTD_endStream’ [-Werror=nested-externs]
150     retval = ZSTD_endStream(state->u.compress_stream, &output);
151     ^
152src/common/compress_zstd.c:325:26: error: request for member ‘dst’ in something not a structure or union
153     *out = (char *)output.dst + output.pos;
154                          ^
155src/common/compress_zstd.c:325:39: error: request for member ‘pos’ in something not a structure or union
156     *out = (char *)output.dst + output.pos;
157                                       ^
158src/common/compress_zstd.c:326:22: error: request for member ‘size’ in something not a structure or union
159     *out_len = output.size - output.pos;
160                      ^
161src/common/compress_zstd.c:326:36: error: request for member ‘pos’ in something not a structure or union
162     *out_len = output.size - output.pos;
163                                    ^
164src/common/compress_zstd.c: In function ‘tor_zstd_get_header_version_str’:
165src/common/compress_zstd.c:86:1: error: control reaches end of non-void function [-Werror=return-type]
166 }
167 ^
168cc1: all warnings being treated as errors
169Makefile:5211: recipe for target 'src/common/compress_zstd.o' failed
170make[1]: *** [src/common/compress_zstd.o] Error 1
171make[1]: Leaving directory '/home/tlyu/src/tor'
172Makefile:3104: recipe for target 'all' failed
173make: *** [all] Error 2