[Freeswitch-users] Can't build 1.6 on Jessie w/ SCTP

Josh Jore jjore at marchex.com
Thu Oct 27 03:50:39 MSD 2016


Hi,

I just downloaded a fresh Jessie64 and failed building Freeswitch v1.6 with SCTP. Seems maybe SCTP just isn't supported right now or ...? Are there any configurations where this works?


$ vagrant init debian/jessie64
$ vagrant up

$ vagrant ssh

Follow https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie

...

$ git checkout v1.6 # https://freeswitch.org/stash/projects/FS/repos/freeswitch/commits/96eca8abb15ddf2b6d6cb48d19fa39ac064f607e

$ ./bootstrap.sh -j

$ ./configure --enable-sctp --prefix=...

...

Making all in tport
make[8]: Entering directory '/home/vagrant/freeswitch/libs/sofia-sip/libsofia-sip-ua/tport'
make  all-am
make[9]: Entering directory '/home/vagrant/freeswitch/libs/sofia-sip/libsofia-sip-ua/tport'
         LTCOMPILE tport.lo
         LTCOMPILE tport_logging.lo
         LTCOMPILE tport_stub_sigcomp.lo
         LTCOMPILE tport_type_udp.lo
         LTCOMPILE tport_type_tcp.lo
         LTCOMPILE tport_type_sctp.lo
tport_type_sctp.c: In function 'tport_sctp_init_socket':
tport_type_sctp.c:206:10: error: variable 'initmsg' has initializer but incomplete type
   struct sctp_initmsg initmsg = { 0 };
          ^
tport_type_sctp.c:206:10: error: excess elements in struct initializer [-Werror]
tport_type_sctp.c:206:10: error: (near initialization for 'initmsg') [-Werror]
tport_type_sctp.c:206:23: error: storage size of 'initmsg' isn't known
   struct sctp_initmsg initmsg = { 0 };
                       ^
tport_type_sctp.c:211:36: error: 'SCTP_INITMSG' undeclared (first use in this function)
   if (setsockopt(socket, SOL_SCTP, SCTP_INITMSG, &initmsg, sizeof initmsg) < 0)
                                    ^
tport_type_sctp.c:211:36: note: each undeclared identifier is reported only once for each function it appears in
tport_type_sctp.c:206:23: error: unused variable 'initmsg' [-Werror=unused-variable]
   struct sctp_initmsg initmsg = { 0 };
                       ^
cc1: all warnings being treated as errors

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20161026/137d3e16/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list