On tor, mar 31, 2016 at 08:00:14 -0700, Lorenzo Miniero wrote:
> Looks like sctp.c is not being built in your environment for some reason,
> not sure why. Try again with a clean build, just in case it was a
> misconfiguration issue.
>
> L.
>
I did that a couple of times with no luck. I've never done a lot of c so
I have a hard time understanding the compiler output. I've included the
output of autogen, configure and make and if anyone has the time to look
at them I'd be super happy.
oivvio
output of autogen.sh
====================
autoreconf: Entering directory `.'
autoreconf:
configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf:
configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf:
configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:11: installing './compile'
configure.ac:16: installing './config.guess'
configure.ac:16: installing './config.sub'
configure.ac:8: installing './install-sh'
configure.ac:8: installing './missing'
Makefile.am: installing './depcomp'
autoreconf: Leaving directory `.'
output of configure
===================
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for JANUS... yes
checking for nice_agent_set_port_range in -lnice... yes
checking for nice_address_equal_no_port in -lnice... no
configure: libnice version does not support TCP candidates
checking for dlopen in -ldl... yes
checking for srtp_init in -lsrtp... yes
checking for usrsctp_finish in -lusrsctp... yes
checking for LIBCURL... no
configure: libcurl not found. The TURN REST API client will not be built.
checking for doxygen... no
checking for dot... no
checking for gengetopt... yes
checking for TRANSPORTS... yes
checking for MHD... yes
checking for libwebsocket_create_context in -lwebsockets... yes
checking for amqp_error_string2 in -lrabbitmq... yes
checking for PLUGINS... yes
checking for OPUS... yes
checking for OGG... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating html/Makefile
config.status: creating docs/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
DataChannels support: yes
BoringSSL (no OpenSSL): no
Recordings post-processor: no
TURN REST API client: no
Doxygen documentation: no
Transports:
REST (HTTP/HTTPS): yes
WebSockets: yes (old API)
RabbitMQ: yes
Plugins:
Echo Test: yes
Streaming: yes
Video Call: yes
SIP Gateway: yes
Audio Bridge: yes
Video Room: yes
Voice Mail: yes
Record&Play: yes
If this configuration is ok for you, do a 'make' to start building Janus. A 'make install' will install Janus and its plugins to the specified prefix. Finally, a 'make configs' will install some sample configuration files too (something you'll only want to do the first time, though).
output of make
==============
gengetopt --set-package="janus" --set-version="0.1.0" < janus.ggo
make all-recursive
make[1]: Entering directory '/home/oivvio/opc/janus-gateway'
Making all in html
make[2]: Entering directory '/home/oivvio/opc/janus-gateway/html'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/oivvio/opc/janus-gateway/html'
make[2]: Entering directory '/home/oivvio/opc/janus-gateway'
CC plugins/plugins_libjanus_audiobridge_la-janus_audiobridge.lo
CCLD plugins/
libjanus_audiobridge.la
CC plugins/plugins_libjanus_echotest_la-janus_echotest.lo
CCLD plugins/
libjanus_echotest.la
CC plugins/plugins_libjanus_recordplay_la-janus_recordplay.lo
CCLD plugins/
libjanus_recordplay.la
CC plugins/plugins_libjanus_sip_la-janus_sip.lo
CCLD plugins/
libjanus_sip.la
CC plugins/plugins_libjanus_streaming_la-janus_streaming.lo
CCLD plugins/
libjanus_streaming.la
CC plugins/plugins_libjanus_videocall_la-janus_videocall.lo
CCLD plugins/
libjanus_videocall.la
CC plugins/plugins_libjanus_videoroom_la-janus_videoroom.lo
CCLD plugins/
libjanus_videoroom.la
CC plugins/plugins_libjanus_voicemail_la-janus_voicemail.lo
CCLD plugins/
libjanus_voicemail.la
CC transports/transports_libjanus_http_la-janus_http.lo
CCLD transports/
libjanus_http.la
CC transports/transports_libjanus_websockets_la-janus_websockets.lo
CCLD transports/
libjanus_websockets.la
CC transports/transports_libjanus_rabbitmq_la-janus_rabbitmq.lo
CCLD transports/
libjanus_rabbitmq.la
CC janus-apierror.o
CC janus-auth.o
CC janus-cmdline.o
cmdline.c: In function ‘cmdline_parser_internal’:
cmdline.c:634:7: warning: variable ‘check_required’ set but not used [-Wunused-but-set-variable]
int check_required;
^
CC janus-config.o
CC janus-dtls.o
CC janus-dtls-bio.o
CC janus-ice.o
CC janus-janus.o
CC janus-log.o
CC janus-record.o
CC janus-rtcp.o
CC janus-sctp.o
sctp.c:50:2: error: ‘SCTP_ASSOC_CHANGE’ undeclared here (not in a function)
SCTP_ASSOC_CHANGE,
^
sctp.c:51:2: error: ‘SCTP_PEER_ADDR_CHANGE’ undeclared here (not in a function)
SCTP_PEER_ADDR_CHANGE,
^
sctp.c:52:2: error: ‘SCTP_REMOTE_ERROR’ undeclared here (not in a function)
SCTP_REMOTE_ERROR,
^
sctp.c:53:2: error: ‘SCTP_SHUTDOWN_EVENT’ undeclared here (not in a function)
SCTP_SHUTDOWN_EVENT,
^
sctp.c:54:2: error: ‘SCTP_ADAPTATION_INDICATION’ undeclared here (not in a function)
SCTP_ADAPTATION_INDICATION,
^
sctp.c:55:2: error: ‘SCTP_SEND_FAILED_EVENT’ undeclared here (not in a function)
SCTP_SEND_FAILED_EVENT,
^
sctp.c:56:2: error: ‘SCTP_STREAM_RESET_EVENT’ undeclared here (not in a function)
SCTP_STREAM_RESET_EVENT,
^
sctp.c:57:2: error: ‘SCTP_STREAM_CHANGE_EVENT’ undeclared here (not in a function)
SCTP_STREAM_CHANGE_EVENT
^
sctp.c:61:120: warning: ‘struct sctp_rcvinfo’ declared inside parameter list
static int janus_sctp_incoming_data(struct socket *sock, union sctp_sockstore addr, void *data, size_t datalen, struct sctp_rcvinfo rcv, int flags, void *ulp_info);
^
sctp.c:61:120: warning: ‘union sctp_sockstore’ declared inside parameter list
sctp.c:81:56: warning: ‘struct sctp_assoc_change’ declared inside parameter list
void janus_sctp_handle_association_change_event(struct sctp_assoc_change *sac);
^
sctp.c:82:57: warning: ‘struct sctp_paddr_change’ declared inside parameter list
void janus_sctp_handle_peer_address_change_event(struct sctp_paddr_change *spc);
^
sctp.c:83:53: warning: ‘struct sctp_adaptation_event’ declared inside parameter list
void janus_sctp_handle_adaptation_indication(struct sctp_adaptation_event *sai);
^
sctp.c:84:46: warning: ‘struct sctp_shutdown_event’ declared inside parameter list
void janus_sctp_handle_shutdown_event(struct sctp_shutdown_event *sse);
^
sctp.c:85:80: warning: ‘struct sctp_stream_reset_event’ declared inside parameter list
void janus_sctp_handle_stream_reset_event(janus_sctp_association *sctp, struct sctp_stream_reset_event *strrst);
^
sctp.c:86:50: warning: ‘struct sctp_remote_error’ declared inside parameter list
void janus_sctp_handle_remote_error_event(struct sctp_remote_error *sre);
^
sctp.c:87:49: warning: ‘struct sctp_send_failed_event’ declared inside parameter list
void janus_sctp_handle_send_failed_event(struct sctp_send_failed_event *ssfe);
^
sctp.c:88:73: warning: ‘union sctp_notification’ declared inside parameter list
void janus_sctp_handle_notification(janus_sctp_association *sctp, union sctp_notification *notif, size_t n);
^
sctp.c: In function ‘janus_sctp_init’:
sctp.c:98:2: warning: implicit declaration of function ‘usrsctp_init’ [-Wimplicit-function-declaration]
usrsctp_init(0, janus_sctp_data_to_dtls, NULL);
^
sctp.c:98:2: warning: nested extern declaration of ‘usrsctp_init’ [-Wnested-externs]
sctp.c: In function ‘janus_sctp_deinit’:
sctp.c:111:2: warning: implicit declaration of function ‘usrsctp_finish’ [-Wimplicit-function-declaration]
usrsctp_finish();
^
sctp.c:111:2: warning: nested extern declaration of ‘usrsctp_finish’ [-Wnested-externs]
sctp.c: In function ‘janus_sctp_association_create’:
sctp.c:136:23: error: storage size of ‘sconn’ isn’t known
struct sockaddr_conn sconn;
^
sctp.c:145:24: error: ‘SCTP_PR_SCTP_NONE’ undeclared (first use in this function)
channel->pr_policy = SCTP_PR_SCTP_NONE;
^
sctp.c:145:24: note: each undeclared identifier is reported only once for each function it appears in
sctp.c:145:22: warning: assignment makes integer from pointer without a cast
channel->pr_policy = SCTP_PR_SCTP_NONE;
^
sctp.c:159:2: warning: implicit declaration of function ‘usrsctp_register_address’ [-Wimplicit-function-declaration]
usrsctp_register_address((void *)sctp);
^
sctp.c:159:2: warning: nested extern declaration of ‘usrsctp_register_address’ [-Wnested-externs]
sctp.c:160:2: warning: implicit declaration of function ‘usrsctp_sysctl_set_sctp_ecn_enable’ [-Wimplicit-function-declaration]
usrsctp_sysctl_set_sctp_ecn_enable(0);
^
sctp.c:160:2: warning: nested extern declaration of ‘usrsctp_sysctl_set_sctp_ecn_enable’ [-Wnested-externs]
sctp.c:161:2: warning: implicit declaration of function ‘usrsctp_socket’ [-Wimplicit-function-declaration]
if((sock = usrsctp_socket(AF_CONN, SOCK_STREAM, IPPROTO_SCTP, janus_sctp_incoming_data, NULL, 0, (void *)sctp)) == NULL) {
^
sctp.c:161:2: warning: nested extern declaration of ‘usrsctp_socket’ [-Wnested-externs]
sctp.c:161:28: error: ‘AF_CONN’ undeclared (first use in this function)
if((sock = usrsctp_socket(AF_CONN, SOCK_STREAM, IPPROTO_SCTP, janus_sctp_incoming_data, NULL, 0, (void *)sctp)) == NULL) {
^
sctp.c:161:11: warning: assignment makes pointer from integer without a cast
if((sock = usrsctp_socket(AF_CONN, SOCK_STREAM, IPPROTO_SCTP, janus_sctp_incoming_data, NULL, 0, (void *)sctp)) == NULL) {
^
sctp.c:171:2: warning: implicit declaration of function ‘usrsctp_setsockopt’ [-Wimplicit-function-declaration]
if(usrsctp_setsockopt(sock, SOL_SOCKET, SO_LINGER, &linger_opt, sizeof(linger_opt))) {
^
sctp.c:171:2: warning: nested extern declaration of ‘usrsctp_setsockopt’ [-Wnested-externs]
sctp.c:178:26: error: storage size of ‘av’ isn’t known
struct sctp_assoc_value av;
^
sctp.c:179:4: error: request for member ‘assoc_id’ in something not a structure or union
av.assoc_id = SCTP_ALL_ASSOC;
^
sctp.c:179:16: error: ‘SCTP_ALL_ASSOC’ undeclared (first use in this function)
av.assoc_id = SCTP_ALL_ASSOC;
^
sctp.c:179:2: warning: statement with no effect [-Wunused-value]
av.assoc_id = SCTP_ALL_ASSOC;
^
sctp.c:180:4: error: request for member ‘assoc_value’ in something not a structure or union
av.assoc_value = 1;
^
sctp.c:180:2: warning: statement with no effect [-Wunused-value]
av.assoc_value = 1;
^
sctp.c:181:44: error: ‘SCTP_ENABLE_STREAM_RESET’ undeclared (first use in this function)
if(usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_ENABLE_STREAM_RESET, &av, sizeof(struct sctp_assoc_value)) < 0) {
^
sctp.c:181:82: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_assoc_value’
if(usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_ENABLE_STREAM_RESET, &av, sizeof(struct sctp_assoc_value)) < 0) {
^
sctp.c:189:44: error: ‘SCTP_NODELAY’ undeclared (first use in this function)
if(usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_NODELAY, &nodelay, sizeof(nodelay))) {
^
sctp.c:196:20: error: storage size of ‘event’ isn’t known
struct sctp_event event;
^
sctp.c:197:20: warning: passing argument 3 of ‘memset’ makes integer from pointer without a cast
memset(&event, 0, sizeof(event));
^
In file included from sctp.h:41:0,
from sctp.c:35:
/usr/include/string.h:66:14: note: expected ‘size_t’ but argument is of type ‘uint16_t *’
extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
^
sctp.c:198:7: error: request for member ‘se_assoc_id’ in something not a structure or union
event.se_assoc_id = SCTP_ALL_ASSOC;
^
sctp.c:198:2: warning: statement with no effect [-Wunused-value]
event.se_assoc_id = SCTP_ALL_ASSOC;
^
sctp.c:199:7: error: request for member ‘se_on’ in something not a structure or union
event.se_on = 1;
^
sctp.c:199:2: warning: statement with no effect [-Wunused-value]
event.se_on = 1;
^
sctp.c:201:8: error: request for member ‘se_type’ in something not a structure or union
event.se_type = event_types[i];
^
sctp.c:201:3: warning: statement with no effect [-Wunused-value]
event.se_type = event_types[i];
^
sctp.c:202:45: error: ‘SCTP_EVENT’ undeclared (first use in this function)
if(usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_EVENT, &event, sizeof(event)) < 0) {
^
sctp.c:210:22: error: storage size of ‘initmsg’ isn’t known
struct sctp_initmsg initmsg;
^
sctp.c:211:29: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_initmsg’
memset(&initmsg, 0, sizeof(struct sctp_initmsg));
^
sctp.c:211:22: warning: passing argument 3 of ‘memset’ makes integer from pointer without a cast
memset(&initmsg, 0, sizeof(struct sctp_initmsg));
^
In file included from sctp.h:41:0,
from sctp.c:35:
/usr/include/string.h:66:14: note: expected ‘size_t’ but argument is of type ‘uint16_t *’
extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
^
sctp.c:212:9: error: request for member ‘sinit_num_ostreams’ in something not a structure or union
initmsg.sinit_num_ostreams = 16; /* What Firefox says in the INIT (Chrome says 1023) */
^
sctp.c:212:2: warning: statement with no effect [-Wunused-value]
initmsg.sinit_num_ostreams = 16; /* What Firefox says in the INIT (Chrome says 1023) */
^
sctp.c:213:9: error: request for member ‘sinit_max_instreams’ in something not a structure or union
initmsg.sinit_max_instreams = 2048; /* What both Chrome and Firefox say in the INIT */
^
sctp.c:213:2: warning: statement with no effect [-Wunused-value]
initmsg.sinit_max_instreams = 2048; /* What both Chrome and Firefox say in the INIT */
^
sctp.c:214:44: error: ‘SCTP_INITMSG’ undeclared (first use in this function)
if(usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_INITMSG, &initmsg, sizeof(struct sctp_initmsg)) < 0) {
^
sctp.c:214:75: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_initmsg’
if(usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_INITMSG, &initmsg, sizeof(struct sctp_initmsg)) < 0) {
^
sctp.c:221:27: error: invalid application of ‘sizeof’ to incomplete type ‘struct sockaddr_conn’
memset(&sconn, 0, sizeof(struct sockaddr_conn));
^
sctp.c:221:20: warning: passing argument 3 of ‘memset’ makes integer from pointer without a cast
memset(&sconn, 0, sizeof(struct sockaddr_conn));
^
In file included from sctp.h:41:0,
from sctp.c:35:
/usr/include/string.h:66:14: note: expected ‘size_t’ but argument is of type ‘uint16_t *’
extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
^
sctp.c:222:7: error: request for member ‘sconn_family’ in something not a structure or union
sconn.sconn_family = AF_CONN;
^
sctp.c:222:2: warning: statement with no effect [-Wunused-value]
sconn.sconn_family = AF_CONN;
^
sctp.c:223:7: error: request for member ‘sconn_port’ in something not a structure or union
sconn.sconn_port = htons(sctp->local_port);
^
sctp.c:223:2: warning: statement with no effect [-Wunused-value]
sconn.sconn_port = htons(sctp->local_port);
^
sctp.c:224:7: error: request for member ‘sconn_addr’ in something not a structure or union
sconn.sconn_addr = (void *)sctp;
^
sctp.c:224:2: warning: statement with no effect [-Wunused-value]
sconn.sconn_addr = (void *)sctp;
^
sctp.c:225:2: warning: implicit declaration of function ‘usrsctp_bind’ [-Wimplicit-function-declaration]
if(usrsctp_bind(sock, (struct sockaddr *)&sconn, sizeof(struct sockaddr_conn)) < 0) {
^
sctp.c:225:2: warning: nested extern declaration of ‘usrsctp_bind’ [-Wnested-externs]
sctp.c:225:58: error: invalid application of ‘sizeof’ to incomplete type ‘struct sockaddr_conn’
if(usrsctp_bind(sock, (struct sockaddr *)&sconn, sizeof(struct sockaddr_conn)) < 0) {
^
sctp.c:210:22: warning: unused variable ‘initmsg’ [-Wunused-variable]
struct sctp_initmsg initmsg;
^
sctp.c:196:20: warning: unused variable ‘event’ [-Wunused-variable]
struct sctp_event event;
^
sctp.c:178:26: warning: unused variable ‘av’ [-Wunused-variable]
struct sctp_assoc_value av;
^
sctp.c:136:23: warning: unused variable ‘sconn’ [-Wunused-variable]
struct sockaddr_conn sconn;
^
sctp.c: In function ‘janus_sctp_association_setup’:
sctp.c:262:23: error: storage size of ‘sconn’ isn’t known
struct sockaddr_conn sconn;
^
sctp.c:266:27: error: invalid application of ‘sizeof’ to incomplete type ‘struct sockaddr_conn’
memset(&sconn, 0, sizeof(struct sockaddr_conn));
^
sctp.c:266:20: warning: passing argument 3 of ‘memset’ makes integer from pointer without a cast
memset(&sconn, 0, sizeof(struct sockaddr_conn));
^
In file included from sctp.h:41:0,
from sctp.c:35:
/usr/include/string.h:66:14: note: expected ‘size_t’ but argument is of type ‘uint16_t *’
extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
^
sctp.c:267:7: error: request for member ‘sconn_family’ in something not a structure or union
sconn.sconn_family = AF_CONN;
^
sctp.c:267:23: error: ‘AF_CONN’ undeclared (first use in this function)
sconn.sconn_family = AF_CONN;
^
sctp.c:267:2: warning: statement with no effect [-Wunused-value]
sconn.sconn_family = AF_CONN;
^
sctp.c:268:7: error: request for member ‘sconn_port’ in something not a structure or union
sconn.sconn_port = htons(sctp->remote_port);
^
sctp.c:268:2: warning: statement with no effect [-Wunused-value]
sconn.sconn_port = htons(sctp->remote_port);
^
sctp.c:269:7: error: request for member ‘sconn_addr’ in something not a structure or union
sconn.sconn_addr = (void *)sctp;
^
sctp.c:269:2: warning: statement with no effect [-Wunused-value]
sconn.sconn_addr = (void *)sctp;
^
sctp.c:273:2: warning: implicit declaration of function ‘usrsctp_connect’ [-Wimplicit-function-declaration]
if(usrsctp_connect(sock, (struct sockaddr *)&sconn, sizeof(struct sockaddr_conn)) < 0) {
^
sctp.c:273:2: warning: nested extern declaration of ‘usrsctp_connect’ [-Wnested-externs]
sctp.c:273:61: error: invalid application of ‘sizeof’ to incomplete type ‘struct sockaddr_conn’
if(usrsctp_connect(sock, (struct sockaddr *)&sconn, sizeof(struct sockaddr_conn)) < 0) {
^
sctp.c:262:23: warning: unused variable ‘sconn’ [-Wunused-variable]
struct sockaddr_conn sconn;
^
sctp.c: In function ‘janus_sctp_association_destroy’:
sctp.c:289:2: warning: implicit declaration of function ‘usrsctp_deregister_address’ [-Wimplicit-function-declaration]
usrsctp_deregister_address(sctp);
^
sctp.c:289:2: warning: nested extern declaration of ‘usrsctp_deregister_address’ [-Wnested-externs]
sctp.c:290:2: warning: implicit declaration of function ‘usrsctp_shutdown’ [-Wimplicit-function-declaration]
usrsctp_shutdown(sctp->sock, SHUT_RDWR);
^
sctp.c:290:2: warning: nested extern declaration of ‘usrsctp_shutdown’ [-Wnested-externs]
sctp.c:291:2: warning: implicit declaration of function ‘usrsctp_close’ [-Wimplicit-function-declaration]
usrsctp_close(sctp->sock);
^
sctp.c:291:2: warning: nested extern declaration of ‘usrsctp_close’ [-Wnested-externs]
sctp.c: At top level:
sctp.c:320:120: warning: ‘struct sctp_rcvinfo’ declared inside parameter list
static int janus_sctp_incoming_data(struct socket *sock, union sctp_sockstore addr, void *data, size_t datalen, struct sctp_rcvinfo rcv, int flags, void *ulp_info) {
^
sctp.c:320:120: warning: ‘union sctp_sockstore’ declared inside parameter list
sctp.c:320:79: error: parameter 2 (‘addr’) has incomplete type
static int janus_sctp_incoming_data(struct socket *sock, union sctp_sockstore addr, void *data, size_t datalen, struct sctp_rcvinfo rcv, int flags, void *ulp_info) {
^
sctp.c:320:133: error: parameter 5 (‘rcv’) has incomplete type
static int janus_sctp_incoming_data(struct socket *sock, union sctp_sockstore addr, void *data, size_t datalen, struct sctp_rcvinfo rcv, int flags, void *ulp_info) {
^
sctp.c: In function ‘janus_sctp_incoming_data’:
sctp.c:326:41: warning: passing argument 2 of ‘janus_sctp_handle_notification’ from incompatible pointer type
janus_sctp_handle_notification(sctp, (union sctp_notification *)data, datalen);
^
sctp.c:88:6: note: expected ‘union sctp_notification *’ but argument is of type ‘union sctp_notification *’
void janus_sctp_handle_notification(janus_sctp_association *sctp, union sctp_notification *notif, size_t n);
^
In file included from sctp.h:33:0,
from sctp.c:35:
sctp.c:328:60: error: request for member ‘rcv_ppid’ in something not a structure or union
janus_sctp_handle_message(sctp, data, datalen, ntohl(rcv.rcv_ppid), rcv.rcv_sid);
^
sctp.c:328:57: warning: passing argument 1 of ‘__bswap_32’ makes integer from pointer without a cast
janus_sctp_handle_message(sctp, data, datalen, ntohl(rcv.rcv_ppid), rcv.rcv_sid);
^
In file included from /usr/include/endian.h:60:0,
from /usr/include/x86_64-linux-gnu/sys/types.h:216,
from sctp.h:30,
from sctp.c:35:
/usr/include/x86_64-linux-gnu/bits/byteswap.h:45:1: note: expected ‘unsigned int’ but argument is of type ‘uint16_t *’
__bswap_32 (unsigned int __bsx)
^
sctp.c:328:75: error: request for member ‘rcv_sid’ in something not a structure or union
janus_sctp_handle_message(sctp, data, datalen, ntohl(rcv.rcv_ppid), rcv.rcv_sid);
^
sctp.c:328:72: warning: passing argument 5 of ‘janus_sctp_handle_message’ makes integer from pointer without a cast
janus_sctp_handle_message(sctp, data, datalen, ntohl(rcv.rcv_ppid), rcv.rcv_sid);
^
sctp.c:80:6: note: expected ‘uint16_t’ but argument is of type ‘uint16_t *’
void janus_sctp_handle_message(janus_sctp_association *sctp, char *buffer, size_t length, uint32_t ppid, uint16_t stream);
^
sctp.c: In function ‘janus_sctp_find_free_stream’:
sctp.c:399:21: error: storage size of ‘status’ isn’t known
struct sctp_status status;
^
sctp.c:403:26: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_status’
len = (socklen_t)sizeof(struct sctp_status);
^
sctp.c:403:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
len = (socklen_t)sizeof(struct sctp_status);
^
sctp.c:404:2: warning: implicit declaration of function ‘usrsctp_getsockopt’ [-Wimplicit-function-declaration]
if(usrsctp_getsockopt(sctp->sock, IPPROTO_SCTP, SCTP_STATUS, &status, &len) < 0) {
^
sctp.c:404:2: warning: nested extern declaration of ‘usrsctp_getsockopt’ [-Wnested-externs]
sctp.c:404:50: error: ‘SCTP_STATUS’ undeclared (first use in this function)
if(usrsctp_getsockopt(sctp->sock, IPPROTO_SCTP, SCTP_STATUS, &status, &len) < 0) {
^
sctp.c:408:11: error: request for member ‘sstat_outstrms’ in something not a structure or union
if(status.sstat_outstrms < NUMBER_OF_STREAMS) {
^
sctp.c:408:27: warning: comparison between pointer and integer
if(status.sstat_outstrms < NUMBER_OF_STREAMS) {
^
sctp.c:409:17: error: request for member ‘sstat_outstrms’ in something not a structure or union
limit = status.sstat_outstrms;
^
sctp.c:409:9: warning: assignment makes integer from pointer without a cast
limit = status.sstat_outstrms;
^
sctp.c:399:21: warning: unused variable ‘status’ [-Wunused-variable]
struct sctp_status status;
^
sctp.c: In function ‘janus_sctp_request_more_streams’:
sctp.c:427:21: error: storage size of ‘status’ isn’t known
struct sctp_status status;
^
sctp.c:428:26: error: storage size of ‘sas’ isn’t known
struct sctp_add_streams sas;
^
sctp.c:439:26: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_status’
len = (socklen_t)sizeof(struct sctp_status);
^
sctp.c:439:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
len = (socklen_t)sizeof(struct sctp_status);
^
sctp.c:440:50: error: ‘SCTP_STATUS’ undeclared (first use in this function)
if(usrsctp_getsockopt(sctp->sock, IPPROTO_SCTP, SCTP_STATUS, &status, &len) < 0) {
^
sctp.c:444:11: error: request for member ‘sstat_outstrms’ in something not a structure or union
if(status.sstat_outstrms + streams_needed > NUMBER_OF_STREAMS) {
^
sctp.c:444:44: warning: comparison between pointer and integer
if(status.sstat_outstrms + streams_needed > NUMBER_OF_STREAMS) {
^
sctp.c:445:46: error: request for member ‘sstat_outstrms’ in something not a structure or union
streams_needed = NUMBER_OF_STREAMS - status.sstat_outstrms;
^
sctp.c:445:38: error: invalid operands to binary - (have ‘int’ and ‘uint16_t *’)
streams_needed = NUMBER_OF_STREAMS - status.sstat_outstrms;
^
sctp.c:445:18: warning: assignment makes integer from pointer without a cast
streams_needed = NUMBER_OF_STREAMS - status.sstat_outstrms;
^
sctp.c:450:25: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_add_streams’
memset(&sas, 0, sizeof(struct sctp_add_streams));
^
sctp.c:450:18: warning: passing argument 3 of ‘memset’ makes integer from pointer without a cast
memset(&sas, 0, sizeof(struct sctp_add_streams));
^
In file included from sctp.h:41:0,
from sctp.c:35:
/usr/include/string.h:66:14: note: expected ‘size_t’ but argument is of type ‘uint16_t *’
extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
^
sctp.c:451:5: error: request for member ‘sas_instrms’ in something not a structure or union
sas.sas_instrms = 0;
^
sctp.c:451:2: warning: statement with no effect [-Wunused-value]
sas.sas_instrms = 0;
^
sctp.c:452:5: error: request for member ‘sas_outstrms’ in something not a structure or union
sas.sas_outstrms = (uint16_t)streams_needed; /* XXX eror handling */
^
sctp.c:452:2: warning: statement with no effect [-Wunused-value]
sas.sas_outstrms = (uint16_t)streams_needed; /* XXX eror handling */
^
sctp.c:453:50: error: ‘SCTP_ADD_STREAMS’ undeclared (first use in this function)
if(usrsctp_setsockopt(sctp->sock, IPPROTO_SCTP, SCTP_ADD_STREAMS, &sas, (socklen_t)sizeof(struct sctp_add_streams)) < 0) {
^
sctp.c:453:92: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_add_streams’
if(usrsctp_setsockopt(sctp->sock, IPPROTO_SCTP, SCTP_ADD_STREAMS, &sas, (socklen_t)sizeof(struct sctp_add_streams)) < 0) {
^
sctp.c:453:74: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if(usrsctp_setsockopt(sctp->sock, IPPROTO_SCTP, SCTP_ADD_STREAMS, &sas, (socklen_t)sizeof(struct sctp_add_streams)) < 0) {
^
sctp.c:428:26: warning: unused variable ‘sas’ [-Wunused-variable]
struct sctp_add_streams sas;
^
sctp.c:427:21: warning: unused variable ‘status’ [-Wunused-variable]
struct sctp_status status;
^
sctp.c: In function ‘janus_sctp_send_open_request_message’:
sctp.c:462:22: error: storage size of ‘sndinfo’ isn’t known
struct sctp_sndinfo sndinfo;
^
sctp.c:473:8: error: ‘SCTP_PR_SCTP_NONE’ undeclared (first use in this function)
case SCTP_PR_SCTP_NONE:
^
sctp.c:477:8: error: ‘SCTP_PR_SCTP_TTL’ undeclared (first use in this function)
case SCTP_PR_SCTP_TTL:
^
sctp.c:481:8: error: ‘SCTP_PR_SCTP_RTX’ undeclared (first use in this function)
case SCTP_PR_SCTP_RTX:
^
sctp.c:492:29: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_sndinfo’
memset(&sndinfo, 0, sizeof(struct sctp_sndinfo));
^
sctp.c:492:22: warning: passing argument 3 of ‘memset’ makes integer from pointer without a cast
memset(&sndinfo, 0, sizeof(struct sctp_sndinfo));
^
In file included from sctp.h:41:0,
from sctp.c:35:
/usr/include/string.h:66:14: note: expected ‘size_t’ but argument is of type ‘uint16_t *’
extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
^
sctp.c:493:9: error: request for member ‘snd_sid’ in something not a structure or union
sndinfo.snd_sid = stream;
^
sctp.c:493:2: warning: statement with no effect [-Wunused-value]
sndinfo.snd_sid = stream;
^
sctp.c:494:9: error: request for member ‘snd_flags’ in something not a structure or union
sndinfo.snd_flags = SCTP_EOR;
^
sctp.c:494:22: error: ‘SCTP_EOR’ undeclared (first use in this function)
sndinfo.snd_flags = SCTP_EOR;
^
sctp.c:494:2: warning: statement with no effect [-Wunused-value]
sndinfo.snd_flags = SCTP_EOR;
^
sctp.c:495:9: error: request for member ‘snd_ppid’ in something not a structure or union
sndinfo.snd_ppid = htonl(DATA_CHANNEL_PPID_CONTROL);
^
sctp.c:495:2: warning: statement with no effect [-Wunused-value]
sndinfo.snd_ppid = htonl(DATA_CHANNEL_PPID_CONTROL);
^
sctp.c:497:2: warning: implicit declaration of function ‘usrsctp_sendv’ [-Wimplicit-function-declaration]
if(usrsctp_sendv(sock,
^
sctp.c:497:2: warning: nested extern declaration of ‘usrsctp_sendv’ [-Wnested-externs]
sctp.c:500:48: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_sndinfo’
&sndinfo, (socklen_t)sizeof(struct sctp_sndinfo),
^
sctp.c:500:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
&sndinfo, (socklen_t)sizeof(struct sctp_sndinfo),
^
sctp.c:501:20: error: ‘SCTP_SENDV_SNDINFO’ undeclared (first use in this function)
SCTP_SENDV_SNDINFO, 0) < 0) {
^
sctp.c:462:22: warning: unused variable ‘sndinfo’ [-Wunused-variable]
struct sctp_sndinfo sndinfo;
^
sctp.c: In function ‘janus_sctp_send_open_response_message’:
sctp.c:516:22: error: storage size of ‘sndinfo’ isn’t known
struct sctp_sndinfo sndinfo;
^
sctp.c:523:29: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_sndinfo’
memset(&sndinfo, 0, sizeof(struct sctp_sndinfo));
^
sctp.c:523:22: warning: passing argument 3 of ‘memset’ makes integer from pointer without a cast
memset(&sndinfo, 0, sizeof(struct sctp_sndinfo));
^
In file included from sctp.h:41:0,
from sctp.c:35:
/usr/include/string.h:66:14: note: expected ‘size_t’ but argument is of type ‘uint16_t *’
extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
^
sctp.c:524:9: error: request for member ‘snd_sid’ in something not a structure or union
sndinfo.snd_sid = stream;
^
sctp.c:524:2: warning: statement with no effect [-Wunused-value]
sndinfo.snd_sid = stream;
^
sctp.c:525:9: error: request for member ‘snd_flags’ in something not a structure or union
sndinfo.snd_flags = SCTP_EOR;
^
sctp.c:525:22: error: ‘SCTP_EOR’ undeclared (first use in this function)
sndinfo.snd_flags = SCTP_EOR;
^
sctp.c:525:2: warning: statement with no effect [-Wunused-value]
sndinfo.snd_flags = SCTP_EOR;
^
sctp.c:526:9: error: request for member ‘snd_ppid’ in something not a structure or union
sndinfo.snd_ppid = htonl(DATA_CHANNEL_PPID_CONTROL);
^
sctp.c:526:2: warning: statement with no effect [-Wunused-value]
sndinfo.snd_ppid = htonl(DATA_CHANNEL_PPID_CONTROL);
^
sctp.c:530:48: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_sndinfo’
&sndinfo, (socklen_t)sizeof(struct sctp_sndinfo),
^
sctp.c:530:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
&sndinfo, (socklen_t)sizeof(struct sctp_sndinfo),
^
sctp.c:531:20: error: ‘SCTP_SENDV_SNDINFO’ undeclared (first use in this function)
SCTP_SENDV_SNDINFO, 0) < 0) {
^
sctp.c:516:22: warning: unused variable ‘sndinfo’ [-Wunused-variable]
struct sctp_sndinfo sndinfo;
^
sctp.c: In function ‘janus_sctp_send_open_ack_message’:
sctp.c:542:22: error: storage size of ‘sndinfo’ isn’t known
struct sctp_sndinfo sndinfo;
^
sctp.c:546:29: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_sndinfo’
memset(&sndinfo, 0, sizeof(struct sctp_sndinfo));
^
sctp.c:546:22: warning: passing argument 3 of ‘memset’ makes integer from pointer without a cast
memset(&sndinfo, 0, sizeof(struct sctp_sndinfo));
^
In file included from sctp.h:41:0,
from sctp.c:35:
/usr/include/string.h:66:14: note: expected ‘size_t’ but argument is of type ‘uint16_t *’
extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
^
sctp.c:547:9: error: request for member ‘snd_sid’ in something not a structure or union
sndinfo.snd_sid = stream;
^
sctp.c:547:2: warning: statement with no effect [-Wunused-value]
sndinfo.snd_sid = stream;
^
sctp.c:548:9: error: request for member ‘snd_flags’ in something not a structure or union
sndinfo.snd_flags = SCTP_EOR;
^
sctp.c:548:22: error: ‘SCTP_EOR’ undeclared (first use in this function)
sndinfo.snd_flags = SCTP_EOR;
^
sctp.c:548:2: warning: statement with no effect [-Wunused-value]
sndinfo.snd_flags = SCTP_EOR;
^
sctp.c:549:9: error: request for member ‘snd_ppid’ in something not a structure or union
sndinfo.snd_ppid = htonl(DATA_CHANNEL_PPID_CONTROL);
^
sctp.c:549:2: warning: statement with no effect [-Wunused-value]
sndinfo.snd_ppid = htonl(DATA_CHANNEL_PPID_CONTROL);
^
sctp.c:553:48: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_sndinfo’
&sndinfo, (socklen_t)sizeof(struct sctp_sndinfo),
^
sctp.c:553:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
&sndinfo, (socklen_t)sizeof(struct sctp_sndinfo),
^
sctp.c:554:20: error: ‘SCTP_SENDV_SNDINFO’ undeclared (first use in this function)
SCTP_SENDV_SNDINFO, 0) < 0) {
^
sctp.c:542:22: warning: unused variable ‘sndinfo’ [-Wunused-variable]
struct sctp_sndinfo sndinfo;
^
sctp.c: In function ‘janus_sctp_open_channel’:
sctp.c:605:19: error: ‘SCTP_PR_SCTP_NONE’ undeclared (first use in this function)
if((pr_policy != SCTP_PR_SCTP_NONE) &&
^
sctp.c:605:16: warning: comparison between pointer and integer
if((pr_policy != SCTP_PR_SCTP_NONE) &&
^
sctp.c:606:18: error: ‘SCTP_PR_SCTP_TTL’ undeclared (first use in this function)
(pr_policy != SCTP_PR_SCTP_TTL) &&
^
sctp.c:606:15: warning: comparison between pointer and integer
(pr_policy != SCTP_PR_SCTP_TTL) &&
^
sctp.c:607:18: error: ‘SCTP_PR_SCTP_RTX’ undeclared (first use in this function)
(pr_policy != SCTP_PR_SCTP_RTX)) {
^
sctp.c:607:15: warning: comparison between pointer and integer
(pr_policy != SCTP_PR_SCTP_RTX)) {
^
sctp.c:611:16: warning: comparison between pointer and integer
if((pr_policy == SCTP_PR_SCTP_NONE) && (pr_value != 0)) {
^
sctp.c: In function ‘janus_sctp_send_text’:
sctp.c:652:24: error: storage size of ‘spa’ isn’t known
struct sctp_sendv_spa spa;
^
sctp.c:664:25: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_sendv_spa’
memset(&spa, 0, sizeof(struct sctp_sendv_spa));
^
sctp.c:664:18: warning: passing argument 3 of ‘memset’ makes integer from pointer without a cast
memset(&spa, 0, sizeof(struct sctp_sendv_spa));
^
In file included from sctp.h:41:0,
from sctp.c:35:
/usr/include/string.h:66:14: note: expected ‘size_t’ but argument is of type ‘uint16_t *’
extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
^
sctp.c:665:5: error: request for member ‘sendv_sndinfo’ in something not a structure or union
spa.sendv_sndinfo.snd_sid = channel->stream;
^
sctp.c:665:19: error: request for member ‘snd_sid’ in something not a structure or union
spa.sendv_sndinfo.snd_sid = channel->stream;
^
sctp.c:665:2: warning: statement with no effect [-Wunused-value]
spa.sendv_sndinfo.snd_sid = channel->stream;
^
sctp.c:667:6: error: request for member ‘sendv_sndinfo’ in something not a structure or union
spa.sendv_sndinfo.snd_flags = SCTP_EOR | SCTP_UNORDERED;
^
sctp.c:667:20: error: request for member ‘snd_flags’ in something not a structure or union
spa.sendv_sndinfo.snd_flags = SCTP_EOR | SCTP_UNORDERED;
^
sctp.c:667:33: error: ‘SCTP_EOR’ undeclared (first use in this function)
spa.sendv_sndinfo.snd_flags = SCTP_EOR | SCTP_UNORDERED;
^
sctp.c:667:44: error: ‘SCTP_UNORDERED’ undeclared (first use in this function)
spa.sendv_sndinfo.snd_flags = SCTP_EOR | SCTP_UNORDERED;
^
sctp.c:667:42: error: invalid operands to binary | (have ‘uint16_t *’ and ‘uint16_t *’)
spa.sendv_sndinfo.snd_flags = SCTP_EOR | SCTP_UNORDERED;
^
sctp.c:667:3: warning: statement with no effect [-Wunused-value]
spa.sendv_sndinfo.snd_flags = SCTP_EOR | SCTP_UNORDERED;
^
sctp.c:669:6: error: request for member ‘sendv_sndinfo’ in something not a structure or union
spa.sendv_sndinfo.snd_flags = SCTP_EOR;
^
sctp.c:669:20: error: request for member ‘snd_flags’ in something not a structure or union
spa.sendv_sndinfo.snd_flags = SCTP_EOR;
^
sctp.c:669:3: warning: statement with no effect [-Wunused-value]
spa.sendv_sndinfo.snd_flags = SCTP_EOR;
^
sctp.c:671:5: error: request for member ‘sendv_sndinfo’ in something not a structure or union
spa.sendv_sndinfo.snd_ppid = htonl(DATA_CHANNEL_PPID_DOMSTRING);
^
sctp.c:671:19: error: request for member ‘snd_ppid’ in something not a structure or union
spa.sendv_sndinfo.snd_ppid = htonl(DATA_CHANNEL_PPID_DOMSTRING);
^
sctp.c:671:2: warning: statement with no effect [-Wunused-value]
spa.sendv_sndinfo.snd_ppid = htonl(DATA_CHANNEL_PPID_DOMSTRING);
^
sctp.c:672:5: error: request for member ‘sendv_flags’ in something not a structure or union
spa.sendv_flags = SCTP_SEND_SNDINFO_VALID;
^
sctp.c:672:20: error: ‘SCTP_SEND_SNDINFO_VALID’ undeclared (first use in this function)
spa.sendv_flags = SCTP_SEND_SNDINFO_VALID;
^
sctp.c:672:2: warning: statement with no effect [-Wunused-value]
spa.sendv_flags = SCTP_SEND_SNDINFO_VALID;
^
sctp.c:673:28: error: ‘SCTP_PR_SCTP_TTL’ undeclared (first use in this function)
if((channel->pr_policy == SCTP_PR_SCTP_TTL) || (channel->pr_policy == SCTP_PR_SCTP_RTX)) {
^
sctp.c:673:25: warning: comparison between pointer and integer
if((channel->pr_policy == SCTP_PR_SCTP_TTL) || (channel->pr_policy == SCTP_PR_SCTP_RTX)) {
^
sctp.c:673:72: error: ‘SCTP_PR_SCTP_RTX’ undeclared (first use in this function)
if((channel->pr_policy == SCTP_PR_SCTP_TTL) || (channel->pr_policy == SCTP_PR_SCTP_RTX)) {
^
sctp.c:673:69: warning: comparison between pointer and integer
if((channel->pr_policy == SCTP_PR_SCTP_TTL) || (channel->pr_policy == SCTP_PR_SCTP_RTX)) {
^
sctp.c:674:6: error: request for member ‘sendv_prinfo’ in something not a structure or union
spa.sendv_prinfo.pr_policy = channel->pr_policy;
^
sctp.c:674:19: error: request for member ‘pr_policy’ in something not a structure or union
spa.sendv_prinfo.pr_policy = channel->pr_policy;
^
sctp.c:674:3: warning: statement with no effect [-Wunused-value]
spa.sendv_prinfo.pr_policy = channel->pr_policy;
^
sctp.c:675:6: error: request for member ‘sendv_prinfo’ in something not a structure or union
spa.sendv_prinfo.pr_value = channel->pr_value;
^
sctp.c:675:19: error: request for member ‘pr_value’ in something not a structure or union
spa.sendv_prinfo.pr_value = channel->pr_value;
^
sctp.c:675:3: warning: statement with no effect [-Wunused-value]
spa.sendv_prinfo.pr_value = channel->pr_value;
^
sctp.c:676:6: error: request for member ‘sendv_flags’ in something not a structure or union
spa.sendv_flags |= SCTP_SEND_PRINFO_VALID;
^
sctp.c:676:22: error: ‘SCTP_SEND_PRINFO_VALID’ undeclared (first use in this function)
spa.sendv_flags |= SCTP_SEND_PRINFO_VALID;
^
sctp.c:676:3: warning: statement with no effect [-Wunused-value]
spa.sendv_flags |= SCTP_SEND_PRINFO_VALID;
^
sctp.c:679:28: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_sendv_spa’
&spa, (socklen_t)sizeof(struct sctp_sendv_spa),
^
sctp.c:679:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
&spa, (socklen_t)sizeof(struct sctp_sendv_spa),
^
sctp.c:680:4: error: ‘SCTP_SENDV_SPA’ undeclared (first use in this function)
SCTP_SENDV_SPA, 0) < 0) {
^
sctp.c:652:24: warning: unused variable ‘spa’ [-Wunused-variable]
struct sctp_sendv_spa spa;
^
sctp.c: In function ‘janus_sctp_send_outgoing_stream_reset’:
sctp.c:708:15: error: ‘sctp_assoc_t’ undeclared (first use in this function)
len = sizeof(sctp_assoc_t) + (2 + sctp->stream_buffer_counter) * sizeof(uint16_t);
^
sctp.c:708:6: warning: assignment makes integer from pointer without a cast
len = sizeof(sctp_assoc_t) + (2 + sctp->stream_buffer_counter) * sizeof(uint16_t);
^
sctp.c:714:5: error: dereferencing pointer to incomplete type
srs->srs_flags = SCTP_STREAM_RESET_OUTGOING;
^
sctp.c:714:5: error: request for member ‘srs_flags’ in something not a structure or union
sctp.c:714:19: error: ‘SCTP_STREAM_RESET_OUTGOING’ undeclared (first use in this function)
srs->srs_flags = SCTP_STREAM_RESET_OUTGOING;
^
sctp.c:714:2: warning: statement with no effect [-Wunused-value]
srs->srs_flags = SCTP_STREAM_RESET_OUTGOING;
^
sctp.c:715:5: error: dereferencing pointer to incomplete type
srs->srs_number_streams = sctp->stream_buffer_counter;
^
sctp.c:715:5: error: request for member ‘srs_number_streams’ in something not a structure or union
sctp.c:715:2: warning: statement with no effect [-Wunused-value]
srs->srs_number_streams = sctp->stream_buffer_counter;
^
sctp.c:717:6: error: dereferencing pointer to incomplete type
srs->srs_stream_list[i] = sctp->stream_buffer[i];
^
sctp.c:717:6: error: request for member ‘srs_stream_list’ in something not a structure or union
sctp.c:719:50: error: ‘SCTP_RESET_STREAMS’ undeclared (first use in this function)
if(usrsctp_setsockopt(sctp->sock, IPPROTO_SCTP, SCTP_RESET_STREAMS, srs, (socklen_t)len) < 0) {
^
sctp.c:723:7: error: dereferencing pointer to incomplete type
srs->srs_stream_list[i] = 0;
^
sctp.c:723:7: error: request for member ‘srs_stream_list’ in something not a structure or union
sctp.c: In function ‘janus_sctp_handle_open_request_message’:
sctp.c:764:16: error: ‘SCTP_PR_SCTP_NONE’ undeclared (first use in this function)
pr_policy = SCTP_PR_SCTP_NONE;
^
sctp.c:764:14: warning: assignment makes integer from pointer without a cast
pr_policy = SCTP_PR_SCTP_NONE;
^
sctp.c:768:14: warning: assignment makes integer from pointer without a cast
pr_policy = SCTP_PR_SCTP_NONE;
^
sctp.c:772:16: error: ‘SCTP_PR_SCTP_TTL’ undeclared (first use in this function)
pr_policy = SCTP_PR_SCTP_TTL;
^
sctp.c:772:14: warning: assignment makes integer from pointer without a cast
pr_policy = SCTP_PR_SCTP_TTL;
^
sctp.c:776:14: warning: assignment makes integer from pointer without a cast
pr_policy = SCTP_PR_SCTP_TTL;
^
sctp.c:780:16: error: ‘SCTP_PR_SCTP_RTX’ undeclared (first use in this function)
pr_policy = SCTP_PR_SCTP_RTX;
^
sctp.c:780:14: warning: assignment makes integer from pointer without a cast
pr_policy = SCTP_PR_SCTP_RTX;
^
sctp.c:784:14: warning: assignment makes integer from pointer without a cast
pr_policy = SCTP_PR_SCTP_RTX;
^
sctp.c:788:14: warning: assignment makes integer from pointer without a cast
pr_policy = SCTP_PR_SCTP_NONE;
^
sctp.c: At top level:
sctp.c:975:56: warning: ‘struct sctp_assoc_change’ declared inside parameter list
void janus_sctp_handle_association_change_event(struct sctp_assoc_change *sac) {
^
sctp.c:975:6: error: conflicting types for ‘janus_sctp_handle_association_change_event’
void janus_sctp_handle_association_change_event(struct sctp_assoc_change *sac) {
^
sctp.c:81:6: note: previous declaration of ‘janus_sctp_handle_association_change_event’ was here
void janus_sctp_handle_association_change_event(struct sctp_assoc_change *sac);
^
sctp.c: In function ‘janus_sctp_handle_association_change_event’:
sctp.c:979:13: error: dereferencing pointer to incomplete type
switch (sac->sac_state) {
^
sctp.c:979:13: error: request for member ‘sac_state’ in something not a structure or union
sctp.c:979:10: error: switch quantity not an integer
switch (sac->sac_state) {
^
sctp.c:980:8: error: ‘SCTP_COMM_UP’ undeclared (first use in this function)
case SCTP_COMM_UP:
^
sctp.c:983:8: error: ‘SCTP_COMM_LOST’ undeclared (first use in this function)
case SCTP_COMM_LOST:
^
sctp.c:986:8: error: ‘SCTP_RESTART’ undeclared (first use in this function)
case SCTP_RESTART:
^
sctp.c:989:8: error: ‘SCTP_SHUTDOWN_COMP’ undeclared (first use in this function)
case SCTP_SHUTDOWN_COMP:
^
sctp.c:992:8: error: ‘SCTP_CANT_STR_ASSOC’ undeclared (first use in this function)
case SCTP_CANT_STR_ASSOC:
^
In file included from sctp.c:39:0:
sctp.c:1000:12: error: dereferencing pointer to incomplete type
sac->sac_inbound_streams, sac->sac_outbound_streams);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1000:12: error: request for member ‘sac_inbound_streams’ in something not a structure or union
sac->sac_inbound_streams, sac->sac_outbound_streams);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1000:38: error: dereferencing pointer to incomplete type
sac->sac_inbound_streams, sac->sac_outbound_streams);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1000:38: error: request for member ‘sac_outbound_streams’ in something not a structure or union
sac->sac_inbound_streams, sac->sac_outbound_streams);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
debug.h:94:11: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘uint16_t *’ [-Wformat=]
struct tm janustmresult; \
^
sctp.c:999:2: note: in expansion of macro ‘JANUS_LOG’
JANUS_LOG(LOG_VERB, ", streams (in/out) = (%u/%u)",
^
debug.h:94:11: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘uint16_t *’ [-Wformat=]
struct tm janustmresult; \
^
sctp.c:999:2: note: in expansion of macro ‘JANUS_LOG’
JANUS_LOG(LOG_VERB, ", streams (in/out) = (%u/%u)",
^
sctp.c:1001:9: error: dereferencing pointer to incomplete type
n = sac->sac_length - sizeof(struct sctp_assoc_change);
^
sctp.c:1001:9: error: request for member ‘sac_length’ in something not a structure or union
sctp.c:1001:31: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_assoc_change’
n = sac->sac_length - sizeof(struct sctp_assoc_change);
^
sctp.c:1002:10: error: dereferencing pointer to incomplete type
if(((sac->sac_state == SCTP_COMM_UP) ||
^
sctp.c:1002:10: error: request for member ‘sac_state’ in something not a structure or union
sctp.c:1003:11: error: dereferencing pointer to incomplete type
(sac->sac_state == SCTP_RESTART)) && (n > 0)) {
^
sctp.c:1003:11: error: request for member ‘sac_state’ in something not a structure or union
sctp.c:1006:15: error: dereferencing pointer to incomplete type
switch (sac->sac_info[i]) {
^
sctp.c:1006:15: error: request for member ‘sac_info’ in something not a structure or union
sctp.c:1007:10: error: ‘SCTP_ASSOC_SUPPORTS_PR’ undeclared (first use in this function)
case SCTP_ASSOC_SUPPORTS_PR:
^
sctp.c:1010:10: error: ‘SCTP_ASSOC_SUPPORTS_AUTH’ undeclared (first use in this function)
case SCTP_ASSOC_SUPPORTS_AUTH:
^
sctp.c:1013:10: error: ‘SCTP_ASSOC_SUPPORTS_ASCONF’ undeclared (first use in this function)
case SCTP_ASSOC_SUPPORTS_ASCONF:
^
sctp.c:1016:10: error: ‘SCTP_ASSOC_SUPPORTS_MULTIBUF’ undeclared (first use in this function)
case SCTP_ASSOC_SUPPORTS_MULTIBUF:
^
sctp.c:1019:10: error: ‘SCTP_ASSOC_SUPPORTS_RE_CONFIG’ undeclared (first use in this function)
case SCTP_ASSOC_SUPPORTS_RE_CONFIG:
^
In file included from sctp.c:39:0:
sctp.c:1023:49: error: dereferencing pointer to incomplete type
JANUS_LOG(LOG_VERB, " UNKNOWN(0x%02x)", sac->sac_info[i]);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1023:49: error: request for member ‘sac_info’ in something not a structure or union
JANUS_LOG(LOG_VERB, " UNKNOWN(0x%02x)", sac->sac_info[i]);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1027:17: error: dereferencing pointer to incomplete type
} else if(((sac->sac_state == SCTP_COMM_LOST) ||
^
sctp.c:1027:17: error: request for member ‘sac_state’ in something not a structure or union
sctp.c:1028:18: error: dereferencing pointer to incomplete type
(sac->sac_state == SCTP_CANT_STR_ASSOC)) && (n > 0)) {
^
sctp.c:1028:18: error: request for member ‘sac_state’ in something not a structure or union
In file included from sctp.c:39:0:
sctp.c:1031:38: error: dereferencing pointer to incomplete type
JANUS_LOG(LOG_VERB, " 0x%02x", sac->sac_info[i]);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1031:38: error: request for member ‘sac_info’ in something not a structure or union
JANUS_LOG(LOG_VERB, " 0x%02x", sac->sac_info[i]);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1035:9: error: dereferencing pointer to incomplete type
if((sac->sac_state == SCTP_CANT_STR_ASSOC) ||
^
sctp.c:1035:9: error: request for member ‘sac_state’ in something not a structure or union
sctp.c:1036:8: error: dereferencing pointer to incomplete type
(sac->sac_state == SCTP_SHUTDOWN_COMP) ||
^
sctp.c:1036:8: error: request for member ‘sac_state’ in something not a structure or union
sctp.c:1037:8: error: dereferencing pointer to incomplete type
(sac->sac_state == SCTP_COMM_LOST)) {
^
sctp.c:1037:8: error: request for member ‘sac_state’ in something not a structure or union
sctp.c: At top level:
sctp.c:1043:57: warning: ‘struct sctp_paddr_change’ declared inside parameter list
void janus_sctp_handle_peer_address_change_event(struct sctp_paddr_change *spc) {
^
sctp.c:1043:6: error: conflicting types for ‘janus_sctp_handle_peer_address_change_event’
void janus_sctp_handle_peer_address_change_event(struct sctp_paddr_change *spc) {
^
sctp.c:82:6: note: previous declaration of ‘janus_sctp_handle_peer_address_change_event’ was here
void janus_sctp_handle_peer_address_change_event(struct sctp_paddr_change *spc);
^
sctp.c: In function ‘janus_sctp_handle_peer_address_change_event’:
sctp.c:1049:13: error: dereferencing pointer to incomplete type
switch (spc->spc_aaddr.ss_family) {
^
sctp.c:1049:13: error: request for member ‘spc_aaddr’ in something not a structure or union
sctp.c:1049:24: error: request for member ‘ss_family’ in something not a structure or union
switch (spc->spc_aaddr.ss_family) {
^
sctp.c:1049:10: error: switch quantity not an integer
switch (spc->spc_aaddr.ss_family) {
^
sctp.c:1051:36: error: dereferencing pointer to incomplete type
sin = (struct sockaddr_in *)&spc->spc_aaddr;
^
sctp.c:1051:36: error: request for member ‘spc_aaddr’ in something not a structure or union
sctp.c:1055:38: error: dereferencing pointer to incomplete type
sin6 = (struct sockaddr_in6 *)&spc->spc_aaddr;
^
sctp.c:1055:38: error: request for member ‘spc_aaddr’ in something not a structure or union
sctp.c:1059:65: error: dereferencing pointer to incomplete type
snprintf(addr_buf, INET6_ADDRSTRLEN, "Unknown family %d", spc->spc_aaddr.ss_family);
^
sctp.c:1059:65: error: request for member ‘spc_aaddr’ in something not a structure or union
sctp.c:1059:76: error: request for member ‘ss_family’ in something not a structure or union
snprintf(addr_buf, INET6_ADDRSTRLEN, "Unknown family %d", spc->spc_aaddr.ss_family);
^
sctp.c:1059:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘uint16_t *’ [-Wformat=]
snprintf(addr_buf, INET6_ADDRSTRLEN, "Unknown family %d", spc->spc_aaddr.ss_family);
^
sctp.c:1059:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘uint16_t *’ [-Wformat=]
sctp.c:1064:13: error: dereferencing pointer to incomplete type
switch (spc->spc_state) {
^
sctp.c:1064:13: error: request for member ‘spc_state’ in something not a structure or union
sctp.c:1064:10: error: switch quantity not an integer
switch (spc->spc_state) {
^
sctp.c:1065:8: error: ‘SCTP_ADDR_AVAILABLE’ undeclared (first use in this function)
case SCTP_ADDR_AVAILABLE:
^
sctp.c:1068:8: error: ‘SCTP_ADDR_UNREACHABLE’ undeclared (first use in this function)
case SCTP_ADDR_UNREACHABLE:
^
sctp.c:1071:8: error: ‘SCTP_ADDR_REMOVED’ undeclared (first use in this function)
case SCTP_ADDR_REMOVED:
^
sctp.c:1074:8: error: ‘SCTP_ADDR_ADDED’ undeclared (first use in this function)
case SCTP_ADDR_ADDED:
^
sctp.c:1077:8: error: ‘SCTP_ADDR_MADE_PRIM’ undeclared (first use in this function)
case SCTP_ADDR_MADE_PRIM:
^
sctp.c:1080:8: error: ‘SCTP_ADDR_CONFIRMED’ undeclared (first use in this function)
case SCTP_ADDR_CONFIRMED:
^
In file included from sctp.c:39:0:
sctp.c:1087:49: error: dereferencing pointer to incomplete type
JANUS_LOG(LOG_VERB, " (error = 0x%08x).\n", spc->spc_error);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1087:49: error: request for member ‘spc_error’ in something not a structure or union
JANUS_LOG(LOG_VERB, " (error = 0x%08x).\n", spc->spc_error);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
debug.h:94:11: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘uint16_t *’ [-Wformat=]
struct tm janustmresult; \
^
sctp.c:1087:2: note: in expansion of macro ‘JANUS_LOG’
JANUS_LOG(LOG_VERB, " (error = 0x%08x).\n", spc->spc_error);
^
sctp.c: At top level:
sctp.c:1091:53: warning: ‘struct sctp_adaptation_event’ declared inside parameter list
void janus_sctp_handle_adaptation_indication(struct sctp_adaptation_event *sai) {
^
sctp.c:1091:6: error: conflicting types for ‘janus_sctp_handle_adaptation_indication’
void janus_sctp_handle_adaptation_indication(struct sctp_adaptation_event *sai) {
^
sctp.c:83:6: note: previous declaration of ‘janus_sctp_handle_adaptation_indication’ was here
void janus_sctp_handle_adaptation_indication(struct sctp_adaptation_event *sai);
^
In file included from sctp.c:39:0:
sctp.c: In function ‘janus_sctp_handle_adaptation_indication’:
sctp.c:1092:57: error: dereferencing pointer to incomplete type
JANUS_LOG(LOG_VERB, "Adaptation indication: %x.\n", sai-> sai_adaptation_ind);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1092:57: error: request for member ‘sai_adaptation_ind’ in something not a structure or union
JANUS_LOG(LOG_VERB, "Adaptation indication: %x.\n", sai-> sai_adaptation_ind);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
debug.h:94:11: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘uint16_t *’ [-Wformat=]
struct tm janustmresult; \
^
sctp.c:1092:2: note: in expansion of macro ‘JANUS_LOG’
JANUS_LOG(LOG_VERB, "Adaptation indication: %x.\n", sai-> sai_adaptation_ind);
^
sctp.c: At top level:
sctp.c:1096:46: warning: ‘struct sctp_shutdown_event’ declared inside parameter list
void janus_sctp_handle_shutdown_event(struct sctp_shutdown_event *sse) {
^
sctp.c:1096:6: error: conflicting types for ‘janus_sctp_handle_shutdown_event’
void janus_sctp_handle_shutdown_event(struct sctp_shutdown_event *sse) {
^
sctp.c:84:6: note: previous declaration of ‘janus_sctp_handle_shutdown_event’ was here
void janus_sctp_handle_shutdown_event(struct sctp_shutdown_event *sse);
^
sctp.c:1102:80: warning: ‘struct sctp_stream_reset_event’ declared inside parameter list
void janus_sctp_handle_stream_reset_event(janus_sctp_association *sctp, struct sctp_stream_reset_event *strrst) {
^
sctp.c:1102:6: error: conflicting types for ‘janus_sctp_handle_stream_reset_event’
void janus_sctp_handle_stream_reset_event(janus_sctp_association *sctp, struct sctp_stream_reset_event *strrst) {
^
sctp.c:85:6: note: previous declaration of ‘janus_sctp_handle_stream_reset_event’ was here
void janus_sctp_handle_stream_reset_event(janus_sctp_association *sctp, struct sctp_stream_reset_event *strrst);
^
sctp.c: In function ‘janus_sctp_handle_stream_reset_event’:
sctp.c:1106:13: error: dereferencing pointer to incomplete type
n = (strrst->strreset_length - sizeof(struct sctp_stream_reset_event)) / sizeof(uint16_t);
^
sctp.c:1106:13: error: request for member ‘strreset_length’ in something not a structure or union
sctp.c:1106:40: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_stream_reset_event’
n = (strrst->strreset_length - sizeof(struct sctp_stream_reset_event)) / sizeof(uint16_t);
^
In file included from sctp.c:39:0:
sctp.c:1107:93: error: dereferencing pointer to incomplete type
JANUS_LOG(LOG_VERB, "[%"SCNu64"] Stream reset event: flags = %x, ", sctp->handle_id, strrst->strreset_flags);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1107:93: error: request for member ‘strreset_flags’ in something not a structure or union
JANUS_LOG(LOG_VERB, "[%"SCNu64"] Stream reset event: flags = %x, ", sctp->handle_id, strrst->strreset_flags);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
debug.h:94:11: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 6 has type ‘uint16_t *’ [-Wformat=]
struct tm janustmresult; \
^
sctp.c:1107:2: note: in expansion of macro ‘JANUS_LOG’
JANUS_LOG(LOG_VERB, "[%"SCNu64"] Stream reset event: flags = %x, ", sctp->handle_id, strrst->strreset_flags);
^
sctp.c:1108:11: error: dereferencing pointer to incomplete type
if(strrst->strreset_flags & SCTP_STREAM_RESET_INCOMING_SSN) {
^
sctp.c:1108:11: error: request for member ‘strreset_flags’ in something not a structure or union
sctp.c:1108:30: error: ‘SCTP_STREAM_RESET_INCOMING_SSN’ undeclared (first use in this function)
if(strrst->strreset_flags & SCTP_STREAM_RESET_INCOMING_SSN) {
^
sctp.c:1108:28: error: invalid operands to binary & (have ‘uint16_t *’ and ‘uint16_t *’)
if(strrst->strreset_flags & SCTP_STREAM_RESET_INCOMING_SSN) {
^
sctp.c:1109:12: error: dereferencing pointer to incomplete type
if(strrst->strreset_flags & SCTP_STREAM_RESET_OUTGOING_SSN) {
^
sctp.c:1109:12: error: request for member ‘strreset_flags’ in something not a structure or union
sctp.c:1109:31: error: ‘SCTP_STREAM_RESET_OUTGOING_SSN’ undeclared (first use in this function)
if(strrst->strreset_flags & SCTP_STREAM_RESET_OUTGOING_SSN) {
^
sctp.c:1109:29: error: invalid operands to binary & (have ‘uint16_t *’ and ‘uint16_t *’)
if(strrst->strreset_flags & SCTP_STREAM_RESET_OUTGOING_SSN) {
^
sctp.c:1114:11: error: dereferencing pointer to incomplete type
if(strrst->strreset_flags & SCTP_STREAM_RESET_OUTGOING_SSN) {
^
sctp.c:1114:11: error: request for member ‘strreset_flags’ in something not a structure or union
sctp.c:1114:28: error: invalid operands to binary & (have ‘uint16_t *’ and ‘uint16_t *’)
if(strrst->strreset_flags & SCTP_STREAM_RESET_OUTGOING_SSN) {
^
In file included from sctp.c:39:0:
sctp.c:1122:35: error: dereferencing pointer to incomplete type
JANUS_LOG(LOG_VERB, "%d", strrst->strreset_stream_list[i]);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1122:35: error: request for member ‘strreset_stream_list’ in something not a structure or union
JANUS_LOG(LOG_VERB, "%d", strrst->strreset_stream_list[i]);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1125:13: error: dereferencing pointer to incomplete type
if(!(strrst->strreset_flags & SCTP_STREAM_RESET_DENIED) &&
^
sctp.c:1125:13: error: request for member ‘strreset_flags’ in something not a structure or union
sctp.c:1125:32: error: ‘SCTP_STREAM_RESET_DENIED’ undeclared (first use in this function)
if(!(strrst->strreset_flags & SCTP_STREAM_RESET_DENIED) &&
^
sctp.c:1125:30: error: invalid operands to binary & (have ‘uint16_t *’ and ‘uint16_t *’)
if(!(strrst->strreset_flags & SCTP_STREAM_RESET_DENIED) &&
^
sctp.c:1126:14: error: dereferencing pointer to incomplete type
!(strrst->strreset_flags & SCTP_STREAM_RESET_FAILED)) {
^
sctp.c:1126:14: error: request for member ‘strreset_flags’ in something not a structure or union
sctp.c:1126:33: error: ‘SCTP_STREAM_RESET_FAILED’ undeclared (first use in this function)
!(strrst->strreset_flags & SCTP_STREAM_RESET_FAILED)) {
^
sctp.c:1126:31: error: invalid operands to binary & (have ‘uint16_t *’ and ‘uint16_t *’)
!(strrst->strreset_flags & SCTP_STREAM_RESET_FAILED)) {
^
sctp.c:1128:13: error: dereferencing pointer to incomplete type
if(strrst->strreset_flags & SCTP_STREAM_RESET_INCOMING_SSN ||
^
sctp.c:1128:13: error: request for member ‘strreset_flags’ in something not a structure or union
sctp.c:1128:30: error: invalid operands to binary & (have ‘uint16_t *’ and ‘uint16_t *’)
if(strrst->strreset_flags & SCTP_STREAM_RESET_INCOMING_SSN ||
^
sctp.c:1129:12: error: dereferencing pointer to incomplete type
strrst->strreset_flags & SCTP_STREAM_RESET_OUTGOING_SSN) {
^
sctp.c:1129:12: error: request for member ‘strreset_flags’ in something not a structure or union
sctp.c:1129:29: error: invalid operands to binary & (have ‘uint16_t *’ and ‘uint16_t *’)
strrst->strreset_flags & SCTP_STREAM_RESET_OUTGOING_SSN) {
^
sctp.c:1130:61: error: dereferencing pointer to incomplete type
channel = janus_sctp_find_channel_by_stream(sctp, strrst->strreset_stream_list[i]);
^
sctp.c:1130:61: error: request for member ‘strreset_stream_list’ in something not a structure or union
sctp.c:1134:28: error: ‘SCTP_PR_SCTP_NONE’ undeclared (first use in this function)
channel->pr_policy = SCTP_PR_SCTP_NONE;
^
sctp.c:1134:26: warning: assignment makes integer from pointer without a cast
channel->pr_policy = SCTP_PR_SCTP_NONE;
^
sctp.c: At top level:
sctp.c:1154:50: warning: ‘struct sctp_remote_error’ declared inside parameter list
void janus_sctp_handle_remote_error_event(struct sctp_remote_error *sre) {
^
sctp.c:1154:6: error: conflicting types for ‘janus_sctp_handle_remote_error_event’
void janus_sctp_handle_remote_error_event(struct sctp_remote_error *sre) {
^
sctp.c:86:6: note: previous declaration of ‘janus_sctp_handle_remote_error_event’ was here
void janus_sctp_handle_remote_error_event(struct sctp_remote_error *sre);
^
sctp.c: In function ‘janus_sctp_handle_remote_error_event’:
sctp.c:1157:9: error: dereferencing pointer to incomplete type
n = sre->sre_length - sizeof(struct sctp_remote_error);
^
sctp.c:1157:9: error: request for member ‘sre_length’ in something not a structure or union
sctp.c:1157:31: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_remote_error’
n = sre->sre_length - sizeof(struct sctp_remote_error);
^
In file included from sctp.c:39:0:
sctp.c:1158:60: error: dereferencing pointer to incomplete type
JANUS_LOG(LOG_VERB, "Remote Error (error = 0x%04x): ", sre->sre_error);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1158:60: error: request for member ‘sre_error’ in something not a structure or union
JANUS_LOG(LOG_VERB, "Remote Error (error = 0x%04x): ", sre->sre_error);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
debug.h:94:11: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘uint16_t *’ [-Wformat=]
struct tm janustmresult; \
^
sctp.c:1158:2: note: in expansion of macro ‘JANUS_LOG’
JANUS_LOG(LOG_VERB, "Remote Error (error = 0x%04x): ", sre->sre_error);
^
sctp.c:1160:37: error: dereferencing pointer to incomplete type
JANUS_LOG(LOG_VERB, " 0x%02x", sre-> sre_data[i]);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1160:37: error: request for member ‘sre_data’ in something not a structure or union
JANUS_LOG(LOG_VERB, " 0x%02x", sre-> sre_data[i]);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c: At top level:
sctp.c:1166:49: warning: ‘struct sctp_send_failed_event’ declared inside parameter list
void janus_sctp_handle_send_failed_event(struct sctp_send_failed_event *ssfe) {
^
sctp.c:1166:6: error: conflicting types for ‘janus_sctp_handle_send_failed_event’
void janus_sctp_handle_send_failed_event(struct sctp_send_failed_event *ssfe) {
^
sctp.c:87:6: note: previous declaration of ‘janus_sctp_handle_send_failed_event’ was here
void janus_sctp_handle_send_failed_event(struct sctp_send_failed_event *ssfe);
^
sctp.c: In function ‘janus_sctp_handle_send_failed_event’:
sctp.c:1169:9: error: dereferencing pointer to incomplete type
if(ssfe->ssfe_flags & SCTP_DATA_UNSENT) {
^
sctp.c:1169:9: error: request for member ‘ssfe_flags’ in something not a structure or union
sctp.c:1169:24: error: ‘SCTP_DATA_UNSENT’ undeclared (first use in this function)
if(ssfe->ssfe_flags & SCTP_DATA_UNSENT) {
^
sctp.c:1169:22: error: invalid operands to binary & (have ‘uint16_t *’ and ‘uint16_t *’)
if(ssfe->ssfe_flags & SCTP_DATA_UNSENT) {
^
sctp.c:1172:9: error: dereferencing pointer to incomplete type
if(ssfe->ssfe_flags & SCTP_DATA_SENT) {
^
sctp.c:1172:9: error: request for member ‘ssfe_flags’ in something not a structure or union
sctp.c:1172:24: error: ‘SCTP_DATA_SENT’ undeclared (first use in this function)
if(ssfe->ssfe_flags & SCTP_DATA_SENT) {
^
sctp.c:1172:22: error: invalid operands to binary & (have ‘uint16_t *’ and ‘uint16_t *’)
if(ssfe->ssfe_flags & SCTP_DATA_SENT) {
^
sctp.c:1175:9: error: dereferencing pointer to incomplete type
if(ssfe->ssfe_flags & ~(SCTP_DATA_SENT | SCTP_DATA_UNSENT)) {
^
sctp.c:1175:9: error: request for member ‘ssfe_flags’ in something not a structure or union
sctp.c:1175:41: error: invalid operands to binary | (have ‘uint16_t *’ and ‘uint16_t *’)
if(ssfe->ssfe_flags & ~(SCTP_DATA_SENT | SCTP_DATA_UNSENT)) {
^
sctp.c:1175:24: error: wrong type argument to bit-complement
if(ssfe->ssfe_flags & ~(SCTP_DATA_SENT | SCTP_DATA_UNSENT)) {
^
sctp.c:1175:22: error: invalid operands to binary & (have ‘uint16_t *’ and ‘uint16_t *’)
if(ssfe->ssfe_flags & ~(SCTP_DATA_SENT | SCTP_DATA_UNSENT)) {
^
In file included from sctp.c:39:0:
sctp.c:1176:44: error: dereferencing pointer to incomplete type
JANUS_LOG(LOG_VERB, "(flags = %x) ", ssfe->ssfe_flags);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1176:44: error: request for member ‘ssfe_flags’ in something not a structure or union
JANUS_LOG(LOG_VERB, "(flags = %x) ", ssfe->ssfe_flags);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
debug.h:94:11: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘uint16_t *’ [-Wformat=]
struct tm janustmresult; \
^
sctp.c:1176:3: note: in expansion of macro ‘JANUS_LOG’
JANUS_LOG(LOG_VERB, "(flags = %x) ", ssfe->ssfe_flags);
^
In file included from sctp.h:33:0,
from sctp.c:35:
sctp.c:1179:19: error: dereferencing pointer to incomplete type
ntohl(ssfe->ssfe_info.snd_ppid), ssfe->ssfe_info.snd_sid,
^
sctp.c:1178:2: note: in expansion of macro ‘JANUS_LOG’
JANUS_LOG(LOG_VERB, "message with PPID = %d, SID = %d, flags: 0x%04x due to error = 0x%08x",
^
sctp.c:1179:19: error: request for member ‘ssfe_info’ in something not a structure or union
ntohl(ssfe->ssfe_info.snd_ppid), ssfe->ssfe_info.snd_sid,
^
sctp.c:1178:2: note: in expansion of macro ‘JANUS_LOG’
JANUS_LOG(LOG_VERB, "message with PPID = %d, SID = %d, flags: 0x%04x due to error = 0x%08x",
^
sctp.c:1179:30: error: request for member ‘snd_ppid’ in something not a structure or union
ntohl(ssfe->ssfe_info.snd_ppid), ssfe->ssfe_info.snd_sid,
^
sctp.c:1178:2: note: in expansion of macro ‘JANUS_LOG’
JANUS_LOG(LOG_VERB, "message with PPID = %d, SID = %d, flags: 0x%04x due to error = 0x%08x",
^
sctp.c:1179:15: warning: passing argument 1 of ‘__bswap_32’ makes integer from pointer without a cast
ntohl(ssfe->ssfe_info.snd_ppid), ssfe->ssfe_info.snd_sid,
^
sctp.c:1178:2: note: in expansion of macro ‘JANUS_LOG’
JANUS_LOG(LOG_VERB, "message with PPID = %d, SID = %d, flags: 0x%04x due to error = 0x%08x",
^
In file included from /usr/include/endian.h:60:0,
from /usr/include/x86_64-linux-gnu/sys/types.h:216,
from sctp.h:30,
from sctp.c:35:
/usr/include/x86_64-linux-gnu/bits/byteswap.h:45:1: note: expected ‘unsigned int’ but argument is of type ‘uint16_t *’
__bswap_32 (unsigned int __bsx)
^
In file included from sctp.c:39:0:
sctp.c:1179:46: error: dereferencing pointer to incomplete type
ntohl(ssfe->ssfe_info.snd_ppid), ssfe->ssfe_info.snd_sid,
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1179:46: error: request for member ‘ssfe_info’ in something not a structure or union
ntohl(ssfe->ssfe_info.snd_ppid), ssfe->ssfe_info.snd_sid,
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1179:57: error: request for member ‘snd_sid’ in something not a structure or union
ntohl(ssfe->ssfe_info.snd_ppid), ssfe->ssfe_info.snd_sid,
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1180:13: error: dereferencing pointer to incomplete type
ssfe->ssfe_info.snd_flags, ssfe->ssfe_error);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1180:13: error: request for member ‘ssfe_info’ in something not a structure or union
ssfe->ssfe_info.snd_flags, ssfe->ssfe_error);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1180:24: error: request for member ‘snd_flags’ in something not a structure or union
ssfe->ssfe_info.snd_flags, ssfe->ssfe_error);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1180:40: error: dereferencing pointer to incomplete type
ssfe->ssfe_info.snd_flags, ssfe->ssfe_error);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1180:40: error: request for member ‘ssfe_error’ in something not a structure or union
ssfe->ssfe_info.snd_flags, ssfe->ssfe_error);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
debug.h:94:11: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘uint16_t *’ [-Wformat=]
struct tm janustmresult; \
^
sctp.c:1178:2: note: in expansion of macro ‘JANUS_LOG’
JANUS_LOG(LOG_VERB, "message with PPID = %d, SID = %d, flags: 0x%04x due to error = 0x%08x",
^
debug.h:94:11: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 7 has type ‘uint16_t *’ [-Wformat=]
struct tm janustmresult; \
^
sctp.c:1178:2: note: in expansion of macro ‘JANUS_LOG’
JANUS_LOG(LOG_VERB, "message with PPID = %d, SID = %d, flags: 0x%04x due to error = 0x%08x",
^
debug.h:94:11: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 8 has type ‘uint16_t *’ [-Wformat=]
struct tm janustmresult; \
^
sctp.c:1178:2: note: in expansion of macro ‘JANUS_LOG’
JANUS_LOG(LOG_VERB, "message with PPID = %d, SID = %d, flags: 0x%04x due to error = 0x%08x",
^
sctp.c:1181:10: error: dereferencing pointer to incomplete type
n = ssfe->ssfe_length - sizeof(struct sctp_send_failed_event);
^
sctp.c:1181:10: error: request for member ‘ssfe_length’ in something not a structure or union
sctp.c:1181:33: error: invalid application of ‘sizeof’ to incomplete type ‘struct sctp_send_failed_event’
n = ssfe->ssfe_length - sizeof(struct sctp_send_failed_event);
^
In file included from sctp.c:39:0:
sctp.c:1183:38: error: dereferencing pointer to incomplete type
JANUS_LOG(LOG_VERB, " 0x%02x", ssfe->ssfe_data[i]);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c:1183:38: error: request for member ‘ssfe_data’ in something not a structure or union
JANUS_LOG(LOG_VERB, " 0x%02x", ssfe->ssfe_data[i]);
^
debug.h:108:6: note: in definition of macro ‘JANUS_LOG’
##__VA_ARGS__); \
^
sctp.c: At top level:
sctp.c:1189:73: warning: ‘union sctp_notification’ declared inside parameter list
void janus_sctp_handle_notification(janus_sctp_association *sctp, union sctp_notification *notif, size_t n) {
^
sctp.c:1189:6: error: conflicting types for ‘janus_sctp_handle_notification’
void janus_sctp_handle_notification(janus_sctp_association *sctp, union sctp_notification *notif, size_t n) {
^
sctp.c:88:6: note: previous declaration of ‘janus_sctp_handle_notification’ was here
void janus_sctp_handle_notification(janus_sctp_association *sctp, union sctp_notification *notif, size_t n);
^
sctp.c: In function ‘janus_sctp_handle_notification’:
sctp.c:1190:10: error: dereferencing pointer to incomplete type
if(notif->sn_header.sn_length != (uint32_t)n) {
^
sctp.c:1190:10: error: request for member ‘sn_header’ in something not a structure or union
sctp.c:1190:21: error: request for member ‘sn_length’ in something not a structure or union
if(notif->sn_header.sn_length != (uint32_t)n) {
^
sctp.c:1190:32: warning: comparison between pointer and integer
if(notif->sn_header.sn_length != (uint32_t)n) {
^
sctp.c:1193:15: error: dereferencing pointer to incomplete type
switch (notif->sn_header.sn_type) {
^
sctp.c:1193:15: error: request for member ‘sn_header’ in something not a structure or union
sctp.c:1193:26: error: request for member ‘sn_type’ in something not a structure or union
switch (notif->sn_header.sn_type) {
^
sctp.c:1193:10: error: switch quantity not an integer
switch (notif->sn_header.sn_type) {
^
sctp.c:1195:54: error: dereferencing pointer to incomplete type
janus_sctp_handle_association_change_event(&(notif->sn_assoc_change));
^
sctp.c:1195:54: error: request for member ‘sn_assoc_change’ in something not a structure or union
sctp.c:1195:47: warning: passing argument 1 of ‘janus_sctp_handle_association_change_event’ from incompatible pointer type
janus_sctp_handle_association_change_event(&(notif->sn_assoc_change));
^
sctp.c:975:6: note: expected ‘struct sctp_assoc_change *’ but argument is of type ‘uint16_t (*)[1]’
void janus_sctp_handle_association_change_event(struct sctp_assoc_change *sac) {
^
sctp.c:1198:55: error: dereferencing pointer to incomplete type
janus_sctp_handle_peer_address_change_event(&(notif->sn_paddr_change));
^
sctp.c:1198:55: error: request for member ‘sn_paddr_change’ in something not a structure or union
sctp.c:1198:48: warning: passing argument 1 of ‘janus_sctp_handle_peer_address_change_event’ from incompatible pointer type
janus_sctp_handle_peer_address_change_event(&(notif->sn_paddr_change));
^
sctp.c:1043:6: note: expected ‘struct sctp_paddr_change *’ but argument is of type ‘uint16_t (*)[1]’
void janus_sctp_handle_peer_address_change_event(struct sctp_paddr_change *spc) {
^
sctp.c:1201:48: error: dereferencing pointer to incomplete type
janus_sctp_handle_remote_error_event(&(notif->sn_remote_error));
^
sctp.c:1201:48: error: request for member ‘sn_remote_error’ in something not a structure or union
sctp.c:1201:41: warning: passing argument 1 of ‘janus_sctp_handle_remote_error_event’ from incompatible pointer type
janus_sctp_handle_remote_error_event(&(notif->sn_remote_error));
^
sctp.c:1154:6: note: expected ‘struct sctp_remote_error *’ but argument is of type ‘uint16_t (*)[1]’
void janus_sctp_handle_remote_error_event(struct sctp_remote_error *sre) {
^
sctp.c:1204:44: error: dereferencing pointer to incomplete type
janus_sctp_handle_shutdown_event(&(notif->sn_shutdown_event));
^
sctp.c:1204:44: error: request for member ‘sn_shutdown_event’ in something not a structure or union
sctp.c:1204:37: warning: passing argument 1 of ‘janus_sctp_handle_shutdown_event’ from incompatible pointer type
janus_sctp_handle_shutdown_event(&(notif->sn_shutdown_event));
^
sctp.c:1096:6: note: expected ‘struct sctp_shutdown_event *’ but argument is of type ‘uint16_t (*)[1]’
void janus_sctp_handle_shutdown_event(struct sctp_shutdown_event *sse) {
^
sctp.c:1207:51: error: dereferencing pointer to incomplete type
janus_sctp_handle_adaptation_indication(&(notif->sn_adaptation_event));
^
sctp.c:1207:51: error: request for member ‘sn_adaptation_event’ in something not a structure or union
sctp.c:1207:44: warning: passing argument 1 of ‘janus_sctp_handle_adaptation_indication’ from incompatible pointer type
janus_sctp_handle_adaptation_indication(&(notif->sn_adaptation_event));
^
sctp.c:1091:6: note: expected ‘struct sctp_adaptation_event *’ but argument is of type ‘uint16_t (*)[1]’
void janus_sctp_handle_adaptation_indication(struct sctp_adaptation_event *sai) {
^
sctp.c:1209:8: error: ‘SCTP_PARTIAL_DELIVERY_EVENT’ undeclared (first use in this function)
case SCTP_PARTIAL_DELIVERY_EVENT:
^
sctp.c:1211:8: error: ‘SCTP_AUTHENTICATION_EVENT’ undeclared (first use in this function)
case SCTP_AUTHENTICATION_EVENT:
^
sctp.c:1213:8: error: ‘SCTP_SENDER_DRY_EVENT’ undeclared (first use in this function)
case SCTP_SENDER_DRY_EVENT:
^
sctp.c:1215:8: error: ‘SCTP_NOTIFICATIONS_STOPPED_EVENT’ undeclared (first use in this function)
case SCTP_NOTIFICATIONS_STOPPED_EVENT:
^
sctp.c:1218:47: error: dereferencing pointer to incomplete type
janus_sctp_handle_send_failed_event(&(notif->sn_send_failed_event));
^
sctp.c:1218:47: error: request for member ‘sn_send_failed_event’ in something not a structure or union
sctp.c:1218:40: warning: passing argument 1 of ‘janus_sctp_handle_send_failed_event’ from incompatible pointer type
janus_sctp_handle_send_failed_event(&(notif->sn_send_failed_event));
^
sctp.c:1166:6: note: expected ‘struct sctp_send_failed_event *’ but argument is of type ‘uint16_t (*)[1]’
void janus_sctp_handle_send_failed_event(struct sctp_send_failed_event *ssfe) {
^
sctp.c:1221:54: error: dereferencing pointer to incomplete type
janus_sctp_handle_stream_reset_event(sctp, &(notif->sn_strreset_event));
^
sctp.c:1221:54: error: request for member ‘sn_strreset_event’ in something not a structure or union
sctp.c:1221:47: warning: passing argument 2 of ‘janus_sctp_handle_stream_reset_event’ from incompatible pointer type
janus_sctp_handle_stream_reset_event(sctp, &(notif->sn_strreset_event));
^
sctp.c:1102:6: note: expected ‘struct sctp_stream_reset_event *’ but argument is of type ‘uint16_t (*)[1]’
void janus_sctp_handle_stream_reset_event(janus_sctp_association *sctp, struct sctp_stream_reset_event *strrst) {
^
sctp.c:1226:8: error: ‘SCTP_ASSOC_RESET_EVENT’ undeclared (first use in this function)
case SCTP_ASSOC_RESET_EVENT:
^
sctp.c: In function ‘janus_sctp_thread’:
sctp.c:1294:4: warning: implicit declaration of function ‘usrsctp_conninput’ [-Wimplicit-function-declaration]
usrsctp_conninput((void *)sctp, message->buffer, message->length, 0);
^
sctp.c:1294:4: warning: nested extern declaration of ‘usrsctp_conninput’ [-Wnested-externs]
sctp.c: In function ‘janus_sctp_send_open_response_message’:
sctp.c:537:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
sctp.c: In function ‘janus_sctp_send_open_ack_message’:
sctp.c:560:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Makefile:1410: recipe for target 'janus-sctp.o' failed
make[2]: *** [janus-sctp.o] Error 1