Fusion install on Ubuntu Issue

Status
Not open for further replies.

glennbtn

Member
Aug 7, 2018
61
1
8
53
Hi All

Usually use Debian but I know Mark is now a bit keen on Ubuntu 20 as still support iptables etc, so thought I would build one

The script for this installs the complied version of Freeswitch. I need to enable the module for snom

I have apt-get install freeswitch-mod-snom and enabled in modules.conf. When I try to as far as running make I just get the error below

making all mod_snom


make[4]: Entering directory '/usr/src/freeswitch/src/mod/applications/mod_snom'


CC mod_snom_la-mod_snom.lo


In file included from /usr/include/string.h:495,


from ../../../../src/include/switch.h:87,


from mod_snom.c:31:


In function ‘strncpy’,


inlined from ‘snom_command_api_function’ at mod_snom.c:146:3:


/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: __builtin_strncpy’ specified bound 32 equals destination size [-Werror=stringop-truncation]


106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));


| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


cc1: all warnings being treated as errors


make[4]: *** [Makefile:704: mod_snom_la-mod_snom.lo] Error 1


make[4]: Leaving directory '/usr/src/freeswitch/src/mod/applications/mod_snom'


make[3]: *** [Makefile:705: mod_snom-all] Error 1


make[3]: Leaving directory '/usr/src/freeswitch/src/mod'


make[2]: *** [Makefile:609: all-recursive] Error 1


make[2]: Leaving directory '/usr/src/freeswitch/src'


make[1]: *** [Makefile:3577: all-recursive] Error 1


make[1]: Leaving directory '/usr/src/freeswitch'


make: *** [Makefile:1292: all] Error 2


Anyone got any clues?

thanks
 

hfoster

Active Member
Jan 28, 2019
677
80
28
34
Well, it probably means whoever is building mod_snom normally isn't using GCC8 with warnings = errors on.

https://developers.redhat.com/blog/...gcc-8#forming_truncated_strings_with_snprintf

It might be a bug in the code, it might be intentional. GCC thinks it's sloppy, and possibly truncating important characters at the end. You could always report it upstream. Or you could disable checks like this by removing -Werror from the build.

Personally, I wouldn't recommend going off-piste with FreeSwitch. I'd stick to whatever target they build for, which at the moment is sadly only Debian.
 
Status
Not open for further replies.