Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.31 KB | None | 0 0
  1. $ env CC=gcc ./rebar compile
  2. ==> rdma_dist-master (compile)
  3. Compiling c_src/rdma_drv.c
  4. In file included from c_src/rdma_drv.c:17:0:
  5. /usr/include/arpa/inet.h:27:1: error: unknown type name ‘__socklen_t’
  6. typedef __socklen_t socklen_t;
  7. ^
  8. /usr/include/arpa/inet.h:35:1: error: unknown type name ‘in_addr_t’
  9. extern in_addr_t inet_addr (__const char *__cp) __THROW;
  10. ^
  11. /usr/include/arpa/inet.h:38:1: error: unknown type name ‘in_addr_t’
  12. extern in_addr_t inet_lnaof (struct in_addr __in) __THROW;
  13. ^
  14. /usr/include/arpa/inet.h:42:38: error: unknown type name ‘in_addr_t’
  15. extern struct in_addr inet_makeaddr (in_addr_t __net, in_addr_t __host)
  16. ^
  17. /usr/include/arpa/inet.h:42:55: error: unknown type name ‘in_addr_t’
  18. extern struct in_addr inet_makeaddr (in_addr_t __net, in_addr_t __host)
  19. ^
  20. /usr/include/arpa/inet.h:46:1: error: unknown type name ‘in_addr_t’
  21. extern in_addr_t inet_netof (struct in_addr __in) __THROW;
  22. ^
  23. /usr/include/arpa/inet.h:50:1: error: unknown type name ‘in_addr_t’
  24. extern in_addr_t inet_network (__const char *__cp) __THROW;
  25. ^
  26. /usr/include/arpa/inet.h:78:25: error: unknown type name ‘in_addr_t’
  27. extern char *inet_neta (in_addr_t __net, char *__buf, size_t __len) __THROW;
  28. ^
  29. /usr/include/arpa/inet.h:78:55: error: unknown type name ‘size_t’
  30. extern char *inet_neta (in_addr_t __net, char *__buf, size_t __len) __THROW;
  31. ^
  32. /usr/include/arpa/inet.h:84:21: error: unknown type name ‘size_t’
  33. char *__buf, size_t __len) __THROW;
  34. ^
  35. /usr/include/arpa/inet.h:90:19: error: unknown type name ‘size_t’
  36. void *__buf, size_t __len) __THROW;
  37. ^
  38. In file included from /app/languages/erlang/17.1/wsm/gnu-4.8.0/lib/erlang/lib/erl_interface-3.7.17/include/ei.h:39:0,
  39. from c_src/rdma_drv.c:18:
  40. /usr/include/bits/stdio.h:21:3: error: #error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
  41. # error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
  42. ^
  43. In file included from /app/languages/erlang/17.1/wsm/gnu-4.8.0/lib/erlang/lib/erl_interface-3.7.17/include/ei.h:43:0,
  44. from c_src/rdma_drv.c:18:
  45. /usr/include/bits/netdb.h:20:3: error: #error "Never include <bits/netdb.h> directly; use <netdb.h> instead."
  46. # error "Never include <bits/netdb.h> directly; use <netdb.h> instead."
  47. ^
  48. In file included from c_src/rdma_drv.c:18:0:
  49. /app/languages/erlang/17.1/wsm/gnu-4.8.0/lib/erlang/lib/erl_interface-3.7.17/include/ei.h:528:19: error: unknown type name ‘FILE’
  50. int ei_print_term(FILE *fp, const char* buf, int* index);
  51. ^
  52. In file included from /app/languages/erlang/17.1/wsm/gnu-4.8.0/lib/erlang/erts-6.1/include/erl_driver.h:87:0,
  53. from c_src/rdma_drv.c:19:
  54. /usr/include/bits/stdlib.h:21:3: error: #error "Never include <bits/stdlib.h> directly; use <stdlib.h> instead."
  55. # error "Never include <bits/stdlib.h> directly; use <stdlib.h> instead."
  56. ^
  57. /usr/include/bits/stdlib.h:26:9: error: unknown type name ‘size_t’
  58. size_t __resolvedlen) __THROW __wur;
  59. ^
  60. /usr/include/bits/stdlib.h: In function ‘realpath’:
  61. /usr/include/bits/stdlib.h:34:30: error: ‘size_t’ undeclared (first use in this function)
  62. if (__bos (__resolved) != (size_t) -1)
  63. ^
  64. /usr/include/bits/stdlib.h:34:30: note: each undeclared identifier is reported only once for each function it appears in
  65. /usr/include/bits/stdlib.h:35:5: warning: implicit declaration of function ‘__realpath_chk’ [-Wimplicit-function-declaration]
  66. return __realpath_chk (__name, __resolved, __bos (__resolved));
  67. ^
  68. /usr/include/bits/stdlib.h:35:5: warning: return makes pointer from integer without a cast [enabled by default]
  69. /usr/include/bits/stdlib.h: At top level:
  70. /usr/include/bits/stdlib.h:41:52: error: unknown type name ‘size_t’
  71. extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen,
  72. ^
  73. /usr/include/bits/stdlib.h:42:8: error: unknown type name ‘size_t’
  74. size_t __nreal) __THROW __nonnull ((2));
  75. ^
  76. In file included from /app/compilers/gnu/4.8.0/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/include-fixed/features.h:338:0,
  77. from /usr/include/arpa/inet.h:22,
  78. from c_src/rdma_drv.c:17:
  79. /usr/include/bits/stdlib.h:44:13: error: unknown type name ‘size_t’
  80. size_t __buflen), ptsname_r)
  81. ^
  82. /usr/include/bits/stdlib.h:48:42: error: unknown type name ‘size_t’
  83. __NTH (ptsname_r (int __fd, char *__buf, size_t __buflen))
  84. ^
  85. In file included from /app/languages/erlang/17.1/wsm/gnu-4.8.0/lib/erlang/erts-6.1/include/erl_driver.h:87:0,
  86. from c_src/rdma_drv.c:19:
  87. /usr/include/bits/stdlib.h:57:37: error: unknown type name ‘wchar_t’
  88. extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen)
  89. ^
  90. /usr/include/bits/stdlib.h:57:54: error: unknown type name ‘size_t’
  91. extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen)
  92. ^
  93. In file included from /app/compilers/gnu/4.8.0/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/include-fixed/features.h:338:0,
  94. from /usr/include/arpa/inet.h:22,
  95. from c_src/rdma_drv.c:17:
  96. /usr/include/bits/stdlib.h:59:56: error: unknown type name ‘wchar_t’
  97. extern int __REDIRECT_NTH (__wctomb_alias, (char *__s, wchar_t __wchar),
  98. ^
  99. /usr/include/bits/stdlib.h:63:27: error: unknown type name ‘wchar_t’
  100. __NTH (wctomb (char *__s, wchar_t __wchar))
  101. ^
  102. In file included from /app/languages/erlang/17.1/wsm/gnu-4.8.0/lib/erlang/erts-6.1/include/erl_driver.h:87:0,
  103. from c_src/rdma_drv.c:19:
  104. /usr/include/bits/stdlib.h:78:1: error: unknown type name ‘size_t’
  105. extern size_t __mbstowcs_chk (wchar_t *__restrict __dst,
  106. ^
  107. /usr/include/bits/stdlib.h:78:31: error: unknown type name ‘wchar_t’
  108. extern size_t __mbstowcs_chk (wchar_t *__restrict __dst,
  109. ^
  110. /usr/include/bits/stdlib.h:80:10: error: unknown type name ‘size_t’
  111. size_t __len, size_t __dstlen) __THROW;
  112. ^
  113. /usr/include/bits/stdlib.h:80:24: error: unknown type name ‘size_t’
  114. size_t __len, size_t __dstlen) __THROW;
  115. ^
  116. /usr/include/bits/stdlib.h:81:1: error: unknown type name ‘size_t’
  117. extern size_t __REDIRECT_NTH (__mbstowcs_alias,
  118. ^
  119. In file included from /app/compilers/gnu/4.8.0/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/include-fixed/features.h:338:0,
  120. from /usr/include/arpa/inet.h:22,
  121. from c_src/rdma_drv.c:17:
  122. /usr/include/bits/stdlib.h:82:11: error: unknown type name ‘wchar_t’
  123. (wchar_t *__restrict __dst,
  124. ^
  125. /usr/include/bits/stdlib.h:84:11: error: unknown type name ‘size_t’
  126. size_t __len), mbstowcs);
  127. ^
  128. In file included from /app/languages/erlang/17.1/wsm/gnu-4.8.0/lib/erlang/erts-6.1/include/erl_driver.h:87:0,
  129. from c_src/rdma_drv.c:19:
  130. /usr/include/bits/stdlib.h:86:24: warning: type defaults to ‘int’ in declaration of ‘size_t’ [-Wimplicit-int]
  131. extern __always_inline size_t
  132. ^
  133. /usr/include/bits/stdlib.h:86:24: warning: variable ‘size_t’ declared ‘inline’ [enabled by default]
  134. /usr/include/bits/stdlib.h:87:1: warning: ‘__nothrow__’ attribute ignored [-Wattributes]
  135. __NTH (mbstowcs (wchar_t *__restrict __dst, __const char *__restrict __src,
  136. ^
  137. /usr/include/bits/stdlib.h:87:1: warning: ‘__always_inline__’ attribute ignored [-Wattributes]
  138. In file included from /app/compilers/gnu/4.8.0/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/include-fixed/features.h:338:0,
  139. from /usr/include/arpa/inet.h:22,
  140. from c_src/rdma_drv.c:17:
  141. /usr/include/bits/stdlib.h:87:8: error: expected ‘,’ or ‘;’ before ‘mbstowcs’
  142. __NTH (mbstowcs (wchar_t *__restrict __dst, __const char *__restrict __src,
  143. ^
  144. In file included from /app/languages/erlang/17.1/wsm/gnu-4.8.0/lib/erlang/erts-6.1/include/erl_driver.h:87:0,
  145. from c_src/rdma_drv.c:19:
  146. /usr/include/bits/stdlib.h:99:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__wcstombs_chk’
  147. extern size_t __wcstombs_chk (char *__restrict __dst,
  148. ^
  149. In file included from /app/compilers/gnu/4.8.0/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/include-fixed/features.h:338:0,
  150. from /usr/include/arpa/inet.h:22,
  151. from c_src/rdma_drv.c:17:
  152. /usr/include/bits/stdlib.h:102:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__wcstombs_alias’
  153. extern size_t __REDIRECT_NTH (__wcstombs_alias,
  154. ^
  155. In file included from /app/languages/erlang/17.1/wsm/gnu-4.8.0/lib/erlang/erts-6.1/include/erl_driver.h:87:0,
  156. from c_src/rdma_drv.c:19:
  157. /usr/include/bits/stdlib.h:107:24: warning: type defaults to ‘int’ in declaration of ‘size_t’ [-Wimplicit-int]
  158. extern __always_inline size_t
  159. ^
  160. /usr/include/bits/stdlib.h:107:24: warning: variable ‘size_t’ declared ‘inline’ [enabled by default]
  161. /usr/include/bits/stdlib.h:108:1: warning: ‘__nothrow__’ attribute ignored [-Wattributes]
  162. __NTH (wcstombs (char *__restrict __dst, __const wchar_t *__restrict __src,
  163. ^
  164. /usr/include/bits/stdlib.h:108:1: warning: ‘__always_inline__’ attribute ignored [-Wattributes]
  165. In file included from /app/compilers/gnu/4.8.0/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/include-fixed/features.h:338:0,
  166. from /usr/include/arpa/inet.h:22,
  167. from c_src/rdma_drv.c:17:
  168. /usr/include/bits/stdlib.h:108:8: error: expected ‘,’ or ‘;’ before ‘wcstombs’
  169. __NTH (wcstombs (char *__restrict __dst, __const wchar_t *__restrict __src,
  170. ^
  171. In file included from /usr/lib/syslinux/com32/include/stddef.h:12:0,
  172. from /usr/lib/syslinux/com32/include/sys/types.h:9,
  173. from /app/languages/erlang/17.1/wsm/gnu-4.8.0/lib/erlang/erts-6.1/include/erl_driver.h:88,
  174. from c_src/rdma_drv.c:19:
  175. /usr/lib/syslinux/com32/include/bitsize/stddef.h:12:22: error: ‘size_t’ redeclared as different kind of symbol
  176. typedef unsigned int size_t;
  177. ^
  178. In file included from /app/languages/erlang/17.1/wsm/gnu-4.8.0/lib/erlang/erts-6.1/include/erl_driver.h:87:0,
  179. from c_src/rdma_drv.c:19:
  180. /usr/include/bits/stdlib.h:107:24: note: previous declaration of ‘size_t’ was here
  181. extern __always_inline size_t
  182. ^
  183. In file included from c_src/rdma_drv.c:20:0:
  184. /usr/include/bits/fcntl.h:21:3: error: #error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
  185. # error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
  186. ^
  187. In file included from c_src/rdma_drv.c:20:0:
  188. /usr/include/bits/fcntl.h:160:5: error: unknown type name ‘__off_t’
  189. __off_t l_start; /* Offset where the lock begins. */
  190. ^
  191. /usr/include/bits/fcntl.h:161:5: error: unknown type name ‘__off_t’
  192. __off_t l_len; /* Size of the locked area; zero means until EOF. */
  193. ^
  194. /usr/include/bits/fcntl.h:166:5: error: unknown type name ‘__pid_t’
  195. __pid_t l_pid; /* Process holding the lock. */
  196. ^
  197. In file included from /usr/include/sys/socket.h:35:0,
  198. from /usr/include/rdma/rdma_cma.h:38,
  199. from c_src/rdma_drv.c:21:
  200. /usr/include/bits/socket.h:165:5: error: unknown type name ‘__uint32_t’
  201. __ss_aligntype __ss_align; /* Force desired alignment. */
  202. ^
  203. /usr/include/bits/socket.h:166:23: error: ‘__uint32_t’ undeclared here (not in a function)
  204. char __ss_padding[_SS_PADSIZE];
  205. ^
  206. /usr/include/bits/socket.h:304:3: error: unknown type name ‘pid_t’
  207. pid_t pid; /* PID of sending process. */
  208. ^
  209. /usr/include/bits/socket.h:305:3: error: unknown type name ‘uid_t’
  210. uid_t uid; /* UID of sending process. */
  211. ^
  212. /usr/include/bits/socket.h:306:3: error: unknown type name ‘gid_t’
  213. gid_t gid; /* GID of sending process. */
  214. ^
  215. In file included from /usr/include/pthread.h:23:0,
  216. from /usr/include/infiniband/verbs.h:40,
  217. from /usr/include/rdma/rdma_cma.h:39,
  218. from c_src/rdma_drv.c:21:
  219. /usr/include/bits/endian.h:4:3: error: #error "Never use <bits/endian.h> directly; include <endian.h> instead."
  220. # error "Never use <bits/endian.h> directly; include <endian.h> instead."
  221. ^
  222. In file included from /usr/include/pthread.h:24:0,
  223. from /usr/include/infiniband/verbs.h:40,
  224. from /usr/include/rdma/rdma_cma.h:39,
  225. from c_src/rdma_drv.c:21:
  226. /usr/include/bits/sched.h:24:3: error: #error "Never include <bits/sched.h> directly; use <sched.h> instead."
  227. # error "Never include <bits/sched.h> directly; use <sched.h> instead."
  228. ^
  229. In file included from /usr/include/asm-x86_64/signal.h:6:0,
  230. from /usr/include/asm/signal.h:5,
  231. from /usr/include/linux/signal.h:4,
  232. from /usr/include/pthread.h:28,
  233. from /usr/include/infiniband/verbs.h:40,
  234. from /usr/include/rdma/rdma_cma.h:39,
  235. from c_src/rdma_drv.c:21:
  236. /usr/include/linux/time.h:10:2: error: unknown type name ‘time_t’
  237. time_t tv_sec; /* seconds */
  238. ^
  239. /usr/include/linux/time.h:16:2: error: unknown type name ‘time_t’
  240. time_t tv_sec; /* seconds */
  241. ^
  242. /usr/include/linux/time.h:17:2: error: unknown type name ‘suseconds_t’
  243. suseconds_t tv_usec; /* microseconds */
  244. ^
  245. In file included from /usr/include/asm-x86_64/siginfo.h:6:0,
  246. from /usr/include/asm/siginfo.h:5,
  247. from /usr/include/linux/signal.h:5,
  248. from /usr/include/pthread.h:28,
  249. from /usr/include/infiniband/verbs.h:40,
  250. from /usr/include/rdma/rdma_cma.h:39,
  251. from c_src/rdma_drv.c:21:
  252. /usr/include/asm-generic/siginfo.h:49:4: error: unknown type name ‘pid_t’
  253. pid_t _pid; /* sender's pid */
  254. ^
  255. /usr/include/asm-generic/siginfo.h:50:4: error: unknown type name ‘uid_t’
  256. __ARCH_SI_UID_T _uid; /* sender's uid */
  257. ^
  258. /usr/include/asm-generic/siginfo.h:55:4: error: unknown type name ‘timer_t’
  259. timer_t _tid; /* timer id */
  260. ^
  261. /usr/include/asm-generic/siginfo.h:57:22: error: ‘uid_t’ undeclared here (not in a function)
  262. char _pad[sizeof( __ARCH_SI_UID_T) - sizeof(int)];
  263. ^
  264. /usr/include/asm-generic/siginfo.h:64:4: error: unknown type name ‘pid_t’
  265. pid_t _pid; /* sender's pid */
  266. ^
  267. /usr/include/asm-generic/siginfo.h:65:4: error: expected specifier-qualifier-list before ‘uid_t’
  268. __ARCH_SI_UID_T _uid; /* sender's uid */
  269. ^
  270. /usr/include/asm-generic/siginfo.h:71:4: error: unknown type name ‘pid_t’
  271. pid_t _pid; /* which child */
  272. ^
  273. /usr/include/asm-generic/siginfo.h:72:4: error: expected specifier-qualifier-list before ‘uid_t’
  274. __ARCH_SI_UID_T _uid; /* sender's uid */
  275. ^
  276. In file included from /usr/include/infiniband/verbs.h:40:0,
  277. from /usr/include/rdma/rdma_cma.h:39,
  278. from c_src/rdma_drv.c:21:
  279. /usr/include/pthread.h:986:11: error: unknown type name ‘__clockid_t’
  280. __clockid_t *__restrict __clock_id)
  281. ^
  282. /usr/include/pthread.h:991:11: error: unknown type name ‘__clockid_t’
  283. __clockid_t __clock_id)
  284. ^
  285. /usr/include/pthread.h:1086:7: error: unknown type name ‘__clockid_t’
  286. __clockid_t *__clock_id)
  287. ^
  288. In file included from c_src/rdma_drv.c:21:0:
  289. /usr/include/rdma/rdma_cma.h:95:12: error: size of array ‘src_pad’ is too large
  290. uint8_t src_pad[sizeof(struct sockaddr_storage) -
  291. ^
  292. /usr/include/rdma/rdma_cma.h:98:12: error: size of array ‘dst_pad’ is too large
  293. uint8_t dst_pad[sizeof(struct sockaddr_storage) -
  294. ^
  295. /usr/include/rdma/rdma_cma.h: In function ‘rdma_get_src_port’:
  296. /usr/include/rdma/rdma_cma.h:576:53: error: dereferencing pointer to incomplete type
  297. ((struct sockaddr_in6 *) &id->route.addr.src_addr)->sin6_port :
  298. ^
  299. /usr/include/rdma/rdma_cma.h:577:52: error: dereferencing pointer to incomplete type
  300. ((struct sockaddr_in *) &id->route.addr.src_addr)->sin_port;
  301. ^
  302. /usr/include/rdma/rdma_cma.h: In function ‘rdma_get_dst_port’:
  303. /usr/include/rdma/rdma_cma.h:583:53: error: dereferencing pointer to incomplete type
  304. ((struct sockaddr_in6 *) &id->route.addr.dst_addr)->sin6_port :
  305. ^
  306. /usr/include/rdma/rdma_cma.h:584:52: error: dereferencing pointer to incomplete type
  307. ((struct sockaddr_in *) &id->route.addr.dst_addr)->sin_port;
  308. ^
  309. In file included from c_src/rdma_drv.c:23:0:
  310. /usr/include/bits/string.h: At top level:
  311. /usr/include/bits/string.h:21:3: error: #error "Never use <bits/string.h> directly; include <string.h> instead."
  312. # error "Never use <bits/string.h> directly; include <string.h> instead."
  313. ^
  314. In file included from c_src/rdma_drv.c:26:0:
  315. c_src/rdma_drv_options.h:28:13: error: ‘INET6_ADDRSTRLEN’ undeclared here (not in a function)
  316. char ip[INET6_ADDRSTRLEN];
  317. ^
  318. c_src/rdma_drv_options.h:31:20: error: ‘NI_MAXHOST’ undeclared here (not in a function)
  319. char dest_host[NI_MAXHOST];
  320. ^
  321. c_src/rdma_drv_options.h:32:20: error: ‘NI_MAXSERV’ undeclared here (not in a function)
  322. char dest_port[NI_MAXSERV];
  323. ^
  324. c_src/rdma_drv.c: In function ‘rdma_drv_pause’:
  325. c_src/rdma_drv.c:120:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  326. driver_select(data->port, (ErlDrvEvent) data->ec->fd, ERL_DRV_READ, 0);
  327. ^
  328. c_src/rdma_drv.c:124:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  329. driver_select(data->port, (ErlDrvEvent) data->comp_channel->fd, ERL_DRV_READ, 0);
  330. ^
  331. c_src/rdma_drv.c: In function ‘rdma_drv_resume’:
  332. c_src/rdma_drv.c:133:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  333. driver_select(data->port, (ErlDrvEvent) data->ec->fd, ERL_DRV_READ, 1);
  334. ^
  335. c_src/rdma_drv.c:137:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  336. driver_select(data->port, (ErlDrvEvent) data->comp_channel->fd, ERL_DRV_READ, 1);
  337. ^
  338. c_src/rdma_drv.c: In function ‘rdma_drv_post_recv’:
  339. c_src/rdma_drv.c:211:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  340. sge.addr = (uintptr_t) buffer;
  341. ^
  342. c_src/rdma_drv.c: In function ‘rdma_drv_post_send’:
  343. c_src/rdma_drv.c:235:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  344. sge.addr = (uintptr_t) buffer;
  345. ^
  346. c_src/rdma_drv.c: In function ‘rdma_drv_init_ibverbs’:
  347. c_src/rdma_drv.c:267:5: warning: implicit declaration of function ‘fcntl’ [-Wimplicit-function-declaration]
  348. fcntl(data->comp_channel->fd, F_SETFL, fcntl(data->comp_channel->fd, F_GETFL) | O_NONBLOCK);
  349. ^
  350. c_src/rdma_drv.c: In function ‘rdma_drv_start’:
  351. c_src/rdma_drv.c:387:5: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
  352. memset(data, 0, sizeof(RdmaDrvData));
  353. ^
  354. c_src/rdma_drv.c:387:5: warning: incompatible implicit declaration of built-in function ‘memset’ [enabled by default]
  355. c_src/rdma_drv.c: In function ‘rdma_drv_send_fully’:
  356. c_src/rdma_drv.c:450:13: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
  357. memcpy(send_buffer, buf, send_amount);
  358. ^
  359. c_src/rdma_drv.c:450:13: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
  360. c_src/rdma_drv.c: In function ‘rdma_drv_handle_rdma_cm_event_connect_request’:
  361. c_src/rdma_drv.c:538:5: warning: incompatible implicit declaration of built-in function ‘memset’ [enabled by default]
  362. memset(new_data, 0, sizeof(RdmaDrvData));
  363. ^
  364. c_src/rdma_drv.c: In function ‘rdma_drv_handle_recv_complete’:
  365. c_src/rdma_drv.c:791:13: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
  366. memcpy(data->incomplete_recv + data->incomplete_recv_offset, recv_buffer, recv_amount);
  367. ^
  368. c_src/rdma_drv.c: In function ‘rdma_drv_ready_input’:
  369. c_src/rdma_drv.c:902:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  370. if (data->ec && event == (ErlDrvEvent) data->ec->fd) {
  371. ^
  372. c_src/rdma_drv.c:904:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  373. } else if (data->comp_channel && event == (ErlDrvEvent) data->comp_channel->fd) {
  374. ^
  375. c_src/rdma_drv.c: In function ‘rdma_drv_control_connect’:
  376. c_src/rdma_drv.c:940:5: warning: implicit declaration of function ‘getaddrinfo’ [-Wimplicit-function-declaration]
  377. ret = getaddrinfo(data->options.dest_host, data->options.dest_port, hints, &addr);
  378. ^
  379. c_src/rdma_drv.c:941:16: error: ‘EAI_SYSTEM’ undeclared (first use in this function)
  380. if (ret == EAI_SYSTEM) {
  381. ^
  382. c_src/rdma_drv.c:942:40: error: ‘errno’ undeclared (first use in this function)
  383. rdma_drv_encode_error_posix(x, errno);
  384. ^
  385. c_src/rdma_drv.c:967:12: error: variable ‘src_addr’ has initializer but incomplete type
  386. struct sockaddr_in src_addr = {};
  387. ^
  388. c_src/rdma_drv.c:967:24: error: storage size of ‘src_addr’ isn’t known
  389. struct sockaddr_in src_addr = {};
  390. ^
  391. c_src/rdma_drv.c:976:74: error: dereferencing pointer to incomplete type
  392. ret = rdma_resolve_addr(data->id, (struct sockaddr *) &src_addr, addr->ai_addr, data->options.timeout / 4);
  393. ^
  394. c_src/rdma_drv.c:982:5: warning: implicit declaration of function ‘freeaddrinfo’ [-Wimplicit-function-declaration]
  395. freeaddrinfo(addr);
  396. ^
  397. c_src/rdma_drv.c:967:24: warning: unused variable ‘src_addr’ [-Wunused-variable]
  398. struct sockaddr_in src_addr = {};
  399. ^
  400. c_src/rdma_drv.c: In function ‘rdma_drv_control_listen’:
  401. c_src/rdma_drv.c:1013:40: error: ‘errno’ undeclared (first use in this function)
  402. rdma_drv_encode_error_posix(x, errno);
  403. ^
  404. c_src/rdma_drv.c:1018:12: error: variable ‘addr’ has initializer but incomplete type
  405. struct sockaddr_in addr = {};
  406. ^
  407. c_src/rdma_drv.c:1018:24: error: storage size of ‘addr’ isn’t known
  408. struct sockaddr_in addr = {};
  409. ^
  410. c_src/rdma_drv.c:1018:24: warning: unused variable ‘addr’ [-Wunused-variable]
  411. c_src/rdma_drv.c: In function ‘rdma_drv_control_peername’:
  412. c_src/rdma_drv.c:1069:41: error: dereferencing pointer to incomplete type
  413. ei_x_encode_string(x, inet_ntoa(addr->sin_addr));
  414. ^
  415. c_src/rdma_drv.c:1069:5: error: type of formal parameter 1 is incomplete
  416. ei_x_encode_string(x, inet_ntoa(addr->sin_addr));
  417. ^
  418. c_src/rdma_drv.c: In function ‘rdma_drv_control_sockname’:
  419. c_src/rdma_drv.c:1079:41: error: dereferencing pointer to incomplete type
  420. ei_x_encode_string(x, inet_ntoa(addr->sin_addr));
  421. ^
  422. c_src/rdma_drv.c:1079:5: error: type of formal parameter 1 is incomplete
  423. ei_x_encode_string(x, inet_ntoa(addr->sin_addr));
  424. ^
  425. c_src/rdma_drv.c: In function ‘rdma_drv_control_disconnect’:
  426. c_src/rdma_drv.c:1137:44: error: ‘errno’ undeclared (first use in this function)
  427. rdma_drv_encode_error_posix(x, errno);
  428. ^
  429. c_src/rdma_drv.c: In function ‘ei_x_to_new_binary’:
  430. c_src/rdma_drv.c:1197:9: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
  431. memcpy(&bin->orig_bytes[0], x->buff, x->index);
  432. ^
  433. ERROR: compile failed while processing /home/ivan.uemlianin/rdma/rdma_dist-master: rebar_abort
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement