Today I was trying to compile v1.8 branch using Debian 10 but I'm getting this error on the make process:
/usr/src/freeswitch$ make
config.status: creating Makefile
config.status: creating include/apr.h
config.status: creating build/
apr_rules.mkconfig.status: creating build/pkg/pkginfo
config.status: creating apr-1-config
config.status: WARNING: '
apr-config.in' seems to ignore the --datarootdir setting
config.status: creating apr.pc
config.status: creating test/Makefile
config.status: creating test/internal/Makefile
config.status: creating include/arch/unix/apr_private.h
config.status: executing libtool commands
rm: cannot remove 'libtoolT': No such file or directory
config.status: executing default commands
config.status: include/apr.h is unchanged
config.status: include/arch/unix/apr_private.h is unchanged
make[1]: Entering directory '/usr/src/freeswitch/libs/apr'
make[2]: Entering directory '/usr/src/freeswitch/libs/apr'
make[2]: Nothing to be done for 'local-all'.
make[2]: Leaving directory '/usr/src/freeswitch/libs/apr'
make[1]: Leaving directory '/usr/src/freeswitch/libs/apr'
make[1]: Entering directory '/usr/src/freeswitch/libs/apr-util'
Making all in xml/expat
make[2]: Entering directory '/usr/src/freeswitch/libs/apr-util/xml/expat'
make[3]: Entering directory '/usr/src/freeswitch/libs/apr-util/xml/expat/lib'
/bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H -DPACKAGE='"expat"' -DVERSION='"expat_1.95.2"' -I. -I.. -I/usr/src/freeswitch/libs/apr-util/xml/expat/lib -g -O2 -c xmlparse.c
libtool: compile: gcc -DHAVE_CONFIG_H -DPACKAGE=\"expat\" -DVERSION=\"expat_1.95.2\" -I. -I.. -I/usr/src/freeswitch/libs/apr-util/xml/expat/lib -g -O2 -c xmlparse.c -fPIC -DPIC -o xmlparse.o
/bin/bash ../libtool --mode=link gcc -version-info 1:0:1 -g -O2 -o
libexpat.la -rpath /usr/local/freeswitch/lib xmlparse.lo xmltok.lo xmlrole.lo
libtool: link: rm -fr .libs/libexpat.a .libs/
libexpat.la .libs/libexpat.lai
libtool: link: ar cru .libs/libexpat.a xmlparse.o xmltok.o xmlrole.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib .libs/libexpat.a
libtool: link: ( cd ".libs" && rm -f "
libexpat.la" && ln -s "../
libexpat.la" "
libexpat.la" )
make[3]: Leaving directory '/usr/src/freeswitch/libs/apr-util/xml/expat/lib'
make[2]: Leaving directory '/usr/src/freeswitch/libs/apr-util/xml/expat'
make[2]: Entering directory '/usr/src/freeswitch/libs/apr-util'
make[2]: Nothing to be done for 'local-all'.
make[2]: Leaving directory '/usr/src/freeswitch/libs/apr-util'
make[1]: Leaving directory '/usr/src/freeswitch/libs/apr-util'
touch /usr/src/freeswitch/src/include/switch.h
make[1]: Entering directory '/usr/src/freeswitch/libs/srtp'
make[1]: Leaving directory '/usr/src/freeswitch/libs/srtp'
make all-recursive
make[1]: Entering directory '/usr/src/freeswitch'
CC src/libfreeswitch_la-switch_apr.lo
CC src/libfreeswitch_la-switch_buffer.lo
CC src/libfreeswitch_la-switch_caller.lo
CC src/libfreeswitch_la-switch_channel.lo
CC src/libfreeswitch_la-switch_console.lo
CC src/libfreeswitch_la-switch_mprintf.lo
CC src/libfreeswitch_la-switch_core_media_bug.lo
CC src/libfreeswitch_la-switch_core_timer.lo
CC src/libfreeswitch_la-switch_core_asr.lo
CC src/libfreeswitch_la-switch_core_event_hook.lo
CC src/libfreeswitch_la-switch_core_speech.lo
CC src/libfreeswitch_la-switch_core_memory.lo
CC src/libfreeswitch_la-switch_core_codec.lo
CC src/libfreeswitch_la-switch_core_file.lo
CC src/libfreeswitch_la-switch_core_cert.lo
CC src/libfreeswitch_la-switch_core_hash.lo
CC src/libfreeswitch_la-switch_core_sqldb.lo
src/switch_core_sqldb.c: In function ‘switch_cache_db_status’:
src/switch_core_sqldb.c:3773:4: error: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
strncpy(cleankey_str, dbh->name, strlen(dbh->name));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:2398: src/libfreeswitch_la-switch_core_sqldb.lo] Error 1
make[1]: Leaving directory '/usr/src/freeswitch'
make: *** [Makefile:1413: all] Error 2