[Freeswitch-users] Mod_sofia build error.

Brian West brian at freeswitch.org
Wed Dec 10 21:10:30 MSK 2014


Oh and file a JIRA! :P

On Wed, Dec 10, 2014 at 11:58 AM, Michael Jerris <mike at jerris.com> wrote:

> This could be related to bugs in gentoo headers related to sctp or due to
> issues in the autoconf detection for these.  We would be happy to take
> patches to correct this issue that don't break other distro/os if you can
> provide a patch.
>
>
> > On Dec 10, 2014, at 12:48 PM, Jacekalex <wampir990 at gmail.com> wrote:
> >
> >
> > Hi
> >
> > OS  Gentoo Linux x86_64
> > gcc (Gentoo Hardened 4.8.3 p1.1, pie-0.5.9) 4.8.3
> >
> > The previous system:
> > gcc (Gentoo Hardened 4.7.3-r1 p1.3, pie-0.5.5) 4.7.3
> >
> > Freeswitch versions - all 1.4.x
> >
> > Mod_sofia  - sofia-sip error:
> > ...
> > Making all in tport
> > mke[9]: Entering directory
> >
> '/home/fabryka/local/src/freeswitch/freeswitch481/libs/sofia-sip/libsofia-sip-ua/tport'
> >     LTake[8]: Entering directory
> >
> '/home/fabryka/local/src/freeswitch/freeswitch481/libs/sofia-sip/libsofia-sip-ua/tport'
> > make  all-am
> > maCOMPILE 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
> > Makefile:1452: recipe for target 'tport_type_sctp.lo' failed
> > make[9]: *** [tport_type_sctp.lo] Error 1
> > make[9]: Leaving directory
> >
> '/home/fabryka/local/src/freeswitch/freeswitch481/libs/sofia-sip/libsofia-sip-ua/tport'
> > Makefile:736: recipe for target 'all' failed
> > make[8]: *** [all] Error 2
> > make[8]: Leaving directory
> >
> '/home/fabryka/local/src/freeswitch/freeswitch481/libs/sofia-sip/libsofia-sip-ua/tport'
> > Makefile:547: recipe for target 'all-recursive' failed
> > make[7]: *** [all-recursive] Error 1
> > make[7]: Leaving directory
> >
> '/home/fabryka/local/src/freeswitch/freeswitch481/libs/sofia-sip/libsofia-sip-ua'
> > Makefile:490: recipe for target 'all-recursive' failed
> > make[6]: *** [all-recursive] Error 1
> > make[6]: Leaving directory
> > '/home/fabryka/local/src/freeswitch/freeswitch481/libs/sofia-sip'
> > Makefile:410: recipe for target 'all' failed
> > make[5]: *** [all] Error 2
> > make[5]: Leaving directory
> > '/home/fabryka/local/src/freeswitch/freeswitch481/libs/sofia-sip'
> > Makefile:906: recipe for target
> > '/usr/local/src/freeswitch/freeswitch481/libs/sofia-sip/libsofia-sip-ua/
> libsofia-sip-ua.la'
> > failed
> > make[4]: ***
> > [/usr/local/src/freeswitch/freeswitch481/libs/sofia-sip/libsofia-sip-ua/
> libsofia-sip-ua.la]
> > Error 2
> > make[4]: Leaving directory
> >
> '/home/fabryka/local/src/freeswitch/freeswitch481/src/mod/endpoints/mod_sofia'
> > Makefile:577: recipe for target 'mod_sofia-all' failed
> > make[3]: *** [mod_sofia-all] Error 1
> > make[3]: Leaving directory
> > '/home/fabryka/local/src/freeswitch/freeswitch481/src/mod'
> > Makefile:491: recipe for target 'all-recursive' failed
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory
> > '/home/fabryka/local/src/freeswitch/freeswitch481/src'
> > Makefile:2487: recipe for target 'all-recursive' failed
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory
> > '/home/fabryka/local/src/freeswitch/freeswitch481'
> > Makefile:969: recipe for target 'all' failed
> > make: *** [all] Error 2
> >
> >
> > Error amazes me because sofia-sip library  from  portage ebuild
> > installed without a problem:
> > qlist -UCvq sofia-sip
> > net-libs/sofia-sip-1.12.11 ssl static-libs
> > http://data.gpo.zugaina.org/gentoo/net-libs/sofia-sip/
> >
> >
> > The latest version of FreeSWITCH, I have been able to install without a
> > problem are:
> > FreeSWITCH version: 1.5.14b+git~20140725T212415Z~c411f8c7a9~64bit (git
> > c411f8c 2014-07-25 21:24:15Z 64bit)
> >
> >
> > Where can I find the source FreeSWITCH-1.5.x, or alternatively, how to
> > improve this error?
> >
> >
> > Cheers
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org




-- 

*Brian West*
brian at freeswitch.org


*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141210/151aca6c/attachment-0001.html 


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