Bug#925765: linphone: ftbfs with GCC-9

Matthias Klose doko at debian.org
Wed Mar 27 19:46:48 GMT 2019


Package: src:linphone
Version: 3.12.0-3
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-9

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-9/g++-9, but succeeds to build with gcc-8/g++-8. 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/gcc9-20190321/linphone_3.12.0-3_unstable_gcc9.log
The last lines of the build log are at the end of this report.

To build with GCC 9, either set CC=gcc-9 CXX=g++-9 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-9/porting_to.html

GCC 9 also passes the linker option --as-needed by default; typical
build issues are passing libraries before object files to the linker,
or underlinking of convenience libraries built from the same source.

[...]
/<<PKGBUILDDIR>>/coreapi/callbacks.c: In function 'call_failure':
/<<PKGBUILDDIR>>/coreapi/callbacks.c:1069:31: warning: cast between incompatible function types from 'int (*)(LinphoneCall *)' {aka 'int (*)(struct _LinphoneCall *)'} to 'int (*)(void *, unsigned int)' [-Wcast-function-type]
 1069 |   linphone_core_queue_task(lc,(belle_sip_source_func_t)resume_call_after_failed_transfer,linphone_call_ref(referer),"Automatic call resuming after failed transfer");
      |                               ^
In file included from /usr/include/string.h:494,
                 from /usr/include/ortp/port.h:41,
                 from /usr/include/ortp/logging.h:29,
                 from /usr/include/ortp/ortp.h:66,
                 from /usr/include/mediastreamer2/mediastream.h:24,
                 from /<<PKGBUILDDIR>>/include/sal/sal.h:33,
                 from /<<PKGBUILDDIR>>/coreapi/bellesip_sal/sal_impl.h:23,
                 from /<<PKGBUILDDIR>>/coreapi/bellesip_sal/sal_sdp.c:20:
In function 'strncpy',
    inlined from 'sdp_to_stream_description' at /<<PKGBUILDDIR>>/coreapi/bellesip_sal/sal_sdp.c:817:4:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: '__builtin_strncpy' output may be truncated copying 63 bytes from a string of length 255 [-Werror=stringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
    inlined from 'sdp_parse_media_crypto_parameters' at /<<PKGBUILDDIR>>/coreapi/bellesip_sal/sal_sdp.c:512:6,
    inlined from 'sdp_to_stream_description' at /<<PKGBUILDDIR>>/coreapi/bellesip_sal/sal_sdp.c:842:3:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: '__builtin_strncpy' output may be truncated copying 127 bytes from a string of length 255 [-Werror=stringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
    inlined from 'sdp_parse_media_ice_parameters' at /<<PKGBUILDDIR>>/coreapi/bellesip_sal/sal_sdp.c:564:6,
    inlined from 'sdp_to_stream_description' at /<<PKGBUILDDIR>>/coreapi/bellesip_sal/sal_sdp.c:854:2:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: '__builtin_strncpy' output may be truncated copying 63 bytes from a string of length 63 [-Werror=stringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:494,
                 from /usr/include/ortp/port.h:41,
                 from /usr/include/ortp/logging.h:29,
                 from /usr/include/ortp/ortp.h:66,
                 from /<<PKGBUILDDIR>>/include/linphone/core.h:23,
                 from /<<PKGBUILDDIR>>/coreapi/private.h:28,
                 from /<<PKGBUILDDIR>>/coreapi/call_log.c:23:
In function 'strncpy',
    inlined from 'call_logs_read_from_config_file' at /<<PKGBUILDDIR>>/coreapi/call_log.c:148:6:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: '__builtin_strncpy' specified bound 128 equals destination size [-Werror=stringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:494,
                 from /usr/include/ortp/port.h:41,
                 from /usr/include/ortp/logging.h:29,
                 from /usr/include/ortp/ortp.h:66,
                 from /usr/include/mediastreamer2/mediastream.h:24,
                 from /<<PKGBUILDDIR>>/include/sal/sal.h:33,
                 from /<<PKGBUILDDIR>>/coreapi/callbacks.c:21:
In function 'strncpy',
    inlined from 'refer_received' at /<<PKGBUILDDIR>>/coreapi/callbacks.c:1190:11:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: '__builtin_strncpy' specified bound 20 equals destination size [-Werror=stringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
cc1: all warnings being treated as errors
cc1: all warnings being treated as errors
make[3]: *** [coreapi/CMakeFiles/linphone.dir/build.make:300: coreapi/CMakeFiles/linphone.dir/call_log.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [coreapi/CMakeFiles/linphone.dir/build.make:261: coreapi/CMakeFiles/linphone.dir/bellesip_sal/sal_sdp.c.o] Error 1
make[3]: *** [coreapi/CMakeFiles/linphone.dir/build.make:287: coreapi/CMakeFiles/linphone.dir/callbacks.c.o] Error 1
[ 32%] Building C object coreapi/CMakeFiles/linphone.dir/call_params.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/coreapi && /usr/bin/cc -DBCTBX_STATIC -DBELCARD_STATIC -DBELLESIP_STATIC -DBELR_STATIC -DBZRTP_STATIC -DHAVE_CONFIG_H -DLIBLINPHONE_EXPORTS -DLINPHONE_EXPORTS -DLINPHONE_STATIC -DMS2_STATIC -DORTP_STATIC -DSQLITE_STORAGE_ENABLED -DUSE_BELLESIP -DVCARD_ENABLED -DVIDEO_ENABLED -Dlinphone_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/coreapi -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/coreapi -isystem /usr/include/libxml2 -isystem /usr/include/x86_64-linux-gnu  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-error=cast-function-type -Wno-error=sizeof-pointer-memaccess -Wno-error=format-truncation -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=catch-value -fPIC    -Wall -Wuninitialized -Wno-error=deprecated-declarations -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -Wstrict-prototypes -Werror=strict-prototypes -fno-inline-small-functions -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -o CMakeFiles/linphone.dir/call_params.c.o   -c /<<PKGBUILDDIR>>/coreapi/call_params.c
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:204: coreapi/CMakeFiles/linphone.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:155: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: cd obj-x86_64-linux-gnu && make -j4 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:15: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2



More information about the Pkg-voip-maintainers mailing list