Skip to content

Instantly share code, notes, and snippets.

@llaisdy
Last active October 9, 2015 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save llaisdy/9c98fdc2ab94b4abb20a to your computer and use it in GitHub Desktop.
Save llaisdy/9c98fdc2ab94b4abb20a to your computer and use it in GitHub Desktop.
$ env CC=gcc ./rebar compile
==> rdma_dist-master (compile)
Compiling c_src/rdma_drv.c
In file included from c_src/rdma_drv.c:17:0:
/usr/include/arpa/inet.h:27:1: error: unknown type name ‘__socklen_t’
typedef __socklen_t socklen_t;
^
/usr/include/arpa/inet.h:35:1: error: unknown type name ‘in_addr_t’
extern in_addr_t inet_addr (__const char *__cp) __THROW;
^
/usr/include/arpa/inet.h:38:1: error: unknown type name ‘in_addr_t’
extern in_addr_t inet_lnaof (struct in_addr __in) __THROW;
^
/usr/include/arpa/inet.h:42:38: error: unknown type name ‘in_addr_t’
extern struct in_addr inet_makeaddr (in_addr_t __net, in_addr_t __host)
^
/usr/include/arpa/inet.h:42:55: error: unknown type name ‘in_addr_t’
extern struct in_addr inet_makeaddr (in_addr_t __net, in_addr_t __host)
^
/usr/include/arpa/inet.h:46:1: error: unknown type name ‘in_addr_t’
extern in_addr_t inet_netof (struct in_addr __in) __THROW;
^
/usr/include/arpa/inet.h:50:1: error: unknown type name ‘in_addr_t’
extern in_addr_t inet_network (__const char *__cp) __THROW;
^
/usr/include/arpa/inet.h:78:25: error: unknown type name ‘in_addr_t’
extern char *inet_neta (in_addr_t __net, char *__buf, size_t __len) __THROW;
^
/usr/include/arpa/inet.h:78:55: error: unknown type name ‘size_t’
extern char *inet_neta (in_addr_t __net, char *__buf, size_t __len) __THROW;
^
/usr/include/arpa/inet.h:84:21: error: unknown type name ‘size_t’
char *__buf, size_t __len) __THROW;
^
/usr/include/arpa/inet.h:90:19: error: unknown type name ‘size_t’
void *__buf, size_t __len) __THROW;
^
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,
from c_src/rdma_drv.c:18:
/usr/include/bits/stdio.h:21:3: error: #error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
# error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
^
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,
from c_src/rdma_drv.c:18:
/usr/include/bits/netdb.h:20:3: error: #error "Never include <bits/netdb.h> directly; use <netdb.h> instead."
# error "Never include <bits/netdb.h> directly; use <netdb.h> instead."
^
In file included from c_src/rdma_drv.c:18:0:
/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’
int ei_print_term(FILE *fp, const char* buf, int* index);
^
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,
from c_src/rdma_drv.c:19:
/usr/include/bits/stdlib.h:21:3: error: #error "Never include <bits/stdlib.h> directly; use <stdlib.h> instead."
# error "Never include <bits/stdlib.h> directly; use <stdlib.h> instead."
^
/usr/include/bits/stdlib.h:26:9: error: unknown type name ‘size_t’
size_t __resolvedlen) __THROW __wur;
^
/usr/include/bits/stdlib.h: In function ‘realpath’:
/usr/include/bits/stdlib.h:34:30: error: ‘size_t’ undeclared (first use in this function)
if (__bos (__resolved) != (size_t) -1)
^
/usr/include/bits/stdlib.h:34:30: note: each undeclared identifier is reported only once for each function it appears in
/usr/include/bits/stdlib.h:35:5: warning: implicit declaration of function ‘__realpath_chk’ [-Wimplicit-function-declaration]
return __realpath_chk (__name, __resolved, __bos (__resolved));
^
/usr/include/bits/stdlib.h:35:5: warning: return makes pointer from integer without a cast [enabled by default]
/usr/include/bits/stdlib.h: At top level:
/usr/include/bits/stdlib.h:41:52: error: unknown type name ‘size_t’
extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen,
^
/usr/include/bits/stdlib.h:42:8: error: unknown type name ‘size_t’
size_t __nreal) __THROW __nonnull ((2));
^
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,
from /usr/include/arpa/inet.h:22,
from c_src/rdma_drv.c:17:
/usr/include/bits/stdlib.h:44:13: error: unknown type name ‘size_t’
size_t __buflen), ptsname_r)
^
/usr/include/bits/stdlib.h:48:42: error: unknown type name ‘size_t’
__NTH (ptsname_r (int __fd, char *__buf, size_t __buflen))
^
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,
from c_src/rdma_drv.c:19:
/usr/include/bits/stdlib.h:57:37: error: unknown type name ‘wchar_t’
extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen)
^
/usr/include/bits/stdlib.h:57:54: error: unknown type name ‘size_t’
extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen)
^
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,
from /usr/include/arpa/inet.h:22,
from c_src/rdma_drv.c:17:
/usr/include/bits/stdlib.h:59:56: error: unknown type name ‘wchar_t’
extern int __REDIRECT_NTH (__wctomb_alias, (char *__s, wchar_t __wchar),
^
/usr/include/bits/stdlib.h:63:27: error: unknown type name ‘wchar_t’
__NTH (wctomb (char *__s, wchar_t __wchar))
^
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,
from c_src/rdma_drv.c:19:
/usr/include/bits/stdlib.h:78:1: error: unknown type name ‘size_t’
extern size_t __mbstowcs_chk (wchar_t *__restrict __dst,
^
/usr/include/bits/stdlib.h:78:31: error: unknown type name ‘wchar_t’
extern size_t __mbstowcs_chk (wchar_t *__restrict __dst,
^
/usr/include/bits/stdlib.h:80:10: error: unknown type name ‘size_t’
size_t __len, size_t __dstlen) __THROW;
^
/usr/include/bits/stdlib.h:80:24: error: unknown type name ‘size_t’
size_t __len, size_t __dstlen) __THROW;
^
/usr/include/bits/stdlib.h:81:1: error: unknown type name ‘size_t’
extern size_t __REDIRECT_NTH (__mbstowcs_alias,
^
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,
from /usr/include/arpa/inet.h:22,
from c_src/rdma_drv.c:17:
/usr/include/bits/stdlib.h:82:11: error: unknown type name ‘wchar_t’
(wchar_t *__restrict __dst,
^
/usr/include/bits/stdlib.h:84:11: error: unknown type name ‘size_t’
size_t __len), mbstowcs);
^
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,
from c_src/rdma_drv.c:19:
/usr/include/bits/stdlib.h:86:24: warning: type defaults to ‘int’ in declaration of ‘size_t’ [-Wimplicit-int]
extern __always_inline size_t
^
/usr/include/bits/stdlib.h:86:24: warning: variable ‘size_t’ declared ‘inline’ [enabled by default]
/usr/include/bits/stdlib.h:87:1: warning: ‘__nothrow__’ attribute ignored [-Wattributes]
__NTH (mbstowcs (wchar_t *__restrict __dst, __const char *__restrict __src,
^
/usr/include/bits/stdlib.h:87:1: warning: ‘__always_inline__’ attribute ignored [-Wattributes]
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,
from /usr/include/arpa/inet.h:22,
from c_src/rdma_drv.c:17:
/usr/include/bits/stdlib.h:87:8: error: expected ‘,’ or ‘;’ before ‘mbstowcs’
__NTH (mbstowcs (wchar_t *__restrict __dst, __const char *__restrict __src,
^
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,
from c_src/rdma_drv.c:19:
/usr/include/bits/stdlib.h:99:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__wcstombs_chk’
extern size_t __wcstombs_chk (char *__restrict __dst,
^
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,
from /usr/include/arpa/inet.h:22,
from c_src/rdma_drv.c:17:
/usr/include/bits/stdlib.h:102:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__wcstombs_alias’
extern size_t __REDIRECT_NTH (__wcstombs_alias,
^
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,
from c_src/rdma_drv.c:19:
/usr/include/bits/stdlib.h:107:24: warning: type defaults to ‘int’ in declaration of ‘size_t’ [-Wimplicit-int]
extern __always_inline size_t
^
/usr/include/bits/stdlib.h:107:24: warning: variable ‘size_t’ declared ‘inline’ [enabled by default]
/usr/include/bits/stdlib.h:108:1: warning: ‘__nothrow__’ attribute ignored [-Wattributes]
__NTH (wcstombs (char *__restrict __dst, __const wchar_t *__restrict __src,
^
/usr/include/bits/stdlib.h:108:1: warning: ‘__always_inline__’ attribute ignored [-Wattributes]
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,
from /usr/include/arpa/inet.h:22,
from c_src/rdma_drv.c:17:
/usr/include/bits/stdlib.h:108:8: error: expected ‘,’ or ‘;’ before ‘wcstombs’
__NTH (wcstombs (char *__restrict __dst, __const wchar_t *__restrict __src,
^
In file included from /usr/lib/syslinux/com32/include/stddef.h:12:0,
from /usr/lib/syslinux/com32/include/sys/types.h:9,
from /app/languages/erlang/17.1/wsm/gnu-4.8.0/lib/erlang/erts-6.1/include/erl_driver.h:88,
from c_src/rdma_drv.c:19:
/usr/lib/syslinux/com32/include/bitsize/stddef.h:12:22: error: ‘size_t’ redeclared as different kind of symbol
typedef unsigned int size_t;
^
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,
from c_src/rdma_drv.c:19:
/usr/include/bits/stdlib.h:107:24: note: previous declaration of ‘size_t’ was here
extern __always_inline size_t
^
In file included from c_src/rdma_drv.c:20:0:
/usr/include/bits/fcntl.h:21:3: error: #error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
^
In file included from c_src/rdma_drv.c:20:0:
/usr/include/bits/fcntl.h:160:5: error: unknown type name ‘__off_t’
__off_t l_start; /* Offset where the lock begins. */
^
/usr/include/bits/fcntl.h:161:5: error: unknown type name ‘__off_t’
__off_t l_len; /* Size of the locked area; zero means until EOF. */
^
/usr/include/bits/fcntl.h:166:5: error: unknown type name ‘__pid_t’
__pid_t l_pid; /* Process holding the lock. */
^
In file included from /usr/include/sys/socket.h:35:0,
from /usr/include/rdma/rdma_cma.h:38,
from c_src/rdma_drv.c:21:
/usr/include/bits/socket.h:165:5: error: unknown type name ‘__uint32_t’
__ss_aligntype __ss_align; /* Force desired alignment. */
^
/usr/include/bits/socket.h:166:23: error: ‘__uint32_t’ undeclared here (not in a function)
char __ss_padding[_SS_PADSIZE];
^
/usr/include/bits/socket.h:304:3: error: unknown type name ‘pid_t’
pid_t pid; /* PID of sending process. */
^
/usr/include/bits/socket.h:305:3: error: unknown type name ‘uid_t’
uid_t uid; /* UID of sending process. */
^
/usr/include/bits/socket.h:306:3: error: unknown type name ‘gid_t’
gid_t gid; /* GID of sending process. */
^
In file included from /usr/include/pthread.h:23:0,
from /usr/include/infiniband/verbs.h:40,
from /usr/include/rdma/rdma_cma.h:39,
from c_src/rdma_drv.c:21:
/usr/include/bits/endian.h:4:3: error: #error "Never use <bits/endian.h> directly; include <endian.h> instead."
# error "Never use <bits/endian.h> directly; include <endian.h> instead."
^
In file included from /usr/include/pthread.h:24:0,
from /usr/include/infiniband/verbs.h:40,
from /usr/include/rdma/rdma_cma.h:39,
from c_src/rdma_drv.c:21:
/usr/include/bits/sched.h:24:3: error: #error "Never include <bits/sched.h> directly; use <sched.h> instead."
# error "Never include <bits/sched.h> directly; use <sched.h> instead."
^
In file included from /usr/include/asm-x86_64/signal.h:6:0,
from /usr/include/asm/signal.h:5,
from /usr/include/linux/signal.h:4,
from /usr/include/pthread.h:28,
from /usr/include/infiniband/verbs.h:40,
from /usr/include/rdma/rdma_cma.h:39,
from c_src/rdma_drv.c:21:
/usr/include/linux/time.h:10:2: error: unknown type name ‘time_t’
time_t tv_sec; /* seconds */
^
/usr/include/linux/time.h:16:2: error: unknown type name ‘time_t’
time_t tv_sec; /* seconds */
^
/usr/include/linux/time.h:17:2: error: unknown type name ‘suseconds_t’
suseconds_t tv_usec; /* microseconds */
^
In file included from /usr/include/asm-x86_64/siginfo.h:6:0,
from /usr/include/asm/siginfo.h:5,
from /usr/include/linux/signal.h:5,
from /usr/include/pthread.h:28,
from /usr/include/infiniband/verbs.h:40,
from /usr/include/rdma/rdma_cma.h:39,
from c_src/rdma_drv.c:21:
/usr/include/asm-generic/siginfo.h:49:4: error: unknown type name ‘pid_t’
pid_t _pid; /* sender's pid */
^
/usr/include/asm-generic/siginfo.h:50:4: error: unknown type name ‘uid_t’
__ARCH_SI_UID_T _uid; /* sender's uid */
^
/usr/include/asm-generic/siginfo.h:55:4: error: unknown type name ‘timer_t’
timer_t _tid; /* timer id */
^
/usr/include/asm-generic/siginfo.h:57:22: error: ‘uid_t’ undeclared here (not in a function)
char _pad[sizeof( __ARCH_SI_UID_T) - sizeof(int)];
^
/usr/include/asm-generic/siginfo.h:64:4: error: unknown type name ‘pid_t’
pid_t _pid; /* sender's pid */
^
/usr/include/asm-generic/siginfo.h:65:4: error: expected specifier-qualifier-list before ‘uid_t’
__ARCH_SI_UID_T _uid; /* sender's uid */
^
/usr/include/asm-generic/siginfo.h:71:4: error: unknown type name ‘pid_t’
pid_t _pid; /* which child */
^
/usr/include/asm-generic/siginfo.h:72:4: error: expected specifier-qualifier-list before ‘uid_t’
__ARCH_SI_UID_T _uid; /* sender's uid */
^
In file included from /usr/include/infiniband/verbs.h:40:0,
from /usr/include/rdma/rdma_cma.h:39,
from c_src/rdma_drv.c:21:
/usr/include/pthread.h:986:11: error: unknown type name ‘__clockid_t’
__clockid_t *__restrict __clock_id)
^
/usr/include/pthread.h:991:11: error: unknown type name ‘__clockid_t’
__clockid_t __clock_id)
^
/usr/include/pthread.h:1086:7: error: unknown type name ‘__clockid_t’
__clockid_t *__clock_id)
^
In file included from c_src/rdma_drv.c:21:0:
/usr/include/rdma/rdma_cma.h:95:12: error: size of array ‘src_pad’ is too large
uint8_t src_pad[sizeof(struct sockaddr_storage) -
^
/usr/include/rdma/rdma_cma.h:98:12: error: size of array ‘dst_pad’ is too large
uint8_t dst_pad[sizeof(struct sockaddr_storage) -
^
/usr/include/rdma/rdma_cma.h: In function ‘rdma_get_src_port’:
/usr/include/rdma/rdma_cma.h:576:53: error: dereferencing pointer to incomplete type
((struct sockaddr_in6 *) &id->route.addr.src_addr)->sin6_port :
^
/usr/include/rdma/rdma_cma.h:577:52: error: dereferencing pointer to incomplete type
((struct sockaddr_in *) &id->route.addr.src_addr)->sin_port;
^
/usr/include/rdma/rdma_cma.h: In function ‘rdma_get_dst_port’:
/usr/include/rdma/rdma_cma.h:583:53: error: dereferencing pointer to incomplete type
((struct sockaddr_in6 *) &id->route.addr.dst_addr)->sin6_port :
^
/usr/include/rdma/rdma_cma.h:584:52: error: dereferencing pointer to incomplete type
((struct sockaddr_in *) &id->route.addr.dst_addr)->sin_port;
^
In file included from c_src/rdma_drv.c:23:0:
/usr/include/bits/string.h: At top level:
/usr/include/bits/string.h:21:3: error: #error "Never use <bits/string.h> directly; include <string.h> instead."
# error "Never use <bits/string.h> directly; include <string.h> instead."
^
In file included from c_src/rdma_drv.c:26:0:
c_src/rdma_drv_options.h:28:13: error: ‘INET6_ADDRSTRLEN’ undeclared here (not in a function)
char ip[INET6_ADDRSTRLEN];
^
c_src/rdma_drv_options.h:31:20: error: ‘NI_MAXHOST’ undeclared here (not in a function)
char dest_host[NI_MAXHOST];
^
c_src/rdma_drv_options.h:32:20: error: ‘NI_MAXSERV’ undeclared here (not in a function)
char dest_port[NI_MAXSERV];
^
c_src/rdma_drv.c: In function ‘rdma_drv_pause’:
c_src/rdma_drv.c:120:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
driver_select(data->port, (ErlDrvEvent) data->ec->fd, ERL_DRV_READ, 0);
^
c_src/rdma_drv.c:124:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
driver_select(data->port, (ErlDrvEvent) data->comp_channel->fd, ERL_DRV_READ, 0);
^
c_src/rdma_drv.c: In function ‘rdma_drv_resume’:
c_src/rdma_drv.c:133:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
driver_select(data->port, (ErlDrvEvent) data->ec->fd, ERL_DRV_READ, 1);
^
c_src/rdma_drv.c:137:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
driver_select(data->port, (ErlDrvEvent) data->comp_channel->fd, ERL_DRV_READ, 1);
^
c_src/rdma_drv.c: In function ‘rdma_drv_post_recv’:
c_src/rdma_drv.c:211:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
sge.addr = (uintptr_t) buffer;
^
c_src/rdma_drv.c: In function ‘rdma_drv_post_send’:
c_src/rdma_drv.c:235:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
sge.addr = (uintptr_t) buffer;
^
c_src/rdma_drv.c: In function ‘rdma_drv_init_ibverbs’:
c_src/rdma_drv.c:267:5: warning: implicit declaration of function ‘fcntl’ [-Wimplicit-function-declaration]
fcntl(data->comp_channel->fd, F_SETFL, fcntl(data->comp_channel->fd, F_GETFL) | O_NONBLOCK);
^
c_src/rdma_drv.c: In function ‘rdma_drv_start’:
c_src/rdma_drv.c:387:5: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
memset(data, 0, sizeof(RdmaDrvData));
^
c_src/rdma_drv.c:387:5: warning: incompatible implicit declaration of built-in function ‘memset’ [enabled by default]
c_src/rdma_drv.c: In function ‘rdma_drv_send_fully’:
c_src/rdma_drv.c:450:13: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
memcpy(send_buffer, buf, send_amount);
^
c_src/rdma_drv.c:450:13: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
c_src/rdma_drv.c: In function ‘rdma_drv_handle_rdma_cm_event_connect_request’:
c_src/rdma_drv.c:538:5: warning: incompatible implicit declaration of built-in function ‘memset’ [enabled by default]
memset(new_data, 0, sizeof(RdmaDrvData));
^
c_src/rdma_drv.c: In function ‘rdma_drv_handle_recv_complete’:
c_src/rdma_drv.c:791:13: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
memcpy(data->incomplete_recv + data->incomplete_recv_offset, recv_buffer, recv_amount);
^
c_src/rdma_drv.c: In function ‘rdma_drv_ready_input’:
c_src/rdma_drv.c:902:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if (data->ec && event == (ErlDrvEvent) data->ec->fd) {
^
c_src/rdma_drv.c:904:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
} else if (data->comp_channel && event == (ErlDrvEvent) data->comp_channel->fd) {
^
c_src/rdma_drv.c: In function ‘rdma_drv_control_connect’:
c_src/rdma_drv.c:940:5: warning: implicit declaration of function ‘getaddrinfo’ [-Wimplicit-function-declaration]
ret = getaddrinfo(data->options.dest_host, data->options.dest_port, hints, &addr);
^
c_src/rdma_drv.c:941:16: error: ‘EAI_SYSTEM’ undeclared (first use in this function)
if (ret == EAI_SYSTEM) {
^
c_src/rdma_drv.c:942:40: error: ‘errno’ undeclared (first use in this function)
rdma_drv_encode_error_posix(x, errno);
^
c_src/rdma_drv.c:967:12: error: variable ‘src_addr’ has initializer but incomplete type
struct sockaddr_in src_addr = {};
^
c_src/rdma_drv.c:967:24: error: storage size of ‘src_addr’ isn’t known
struct sockaddr_in src_addr = {};
^
c_src/rdma_drv.c:976:74: error: dereferencing pointer to incomplete type
ret = rdma_resolve_addr(data->id, (struct sockaddr *) &src_addr, addr->ai_addr, data->options.timeout / 4);
^
c_src/rdma_drv.c:982:5: warning: implicit declaration of function ‘freeaddrinfo’ [-Wimplicit-function-declaration]
freeaddrinfo(addr);
^
c_src/rdma_drv.c:967:24: warning: unused variable ‘src_addr’ [-Wunused-variable]
struct sockaddr_in src_addr = {};
^
c_src/rdma_drv.c: In function ‘rdma_drv_control_listen’:
c_src/rdma_drv.c:1013:40: error: ‘errno’ undeclared (first use in this function)
rdma_drv_encode_error_posix(x, errno);
^
c_src/rdma_drv.c:1018:12: error: variable ‘addr’ has initializer but incomplete type
struct sockaddr_in addr = {};
^
c_src/rdma_drv.c:1018:24: error: storage size of ‘addr’ isn’t known
struct sockaddr_in addr = {};
^
c_src/rdma_drv.c:1018:24: warning: unused variable ‘addr’ [-Wunused-variable]
c_src/rdma_drv.c: In function ‘rdma_drv_control_peername’:
c_src/rdma_drv.c:1069:41: error: dereferencing pointer to incomplete type
ei_x_encode_string(x, inet_ntoa(addr->sin_addr));
^
c_src/rdma_drv.c:1069:5: error: type of formal parameter 1 is incomplete
ei_x_encode_string(x, inet_ntoa(addr->sin_addr));
^
c_src/rdma_drv.c: In function ‘rdma_drv_control_sockname’:
c_src/rdma_drv.c:1079:41: error: dereferencing pointer to incomplete type
ei_x_encode_string(x, inet_ntoa(addr->sin_addr));
^
c_src/rdma_drv.c:1079:5: error: type of formal parameter 1 is incomplete
ei_x_encode_string(x, inet_ntoa(addr->sin_addr));
^
c_src/rdma_drv.c: In function ‘rdma_drv_control_disconnect’:
c_src/rdma_drv.c:1137:44: error: ‘errno’ undeclared (first use in this function)
rdma_drv_encode_error_posix(x, errno);
^
c_src/rdma_drv.c: In function ‘ei_x_to_new_binary’:
c_src/rdma_drv.c:1197:9: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
memcpy(&bin->orig_bytes[0], x->buff, x->index);
^
ERROR: compile failed while processing /home/ivan.uemlianin/rdma/rdma_dist-master: rebar_abort
{port_specs, [{"", "priv/rdma_drv.so", [
"c_src/rdma_drv.c",
"c_src/rdma_drv_buffers.c",
"c_src/rdma_drv_options.c"
], [{env, [
{"CFLAGS", "$CFLAGS -I/usr/include/bits/ -I/usr/lib/syslinux/com32/include/ -I/usr/include/lin
ux/"},
{"LDFLAGS", "$LDFLAGS -L/usr/lib64/ -lrdmacm -libverbs"}
]}]}]}.
{cover_enabled, true}.
{ct_log_dir, "test/logs"}.
{ct_extra_params, "+K true -proto_dist rdma"}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment