Guest User

Untitled

a guest
Jul 14th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.98 KB | None | 0 0
  1. linux-vrfz:/usr/src/nDPI-1.4.0.r7867_v2/ndpi-netfilter # make KERNEL_DIR=/usr/src/linux
  2. make -C ipt
  3. make[1]: Entering directory `/usr/src/nDPI-1.4.0.r7867_v2/ndpi-netfilter/ipt'
  4. cc -fPIC -I../include -I../lib -I../src -DOPENDPI_NETFILTER_MODULE -O2 -Wall -D_INIT=libxt_ndpi_init -c -o libxt_ndpi.o libxt_ndpi.c;
  5. libxt_ndpi.c:40:47: warning: ‘struct xt_entry_match’ declared inside parameter list [enabled by default]
  6. ndpi_mt4_save(const void *entry, const struct xt_entry_match *match)
  7. ^
  8. libxt_ndpi.c:40:47: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
  9. libxt_ndpi.c: In function ‘ndpi_mt4_save’:
  10. libxt_ndpi.c:42:57: error: dereferencing pointer to incomplete type
  11. const struct xt_ndpi_mtinfo *info = (const void *)match->data;
  12. ^
  13. libxt_ndpi.c: At top level:
  14. libxt_ndpi.c:60:19: warning: ‘struct xt_entry_match’ declared inside parameter list [enabled by default]
  15. int numeric)
  16. ^
  17. libxt_ndpi.c: In function ‘ndpi_mt4_print’:
  18. libxt_ndpi.c:62:57: error: dereferencing pointer to incomplete type
  19. const struct xt_ndpi_mtinfo *info = (const void *)match->data;
  20. ^
  21. libxt_ndpi.c: At top level:
  22. libxt_ndpi.c:80:45: warning: ‘struct xt_entry_match’ declared inside parameter list [enabled by default]
  23. const void *entry, struct xt_entry_match **match)
  24. ^
  25. libxt_ndpi.c: In function ‘ndpi_mt4_parse’:
  26. libxt_ndpi.c:82:48: error: dereferencing pointer to incomplete type
  27. struct xt_ndpi_mtinfo *info = (void *)(*match)->data;
  28. ^
  29. libxt_ndpi.c:100:12: error: ‘false’ undeclared (first use in this function)
  30. return false;
  31. ^
  32. libxt_ndpi.c:100:12: note: each undeclared identifier is reported only once for each function it appears in
  33. libxt_ndpi.c:116:32: error: ‘true’ undeclared (first use in this function)
  34. return true;
  35. ^
  36. libxt_ndpi.c: In function ‘ndpi_mt_check’:
  37. libxt_ndpi.c:131:3: warning: implicit declaration of function ‘exit_error’ [-Wimplicit-function-declaration]
  38. xtables_error(PARAMETER_PROBLEM, "xt_ndpi: You need to "
  39. ^
  40. libxt_ndpi.c:131:17: error: ‘PARAMETER_PROBLEM’ undeclared (first use in this function)
  41. xtables_error(PARAMETER_PROBLEM, "xt_ndpi: You need to "
  42. ^
  43. libxt_ndpi.c: At top level:
  44. libxt_ndpi.c:152:22: warning: ‘struct xt_entry_match’ declared inside parameter list [enabled by default]
  45. ndpi_mt_init (struct xt_entry_match *match)
  46. ^
  47. libxt_ndpi.c:167:1: error: variable ‘ndpi_mt4_reg’ has initializer but incomplete type
  48. ndpi_mt4_reg = {
  49. ^
  50. libxt_ndpi.c:168:2: error: unknown field ‘version’ specified in initializer
  51. .version = XTABLES_VERSION,
  52. ^
  53. libxt_ndpi.c:168:13: error: ‘XTABLES_VERSION’ undeclared here (not in a function)
  54. .version = XTABLES_VERSION,
  55. ^
  56. libxt_ndpi.c:168:2: warning: excess elements in struct initializer [enabled by default]
  57. .version = XTABLES_VERSION,
  58. ^
  59. libxt_ndpi.c:168:2: warning: (near initialization for ‘ndpi_mt4_reg’) [enabled by default]
  60. libxt_ndpi.c:169:2: error: unknown field ‘name’ specified in initializer
  61. .name = "ndpi",
  62. ^
  63. libxt_ndpi.c:169:2: warning: excess elements in struct initializer [enabled by default]
  64. libxt_ndpi.c:169:2: warning: (near initialization for ‘ndpi_mt4_reg’) [enabled by default]
  65. libxt_ndpi.c:170:2: error: unknown field ‘revision’ specified in initializer
  66. .revision = 0,
  67. ^
  68. libxt_ndpi.c:170:2: warning: excess elements in struct initializer [enabled by default]
  69. libxt_ndpi.c:170:2: warning: (near initialization for ‘ndpi_mt4_reg’) [enabled by default]
  70. libxt_ndpi.c:174:2: error: unknown field ‘family’ specified in initializer
  71. .family = NFPROTO_IPV4,
  72. ^
  73. libxt_ndpi.c:174:2: warning: excess elements in struct initializer [enabled by default]
  74. libxt_ndpi.c:174:2: warning: (near initialization for ‘ndpi_mt4_reg’) [enabled by default]
  75. libxt_ndpi.c:176:2: error: unknown field ‘size’ specified in initializer
  76. .size = XT_ALIGN(sizeof(struct xt_ndpi_mtinfo)),
  77. ^
  78. libxt_ndpi.c:176:2: warning: implicit declaration of function ‘XT_ALIGN’ [-Wimplicit-function-declaration]
  79. libxt_ndpi.c:176:33: warning: excess elements in struct initializer [enabled by default]
  80. .size = XT_ALIGN(sizeof(struct xt_ndpi_mtinfo)),
  81. ^
  82. libxt_ndpi.c:176:33: warning: (near initialization for ‘ndpi_mt4_reg’) [enabled by default]
  83. libxt_ndpi.c:177:2: error: unknown field ‘userspacesize’ specified in initializer
  84. .userspacesize = XT_ALIGN(sizeof(struct xt_ndpi_mtinfo)),
  85. ^
  86. libxt_ndpi.c:177:42: warning: excess elements in struct initializer [enabled by default]
  87. .userspacesize = XT_ALIGN(sizeof(struct xt_ndpi_mtinfo)),
  88. ^
  89. libxt_ndpi.c:177:42: warning: (near initialization for ‘ndpi_mt4_reg’) [enabled by default]
  90. libxt_ndpi.c:178:2: error: unknown field ‘help’ specified in initializer
  91. .help = ndpi_mt_help,
  92. ^
  93. libxt_ndpi.c:178:2: warning: excess elements in struct initializer [enabled by default]
  94. libxt_ndpi.c:178:2: warning: (near initialization for ‘ndpi_mt4_reg’) [enabled by default]
  95. libxt_ndpi.c:179:2: error: unknown field ‘init’ specified in initializer
  96. .init = ndpi_mt_init,
  97. ^
  98. libxt_ndpi.c:179:2: warning: excess elements in struct initializer [enabled by default]
  99. libxt_ndpi.c:179:2: warning: (near initialization for ‘ndpi_mt4_reg’) [enabled by default]
  100. libxt_ndpi.c:180:2: error: unknown field ‘parse’ specified in initializer
  101. .parse = ndpi_mt4_parse,
  102. ^
  103. libxt_ndpi.c:180:2: warning: excess elements in struct initializer [enabled by default]
  104. libxt_ndpi.c:180:2: warning: (near initialization for ‘ndpi_mt4_reg’) [enabled by default]
  105. libxt_ndpi.c:181:2: error: unknown field ‘final_check’ specified in initializer
  106. .final_check = ndpi_mt_check,
  107. ^
  108. libxt_ndpi.c:181:2: warning: excess elements in struct initializer [enabled by default]
  109. libxt_ndpi.c:181:2: warning: (near initialization for ‘ndpi_mt4_reg’) [enabled by default]
  110. libxt_ndpi.c:182:2: error: unknown field ‘print’ specified in initializer
  111. .print = ndpi_mt4_print,
  112. ^
  113. libxt_ndpi.c:182:2: warning: excess elements in struct initializer [enabled by default]
  114. libxt_ndpi.c:182:2: warning: (near initialization for ‘ndpi_mt4_reg’) [enabled by default]
  115. libxt_ndpi.c:183:2: error: unknown field ‘save’ specified in initializer
  116. .save = ndpi_mt4_save,
  117. ^
  118. libxt_ndpi.c:183:2: warning: excess elements in struct initializer [enabled by default]
  119. libxt_ndpi.c:183:2: warning: (near initialization for ‘ndpi_mt4_reg’) [enabled by default]
  120. libxt_ndpi.c:184:2: error: unknown field ‘extra_opts’ specified in initializer
  121. .extra_opts = ndpi_mt_opts,
  122. ^
  123. libxt_ndpi.c:184:2: warning: excess elements in struct initializer [enabled by default]
  124. libxt_ndpi.c:184:2: warning: (near initialization for ‘ndpi_mt4_reg’) [enabled by default]
  125. libxt_ndpi.c:218:37: error: array type has incomplete element type
  126. static const struct xt_option_entry NDPI_opts[] = {
  127. ^
  128. libxt_ndpi.c:219:9: error: field name not in record or union initializer
  129. {.name = "value", .id = O_SET_VALUE,.type = XTTYPE_MARKMASK32},
  130. ^
  131. libxt_ndpi.c:219:9: error: (near initialization for ‘NDPI_opts’)
  132. libxt_ndpi.c:219:9: error: field name not in record or union initializer
  133. libxt_ndpi.c:219:9: error: (near initialization for ‘NDPI_opts’)
  134. libxt_ndpi.c:219:9: error: field name not in record or union initializer
  135. libxt_ndpi.c:219:9: error: (near initialization for ‘NDPI_opts’)
  136. libxt_ndpi.c:219:56: error: ‘XTTYPE_MARKMASK32’ undeclared here (not in a function)
  137. {.name = "value", .id = O_SET_VALUE,.type = XTTYPE_MARKMASK32},
  138. ^
  139. libxt_ndpi.c:220:9: error: field name not in record or union initializer
  140. {.name = "ndpi-id", .id = O_SET_NDPI, .type = XTTYPE_NONE},
  141. ^
  142. libxt_ndpi.c:220:9: error: (near initialization for ‘NDPI_opts’)
  143. libxt_ndpi.c:220:9: error: field name not in record or union initializer
  144. libxt_ndpi.c:220:9: error: (near initialization for ‘NDPI_opts’)
  145. libxt_ndpi.c:220:9: error: field name not in record or union initializer
  146. libxt_ndpi.c:220:9: error: (near initialization for ‘NDPI_opts’)
  147. libxt_ndpi.c:220:56: error: ‘XTTYPE_NONE’ undeclared here (not in a function)
  148. {.name = "ndpi-id", .id = O_SET_NDPI, .type = XTTYPE_NONE},
  149. ^
  150. libxt_ndpi.c:221:9: error: field name not in record or union initializer
  151. {.name = "set-mark", .id = O_SET_MARK, .type = XTTYPE_NONE},
  152. ^
  153. libxt_ndpi.c:221:9: error: (near initialization for ‘NDPI_opts’)
  154. libxt_ndpi.c:221:9: error: field name not in record or union initializer
  155. libxt_ndpi.c:221:9: error: (near initialization for ‘NDPI_opts’)
  156. libxt_ndpi.c:221:9: error: field name not in record or union initializer
  157. libxt_ndpi.c:221:9: error: (near initialization for ‘NDPI_opts’)
  158. libxt_ndpi.c:222:9: error: field name not in record or union initializer
  159. {.name = "set-clsf", .id = O_SET_CLSF, .type = XTTYPE_NONE},
  160. ^
  161. libxt_ndpi.c:222:9: error: (near initialization for ‘NDPI_opts’)
  162. libxt_ndpi.c:222:9: error: field name not in record or union initializer
  163. libxt_ndpi.c:222:9: error: (near initialization for ‘NDPI_opts’)
  164. libxt_ndpi.c:222:9: error: field name not in record or union initializer
  165. libxt_ndpi.c:222:9: error: (near initialization for ‘NDPI_opts’)
  166. libxt_ndpi.c:223:9: error: field name not in record or union initializer
  167. {.name = "ret", .id = O_RET, .type = XTTYPE_NONE, .excl = F_ACCEPT},
  168. ^
  169. libxt_ndpi.c:223:9: error: (near initialization for ‘NDPI_opts’)
  170. libxt_ndpi.c:223:9: error: field name not in record or union initializer
  171. libxt_ndpi.c:223:9: error: (near initialization for ‘NDPI_opts’)
  172. libxt_ndpi.c:223:9: error: field name not in record or union initializer
  173. libxt_ndpi.c:223:9: error: (near initialization for ‘NDPI_opts’)
  174. libxt_ndpi.c:223:9: error: field name not in record or union initializer
  175. libxt_ndpi.c:223:9: error: (near initialization for ‘NDPI_opts’)
  176. libxt_ndpi.c:224:9: error: field name not in record or union initializer
  177. {.name = "accept", .id = O_ACCEPT, .type = XTTYPE_NONE, .excl = F_RET},
  178. ^
  179. libxt_ndpi.c:224:9: error: (near initialization for ‘NDPI_opts’)
  180. libxt_ndpi.c:224:9: error: field name not in record or union initializer
  181. libxt_ndpi.c:224:9: error: (near initialization for ‘NDPI_opts’)
  182. libxt_ndpi.c:224:9: error: field name not in record or union initializer
  183. libxt_ndpi.c:224:9: error: (near initialization for ‘NDPI_opts’)
  184. libxt_ndpi.c:224:9: error: field name not in record or union initializer
  185. libxt_ndpi.c:224:9: error: (near initialization for ‘NDPI_opts’)
  186. libxt_ndpi.c:225:9: error: ‘XTOPT_TABLEEND’ undeclared here (not in a function)
  187. XTOPT_TABLEEND,
  188. ^
  189. libxt_ndpi.c:227:34: warning: ‘struct xt_option_call’ declared inside parameter list [enabled by default]
  190. static void NDPI_parse_v0(struct xt_option_call *cb)
  191. ^
  192. libxt_ndpi.c: In function ‘NDPI_parse_v0’:
  193. libxt_ndpi.c:229:45: error: dereferencing pointer to incomplete type
  194. struct xt_ndpi_tginfo *markinfo = cb->data;
  195. ^
  196. libxt_ndpi.c:231:9: warning: implicit declaration of function ‘xtables_option_parse’ [-Wimplicit-function-declaration]
  197. xtables_option_parse(cb);
  198. ^
  199. libxt_ndpi.c:232:19: error: dereferencing pointer to incomplete type
  200. switch (cb->entry->id) {
  201. ^
  202. libxt_ndpi.c:234:36: error: dereferencing pointer to incomplete type
  203. markinfo->mark = cb->val.mark;
  204. ^
  205. libxt_ndpi.c:235:37: error: dereferencing pointer to incomplete type
  206. markinfo->mask = ~cb->val.mask;
  207. ^
  208. libxt_ndpi.c:253:31: error: ‘PARAMETER_PROBLEM’ undeclared (first use in this function)
  209. xtables_error(PARAMETER_PROBLEM,
  210. ^
  211. libxt_ndpi.c:255:30: error: dereferencing pointer to incomplete type
  212. cb->entry->name);
  213. ^
  214. libxt_ndpi.c: At top level:
  215. libxt_ndpi.c:260:40: warning: ‘struct xt_entry_target’ declared inside parameter list [enabled by default]
  216. const struct xt_entry_target *target, int numeric)
  217. ^
  218. libxt_ndpi.c: In function ‘NDPI_print_v0’:
  219. libxt_ndpi.c:263:54: error: dereferencing pointer to incomplete type
  220. (const struct xt_ndpi_tginfo *)target->data;
  221. ^
  222. libxt_ndpi.c: At top level:
  223. libxt_ndpi.c:288:55: warning: ‘struct xt_entry_target’ declared inside parameter list [enabled by default]
  224. static void NDPI_save_v0(const void *ip, const struct xt_entry_target *target)
  225. ^
  226. libxt_ndpi.c: In function ‘NDPI_save_v0’:
  227. libxt_ndpi.c:291:54: error: dereferencing pointer to incomplete type
  228. (const struct xt_ndpi_tginfo *)target->data;
  229. ^
  230. libxt_ndpi.c: At top level:
  231. libxt_ndpi.c:313:31: warning: ‘struct xt_fcheck_call’ declared inside parameter list [enabled by default]
  232. static void NDPI_check(struct xt_fcheck_call *cb)
  233. ^
  234. libxt_ndpi.c: In function ‘NDPI_check’:
  235. libxt_ndpi.c:315:17: error: dereferencing pointer to incomplete type
  236. if (!(cb->xflags & (F_SET_VALUE|F_SET_NDPI)))
  237. ^
  238. libxt_ndpi.c:316:31: error: ‘PARAMETER_PROBLEM’ undeclared (first use in this function)
  239. xtables_error(PARAMETER_PROBLEM,
  240. ^
  241. libxt_ndpi.c:318:48: error: dereferencing pointer to incomplete type
  242. " is required %x",cb->xflags);
  243. ^
  244. libxt_ndpi.c: At top level:
  245. libxt_ndpi.c:321:30: error: array type has incomplete element type
  246. static struct xtables_target ndpi_tg_reg[] = {
  247. ^
  248. libxt_ndpi.c:323:17: error: field name not in record or union initializer
  249. .family = NFPROTO_UNSPEC,
  250. ^
  251. libxt_ndpi.c:323:17: error: (near initialization for ‘ndpi_tg_reg’)
  252. libxt_ndpi.c:324:17: error: field name not in record or union initializer
  253. .name = "NDPI",
  254. ^
  255. libxt_ndpi.c:324:17: error: (near initialization for ‘ndpi_tg_reg’)
  256. libxt_ndpi.c:325:17: error: field name not in record or union initializer
  257. .version = XTABLES_VERSION,
  258. ^
  259. libxt_ndpi.c:325:17: error: (near initialization for ‘ndpi_tg_reg’)
  260. libxt_ndpi.c:326:17: error: field name not in record or union initializer
  261. .revision = 0,
  262. ^
  263. libxt_ndpi.c:326:17: error: (near initialization for ‘ndpi_tg_reg’)
  264. libxt_ndpi.c:327:17: error: field name not in record or union initializer
  265. .size = XT_ALIGN(sizeof(struct xt_ndpi_tginfo)),
  266. ^
  267. libxt_ndpi.c:327:17: error: (near initialization for ‘ndpi_tg_reg’)
  268. libxt_ndpi.c:328:17: error: field name not in record or union initializer
  269. .userspacesize = XT_ALIGN(sizeof(struct xt_ndpi_tginfo)),
  270. ^
  271. libxt_ndpi.c:328:17: error: (near initialization for ‘ndpi_tg_reg’)
  272. libxt_ndpi.c:329:17: error: field name not in record or union initializer
  273. .help = NDPI_help,
  274. ^
  275. libxt_ndpi.c:329:17: error: (near initialization for ‘ndpi_tg_reg’)
  276. libxt_ndpi.c:330:17: error: field name not in record or union initializer
  277. .print = NDPI_print_v0,
  278. ^
  279. libxt_ndpi.c:330:17: error: (near initialization for ‘ndpi_tg_reg’)
  280. libxt_ndpi.c:331:17: error: field name not in record or union initializer
  281. .save = NDPI_save_v0,
  282. ^
  283. libxt_ndpi.c:331:17: error: (near initialization for ‘ndpi_tg_reg’)
  284. libxt_ndpi.c:332:17: error: field name not in record or union initializer
  285. .x6_parse = NDPI_parse_v0,
  286. ^
  287. libxt_ndpi.c:332:17: error: (near initialization for ‘ndpi_tg_reg’)
  288. libxt_ndpi.c:333:17: error: field name not in record or union initializer
  289. .x6_fcheck = NDPI_check,
  290. ^
  291. libxt_ndpi.c:333:17: error: (near initialization for ‘ndpi_tg_reg’)
  292. libxt_ndpi.c:334:17: error: field name not in record or union initializer
  293. .x6_options = NDPI_opts,
  294. ^
  295. libxt_ndpi.c:334:17: error: (near initialization for ‘ndpi_tg_reg’)
  296. libxt_ndpi.c: In function ‘_init’:
  297. libxt_ndpi.c:358:2: warning: implicit declaration of function ‘xtables_register_match’ [-Wimplicit-function-declaration]
  298. xtables_register_match(&ndpi_mt4_reg);
  299. ^
  300. libxt_ndpi.c:359:2: warning: implicit declaration of function ‘xtables_register_targets’ [-Wimplicit-function-declaration]
  301. xtables_register_targets(ndpi_tg_reg, ARRAY_SIZE(ndpi_tg_reg));
  302. ^
  303. libxt_ndpi.c: At top level:
  304. libxt_ndpi.c:218:37: warning: ‘NDPI_opts’ defined but not used [-Wunused-variable]
  305. static const struct xt_option_entry NDPI_opts[] = {
  306. ^
  307. libxt_ndpi.c:321:30: warning: ‘ndpi_tg_reg’ defined but not used [-Wunused-variable]
  308. static struct xtables_target ndpi_tg_reg[] = {
  309. ^
  310. make[1]: *** [libxt_ndpi.o] Error 1
  311. make[1]: Leaving directory `/usr/src/nDPI-1.4.0.r7867_v2/ndpi-netfilter/ipt'
  312. make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment