Bug#957801: siproxd: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 12:10:49 BST 2020


Package: src:siproxd
Version: 1:0.8.1-4.1
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-10

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/siproxd_0.8.1-4.1_unstable_gcc10.log
The last lines of the build log are at the end of this report.

To build with GCC 10, either set CC=gcc-10 CXX=g++-10 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-10/porting_to.html

[...]
                 from /usr/include/osipparser2/osip_port.h:24,
                 from /usr/include/osipparser2/osip_headers.h:25,
                 from /usr/include/osipparser2/osip_message.h:25,
                 from /usr/include/osipparser2/osip_parser.h:24,
                 from plugin_stun.c:33:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 8 and 16 bytes into a destination of size 15
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
plugin_stun.c:259:70: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
  259 |                      snprintf(ipstring, IPSTRING_SIZE-1, "%u.%u.%u.%u",
      |                                                                      ^
In file included from /usr/include/stdio.h:867,
                 from /usr/include/osipparser2/osip_port.h:24,
                 from /usr/include/osipparser2/osip_headers.h:25,
                 from /usr/include/osipparser2/osip_message.h:25,
                 from /usr/include/osipparser2/osip_parser.h:24,
                 from plugin_stun.c:33:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 8 and 16 bytes into a destination of size 15
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DBUILDSTR=\"53\" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -D_POSIX_THREAD_SAFE_FUNCTIONS -c plugin_stun.c -o plugin_stun.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=link gcc -D_GNU_SOURCE  -DBUILDSTR="\"`cat .buildno`\"" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -D_POSIX_THREAD_SAFE_FUNCTIONS -module -avoid-version -shrext '.so' -Wl,-z,relro  -o plugin_stun.la -rpath /usr/lib/x86_64-linux-gnu/siproxd plugin_stun.lo  -lresolv -losipparser2 -losip2   -lltdl 
libtool: link: gcc -shared  -fPIC -DPIC  .libs/plugin_stun.o   -lresolv /usr/lib/x86_64-linux-gnu/libosipparser2.so /usr/lib/x86_64-linux-gnu/libosip2.so /usr/lib/x86_64-linux-gnu/libltdl.so  -g -O2 -fstack-protector-strong -pthread -Wl,-z -Wl,relro   -pthread -Wl,-soname -Wl,plugin_stun.so -o .libs/plugin_stun.so
libtool: link: ar cr .libs/plugin_stun.a  plugin_stun.o
libtool: link: ranlib .libs/plugin_stun.a
libtool: link: ( cd ".libs" && rm -f "plugin_stun.la" && ln -s "../plugin_stun.la" "plugin_stun.la" )
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE  -DBUILDSTR="\"`cat .buildno`\"" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -D_POSIX_THREAD_SAFE_FUNCTIONS -c -o plugin_prefix.lo plugin_prefix.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DBUILDSTR=\"53\" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -D_POSIX_THREAD_SAFE_FUNCTIONS -c plugin_prefix.c  -fPIC -DPIC -o .libs/plugin_prefix.o
plugin_prefix.c:51:19: warning: ‘ident’ defined but not used [-Wunused-const-variable=]
   51 | static char const ident[]="$Id: plugin_prefix.c 485 2011-06-18 08:23:54Z hb9xar $";
      |                   ^~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DBUILDSTR=\"53\" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -D_POSIX_THREAD_SAFE_FUNCTIONS -c plugin_prefix.c -o plugin_prefix.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=link gcc -D_GNU_SOURCE  -DBUILDSTR="\"`cat .buildno`\"" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -D_POSIX_THREAD_SAFE_FUNCTIONS -module -avoid-version -shrext '.so' -Wl,-z,relro  -o plugin_prefix.la -rpath /usr/lib/x86_64-linux-gnu/siproxd plugin_prefix.lo  -lresolv -losipparser2 -losip2   -lltdl 
libtool: link: gcc -shared  -fPIC -DPIC  .libs/plugin_prefix.o   -lresolv /usr/lib/x86_64-linux-gnu/libosipparser2.so /usr/lib/x86_64-linux-gnu/libosip2.so /usr/lib/x86_64-linux-gnu/libltdl.so  -g -O2 -fstack-protector-strong -pthread -Wl,-z -Wl,relro   -pthread -Wl,-soname -Wl,plugin_prefix.so -o .libs/plugin_prefix.so
libtool: link: ar cr .libs/plugin_prefix.a  plugin_prefix.o
libtool: link: ranlib .libs/plugin_prefix.a
libtool: link: ( cd ".libs" && rm -f "plugin_prefix.la" && ln -s "../plugin_prefix.la" "plugin_prefix.la" )
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE  -DBUILDSTR="\"`cat .buildno`\"" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -D_POSIX_THREAD_SAFE_FUNCTIONS -c -o plugin_regex.lo plugin_regex.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DBUILDSTR=\"53\" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -D_POSIX_THREAD_SAFE_FUNCTIONS -c plugin_regex.c  -fPIC -DPIC -o .libs/plugin_regex.o
plugin_regex.c:48:19: warning: ‘ident’ defined but not used [-Wunused-const-variable=]
   48 | static char const ident[]="$Id: plugin_regex.c 471 2011-05-28 10:03:49Z hb9xar $";
      |                   ^~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DBUILDSTR=\"53\" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -D_POSIX_THREAD_SAFE_FUNCTIONS -c plugin_regex.c -o plugin_regex.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=link gcc -D_GNU_SOURCE  -DBUILDSTR="\"`cat .buildno`\"" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -D_POSIX_THREAD_SAFE_FUNCTIONS -module -avoid-version -shrext '.so' -Wl,-z,relro  -o plugin_regex.la -rpath /usr/lib/x86_64-linux-gnu/siproxd plugin_regex.lo  -lresolv -losipparser2 -losip2   -lltdl 
libtool: link: gcc -shared  -fPIC -DPIC  .libs/plugin_regex.o   -lresolv /usr/lib/x86_64-linux-gnu/libosipparser2.so /usr/lib/x86_64-linux-gnu/libosip2.so /usr/lib/x86_64-linux-gnu/libltdl.so  -g -O2 -fstack-protector-strong -pthread -Wl,-z -Wl,relro   -pthread -Wl,-soname -Wl,plugin_regex.so -o .libs/plugin_regex.so
libtool: link: ar cr .libs/plugin_regex.a  plugin_regex.o
libtool: link: ranlib .libs/plugin_regex.a
libtool: link: ( cd ".libs" && rm -f "plugin_regex.la" && ln -s "../plugin_regex.la" "plugin_regex.la" )
/bin/bash ../libtool  --tag=CC   --mode=link gcc -D_GNU_SOURCE  -DBUILDSTR="\"`cat .buildno`\"" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -D_POSIX_THREAD_SAFE_FUNCTIONS -export-dynamic -Wl,-z,relro  -o siproxd siproxd.o proxy.o register.o sock.o utils.o sip_utils.o sip_layer.o log.o readconf.o rtpproxy.o rtpproxy_relay.o accessctl.o route_processing.o security.o auth.o fwapi.o resolve.o dejitter.o plugins.o redirect_cache.o  -dlopen plugin_demo.la -dlopen plugin_shortdial.la -dlopen plugin_logcall.la -dlopen plugin_defaulttarget.la -dlopen plugin_fix_bogus_via.la -dlopen plugin_stun.la -dlopen plugin_prefix.la -dlopen plugin_regex.la -lresolv -losipparser2 -losip2   -lltdl 
libtool: link: rm -f .libs/siproxd.nm .libs/siproxd.nmS .libs/siproxd.nmT
libtool: link: rm -f ".libs/siproxd.nmI"
libtool: link: (cd .libs && gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -D_POSIX_THREAD_SAFE_FUNCTIONS -c -fno-builtin "siproxdS.c")
libtool: link: rm -f ".libs/siproxdS.c" ".libs/siproxd.nm" ".libs/siproxd.nmS" ".libs/siproxd.nmT" ".libs/siproxd.nmI"
libtool: link: gcc -D_GNU_SOURCE -DBUILDSTR=\"53\" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -D_POSIX_THREAD_SAFE_FUNCTIONS -Wl,-z -Wl,relro -o siproxd siproxd.o proxy.o register.o sock.o utils.o sip_utils.o sip_layer.o log.o readconf.o rtpproxy.o rtpproxy_relay.o accessctl.o route_processing.o security.o auth.o fwapi.o resolve.o dejitter.o plugins.o redirect_cache.o .libs/siproxdS.o -Wl,--export-dynamic  -lresolv /usr/lib/x86_64-linux-gnu/libosipparser2.so /usr/lib/x86_64-linux-gnu/libosip2.so /usr/lib/x86_64-linux-gnu/libltdl.so -pthread
/usr/bin/ld: accessctl.o:./src/accessctl.c:37: multiple definition of `configuration'; siproxd.o:./src/siproxd.c:46: first defined here
collect2: error: ld returned 1 exit status
libtool: link: rm -f ".libs/siproxdS.o"
make[3]: *** [Makefile:693: siproxd] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:440: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:370: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j1 returned exit code 2
make: *** [debian/rules:4: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Pkg-voip-maintainers mailing list