Bug#1037675: gerbera: ftbfs with GCC-13

Matthias Klose doko at debian.org
Wed Jun 14 10:25:01 BST 2023


Package: src:gerbera
Version: 1.1.0+dfsg-3.1
Severity: normal
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-13

[This bug is targeted to the upcoming trixie release]

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-13/g++-13, but succeeds to build with gcc-12/g++-12. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2023/05/22/logs/gerbera_1.1.0+dfsg-3.1_unstable_gccexp.log
The last lines of the build log are at the end of this report.

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

[...]
      |                                          ^~
      |                                          exp
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc: In member function ‘int AutoscanInotify::monitorDirectory(zmm::String, zmm::Ref<AutoscanDirectory>, zmm::String, bool, zmm::Ref<zmm::Array<zmm::StringBase> >)’:
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc:532:24: error: ISO C++ forbids declaration of ‘out_of_range’ with no type [-fpermissive]
  532 |         } catch (const out_of_range& ex) {
      |                        ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc:532:36: error: expected ‘)’ before ‘&’ token
  532 |         } catch (const out_of_range& ex) {
      |                 ~                  ^
      |                                    )
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc:532:36: error: expected ‘{’ before ‘&’ token
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc:532:38: error: ‘ex’ was not declared in this scope; did you mean ‘exp’?
  532 |         } catch (const out_of_range& ex) {
      |                                      ^~
      |                                      exp
[ 11%] Building C object CMakeFiles/libgerbera.dir/src/contrib/md5.c.o
/usr/bin/cc -DAUTO_CREATE_DATABASE -DEXTEND_PROTOCOLINFO -DEXTERNAL_TRANSCODING -DHAVE_AVSTREAM_CODECPAR -DHAVE_CURL -DHAVE_EXIV2 -DHAVE_FFMPEG -DHAVE_FFMPEGTHUMBNAILER -DHAVE_INOTIFY -DHAVE_JS -DHAVE_LIBEXIF -DHAVE_MAGIC -DHAVE_MYSQL -DHAVE_NL_LANGINFO -DHAVE_SETLOCALE -DHAVE_SQLITE3 -DHAVE_TAGLIB -DONLINE_SERVICES -DPACKAGE_DATADIR=\"/usr/share/gerbera\" -DPACKAGE_NAME=\"gerbera\" -DTOMBDEBUG -DVERSION=\"1.1.0\" -DYOUTUBE -D__FILENAME__=\"src/contrib/md5.c\" -I/<<PKGBUILDDIR>>/src -I/usr/include/upnp -I/usr/include/mysql -I/usr/include/libexif -I/usr/include/exiv2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MT CMakeFiles/libgerbera.dir/src/contrib/md5.c.o -MF CMakeFiles/libgerbera.dir/src/contrib/md5.c.o.d -o CMakeFiles/libgerbera.dir/src/contrib/md5.c.o -c /<<PKGBUILDDIR>>/src/contrib/md5.c
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc: In member function ‘void AutoscanInotify::removeWatchMoves(int)’:
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc:654:24: error: ISO C++ forbids declaration of ‘out_of_range’ with no type [-fpermissive]
  654 |         } catch (const out_of_range& ex) {
      |                        ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc:654:36: error: expected ‘)’ before ‘&’ token
  654 |         } catch (const out_of_range& ex) {
      |                 ~                  ^
      |                                    )
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc:654:36: error: expected ‘{’ before ‘&’ token
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc:654:38: error: ‘ex’ was not declared in this scope; did you mean ‘exp’?
  654 |         } catch (const out_of_range& ex) {
      |                                      ^~
      |                                      exp
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc: In member function ‘void AutoscanInotify::addDescendant(int, int, zmm::Ref<AutoscanDirectory>)’:
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc:732:37: error: expected unqualified-id before ‘&’ token
  732 |     } catch (const std::out_of_range& ex) {
      |                                     ^
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc:732:37: error: expected ‘)’ before ‘&’ token
  732 |     } catch (const std::out_of_range& ex) {
      |             ~                       ^
      |                                     )
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc:732:37: error: expected ‘{’ before ‘&’ token
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc:732:39: error: ‘ex’ was not declared in this scope; did you mean ‘exp’?
  732 |     } catch (const std::out_of_range& ex) {
      |                                       ^~
      |                                       exp
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc: In member function ‘void AutoscanInotify::removeDescendants(int)’:
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc:752:20: error: ISO C++ forbids declaration of ‘out_of_range’ with no type [-fpermissive]
  752 |     } catch (const out_of_range& ex) {
      |                    ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc:752:32: error: expected ‘)’ before ‘&’ token
  752 |     } catch (const out_of_range& ex) {
      |             ~                  ^
      |                                )
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc:752:32: error: expected ‘{’ before ‘&’ token
/<<PKGBUILDDIR>>/src/autoscan_inotify.cc:752:34: error: ‘ex’ was not declared in this scope; did you mean ‘exp’?
  752 |     } catch (const out_of_range& ex) {
      |                                  ^~
      |                                  exp
[ 12%] Building CXX object CMakeFiles/libgerbera.dir/src/curl_io_handler.cc.o
/usr/bin/c++ -DAUTO_CREATE_DATABASE -DEXTEND_PROTOCOLINFO -DEXTERNAL_TRANSCODING -DHAVE_AVSTREAM_CODECPAR -DHAVE_CURL -DHAVE_EXIV2 -DHAVE_FFMPEG -DHAVE_FFMPEGTHUMBNAILER -DHAVE_INOTIFY -DHAVE_JS -DHAVE_LIBEXIF -DHAVE_MAGIC -DHAVE_MYSQL -DHAVE_NL_LANGINFO -DHAVE_SETLOCALE -DHAVE_SQLITE3 -DHAVE_TAGLIB -DONLINE_SERVICES -DPACKAGE_DATADIR=\"/usr/share/gerbera\" -DPACKAGE_NAME=\"gerbera\" -DTOMBDEBUG -DVERSION=\"1.1.0\" -DYOUTUBE -D__FILENAME__=\"src/curl_io_handler.cc\" -I/<<PKGBUILDDIR>>/src -I/usr/include/upnp -I/usr/include/mysql -I/usr/include/libexif -I/usr/include/exiv2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -std=c++14 -MD -MT CMakeFiles/libgerbera.dir/src/curl_io_handler.cc.o -MF CMakeFiles/libgerbera.dir/src/curl_io_handler.cc.o.d -o CMakeFiles/libgerbera.dir/src/curl_io_handler.cc.o -c /<<PKGBUILDDIR>>/src/curl_io_handler.cc
make[3]: *** [CMakeFiles/libgerbera.dir/build.make:135: CMakeFiles/libgerbera.dir/src/autoscan_inotify.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
[ 13%] Building CXX object CMakeFiles/libgerbera.dir/src/destroyer.cc.o
/usr/bin/c++ -DAUTO_CREATE_DATABASE -DEXTEND_PROTOCOLINFO -DEXTERNAL_TRANSCODING -DHAVE_AVSTREAM_CODECPAR -DHAVE_CURL -DHAVE_EXIV2 -DHAVE_FFMPEG -DHAVE_FFMPEGTHUMBNAILER -DHAVE_INOTIFY -DHAVE_JS -DHAVE_LIBEXIF -DHAVE_MAGIC -DHAVE_MYSQL -DHAVE_NL_LANGINFO -DHAVE_SETLOCALE -DHAVE_SQLITE3 -DHAVE_TAGLIB -DONLINE_SERVICES -DPACKAGE_DATADIR=\"/usr/share/gerbera\" -DPACKAGE_NAME=\"gerbera\" -DTOMBDEBUG -DVERSION=\"1.1.0\" -DYOUTUBE -D__FILENAME__=\"src/destroyer.cc\" -I/<<PKGBUILDDIR>>/src -I/usr/include/upnp -I/usr/include/mysql -I/usr/include/libexif -I/usr/include/exiv2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -std=c++14 -MD -MT CMakeFiles/libgerbera.dir/src/destroyer.cc.o -MF CMakeFiles/libgerbera.dir/src/destroyer.cc.o.d -o CMakeFiles/libgerbera.dir/src/destroyer.cc.o -c /<<PKGBUILDDIR>>/src/destroyer.cc
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:88: CMakeFiles/libgerbera.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 VERBOSE=1 returned exit code 2
make: *** [debian/rules:8: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the pkg-multimedia-maintainers mailing list