[unable to compile freeswitch on debian 10]
Hi Users, I am unable to build freeswich on debain 10(buster) freeswitch version 1.10, here are the error i get. making all mod_http_cache make[4]: Entering directory '/usr/src/freeswitch/src/mod/applications/mod_http_cache' Making all in . make[5]: Entering directory '/usr/src/freeswitch/src/mod/applications/mod_http_cache' CC mod_http_cache_la-mod_http_cache.lo mod_http_cache.c: In function ‘cached_url_filename_create.isra.4’: mod_http_cache.c:988:2: error: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 256 [-Werror=stringop-truncation] strncpy(uuid_dir, uuid_str, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mod_http_cache.c:988:2: error: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 256 [-Werror=stringop-truncation] In function ‘parse_domain.constprop’, inlined from ‘url_cache_http_profile_find_by_fqdn.part.2.constprop’ at mod_http_cache.c:929:3: mod_http_cache.c:276:2: error: ‘strncpy’ specified bound 255 equals destination size [-Werror=stringop-truncation] strncpy(domain_buf, start, domain_buf_len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[5]: *** [Makefile:761: mod_http_cache_la-mod_http_cache.lo] Error 1 make[5]: Leaving directory '/usr/src/freeswitch/src/mod/applications/mod_http_cache' make[4]: *** [Makefile:801: all-recursive] Error 1 make[4]: Leaving directory '/usr/src/freeswitch/src/mod/applications/mod_http_cache' make[3]: *** [Makefile:704: mod_http_cache-all] Error 1 make[3]: Leaving directory '/usr/src/freeswitch/src/mod' make[2]: *** [Makefile:607: all-recursive] Error 1 make[2]: Leaving directory '/usr/src/freeswitch/src' make[1]: *** [Makefile:3736: all-recursive] Error 1 make[1]: Leaving directory '/usr/src/freeswitch' make: *** [Makefile:1445: all] Error 2 Regards Abbasi
Please search JIRA, if the issue isn't filed, file it please. Thanks, Brian On Thu, Aug 15, 2019 at 7:57 AM Bilal Abbasi <bilaln018@gmail.com> wrote:
Hi Users, I am unable to build freeswich on debain 10(buster) freeswitch version 1.10, here are the error i get.
making all mod_http_cache make[4]: Entering directory '/usr/src/freeswitch/src/mod/applications/mod_http_cache' Making all in . make[5]: Entering directory '/usr/src/freeswitch/src/mod/applications/mod_http_cache' CC mod_http_cache_la-mod_http_cache.lo mod_http_cache.c: In function ‘cached_url_filename_create.isra.4’: mod_http_cache.c:988:2: error: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 256 [-Werror=stringop-truncation] strncpy(uuid_dir, uuid_str, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mod_http_cache.c:988:2: error: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 256 [-Werror=stringop-truncation] In function ‘parse_domain.constprop’, inlined from ‘url_cache_http_profile_find_by_fqdn.part.2.constprop’ at mod_http_cache.c:929:3: mod_http_cache.c:276:2: error: ‘strncpy’ specified bound 255 equals destination size [-Werror=stringop-truncation] strncpy(domain_buf, start, domain_buf_len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[5]: *** [Makefile:761: mod_http_cache_la-mod_http_cache.lo] Error 1 make[5]: Leaving directory '/usr/src/freeswitch/src/mod/applications/mod_http_cache' make[4]: *** [Makefile:801: all-recursive] Error 1 make[4]: Leaving directory '/usr/src/freeswitch/src/mod/applications/mod_http_cache' make[3]: *** [Makefile:704: mod_http_cache-all] Error 1 make[3]: Leaving directory '/usr/src/freeswitch/src/mod' make[2]: *** [Makefile:607: all-recursive] Error 1 make[2]: Leaving directory '/usr/src/freeswitch/src' make[1]: *** [Makefile:3736: all-recursive] Error 1 make[1]: Leaving directory '/usr/src/freeswitch' make: *** [Makefile:1445: all] Error 2
Regards Abbasi _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Brian West | Co-founder and Developer Need Commercial support? email sales@freeswitch.com FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g> Email: brian@freeswitch.com Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/> [image: https://www.facebook.com/signalwireinc?src=email] <https://www.facebook.com/freeswitch> [image: https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
Its done On Thu, Aug 15, 2019 at 8:15 PM Brian West <brian@freeswitch.com> wrote:
Please search JIRA, if the issue isn't filed, file it please.
Thanks, Brian
On Thu, Aug 15, 2019 at 7:57 AM Bilal Abbasi <bilaln018@gmail.com> wrote:
Hi Users, I am unable to build freeswich on debain 10(buster) freeswitch version 1.10, here are the error i get.
making all mod_http_cache make[4]: Entering directory '/usr/src/freeswitch/src/mod/applications/mod_http_cache' Making all in . make[5]: Entering directory '/usr/src/freeswitch/src/mod/applications/mod_http_cache' CC mod_http_cache_la-mod_http_cache.lo mod_http_cache.c: In function ‘cached_url_filename_create.isra.4’: mod_http_cache.c:988:2: error: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 256 [-Werror=stringop-truncation] strncpy(uuid_dir, uuid_str, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mod_http_cache.c:988:2: error: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 256 [-Werror=stringop-truncation] In function ‘parse_domain.constprop’, inlined from ‘url_cache_http_profile_find_by_fqdn.part.2.constprop’ at mod_http_cache.c:929:3: mod_http_cache.c:276:2: error: ‘strncpy’ specified bound 255 equals destination size [-Werror=stringop-truncation] strncpy(domain_buf, start, domain_buf_len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[5]: *** [Makefile:761: mod_http_cache_la-mod_http_cache.lo] Error 1 make[5]: Leaving directory '/usr/src/freeswitch/src/mod/applications/mod_http_cache' make[4]: *** [Makefile:801: all-recursive] Error 1 make[4]: Leaving directory '/usr/src/freeswitch/src/mod/applications/mod_http_cache' make[3]: *** [Makefile:704: mod_http_cache-all] Error 1 make[3]: Leaving directory '/usr/src/freeswitch/src/mod' make[2]: *** [Makefile:607: all-recursive] Error 1 make[2]: Leaving directory '/usr/src/freeswitch/src' make[1]: *** [Makefile:3736: all-recursive] Error 1 make[1]: Leaving directory '/usr/src/freeswitch' make: *** [Makefile:1445: all] Error 2
Regards Abbasi _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
--
Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>
Email: brian@freeswitch.com
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/>
[image: https://www.facebook.com/signalwireinc?src=email] <https://www.facebook.com/freeswitch> [image: https://twitter.com/freeswitch] <https://twitter.com/freeswitch> _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
In a pinch you can probably add "-Wno-stringop-truncation" and "-Wno-format-truncation" to compile with GCC 8+ to get it done.
export CFLAGS='-Wno-format-truncation -Wno-stringop-truncation' export CXXFLAGS='-Wno-format-truncation -Wno-stringop-truncation'
On Wed, 21 Aug 2019 19:12:23 +0500 Bilal Abbasi <bilaln018@gmail.com> wrote:
Its done
On Thu, Aug 15, 2019 at 8:15 PM Brian West <brian@freeswitch.com> wrote:
Please search JIRA, if the issue isn't filed, file it please.
Thanks, Brian
On Thu, Aug 15, 2019 at 7:57 AM Bilal Abbasi <bilaln018@gmail.com> wrote:
Hi Users, I am unable to build freeswich on debain 10(buster) freeswitch version 1.10, here are the error i get.
making all mod_http_cache make[4]: Entering directory '/usr/src/freeswitch/src/mod/applications/mod_http_cache' Making all in . make[5]: Entering directory '/usr/src/freeswitch/src/mod/applications/mod_http_cache' CC mod_http_cache_la-mod_http_cache.lo mod_http_cache.c: In function ‘cached_url_filename_create.isra.4’: mod_http_cache.c:988:2: error: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 256 [-Werror=stringop-truncation] strncpy(uuid_dir, uuid_str, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mod_http_cache.c:988:2: error: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 256 [-Werror=stringop-truncation] In function ‘parse_domain.constprop’, inlined from ‘url_cache_http_profile_find_by_fqdn.part.2.constprop’ at mod_http_cache.c:929:3: mod_http_cache.c:276:2: error: ‘strncpy’ specified bound 255 equals destination size [-Werror=stringop-truncation] strncpy(domain_buf, start, domain_buf_len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[5]: *** [Makefile:761: mod_http_cache_la-mod_http_cache.lo] Error 1 make[5]: Leaving directory '/usr/src/freeswitch/src/mod/applications/mod_http_cache' make[4]: *** [Makefile:801: all-recursive] Error 1 make[4]: Leaving directory '/usr/src/freeswitch/src/mod/applications/mod_http_cache' make[3]: *** [Makefile:704: mod_http_cache-all] Error 1 make[3]: Leaving directory '/usr/src/freeswitch/src/mod' make[2]: *** [Makefile:607: all-recursive] Error 1 make[2]: Leaving directory '/usr/src/freeswitch/src' make[1]: *** [Makefile:3736: all-recursive] Error 1 make[1]: Leaving directory '/usr/src/freeswitch' make: *** [Makefile:1445: all] Error 2
Regards Abbasi _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
--
Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>
Email: brian@freeswitch.com
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/>
[image: https://www.facebook.com/signalwireinc?src=email] <https://www.facebook.com/freeswitch> [image: https://twitter.com/freeswitch] <https://twitter.com/freeswitch> _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
participants (3)
-
Andrew Siplas
-
Bilal Abbasi
-
Brian West