Hello,

Today I was trying to compile v1.8 branch using Debian 10 but I'm getting this error on the make process:

>>> Log:

/usr/src/freeswitch$ make
config.status: creating Makefile
config.status: creating include/apr.h
config.status: creating build/apr_rules.mk
config.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

<<< log Ends

GCC:
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 8.3.0-6' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 8.3.0 (Debian 8.3.0-6)


CC:
$ cc -v
Using built-in specs.
COLLECT_GCC=cc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 8.3.0-6' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 8.3.0 (Debian 8.3.0-6)


Any help, will be appreciated!

Thanks
Jose Figueroa