[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#984344: spamprobe: ftbfs with GCC-11



Package: src:spamprobe
Version: 1.4d-14
Severity: normal
Tags: sid bookworm
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-11

[This bug is not targeted to the upcoming bullseye 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-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.

The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/spamprobe_1.4d-14_unstable_gcc11.log
The last lines of the build log are at the end of this report.

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

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
checking for png.h... yes
checking for png_set_progressive_read_fn in -lpng... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_read_header in -ljpeg... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/database/Makefile
config.status: creating src/hdl/Makefile
config.status: creating src/includes/Makefile
config.status: creating src/input/Makefile
config.status: creating src/parser/Makefile
config.status: creating src/utility/Makefile
config.status: creating src/spamprobe/Makefile
config.status: executing depfiles commands
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build
dh_auto_build: warning: Compatibility levels before 10 are deprecated (level 9 in use)
	make -j1
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Making all in src
make[3]: Entering directory '/<<PKGBUILDDIR>>/src'
Making all in database
make[4]: Entering directory '/<<PKGBUILDDIR>>/src/database'
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"spamprobe\" -DVERSION=\"1.4d\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_REGEX_H=1 -DUSE_8BIT=1 -DUSE_CDB=1 -DUSE_DB=1 -DUSE_MMAP=1 -DHAVE_UNGIF=1 -DHAVE_PNG=1 -DHAVE_JPEG=1  -I. -I. -I../../src/includes  -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o CleanupManager.o CleanupManager.cc
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"spamprobe\" -DVERSION=\"1.4d\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_REGEX_H=1 -DUSE_8BIT=1 -DUSE_CDB=1 -DUSE_DB=1 -DUSE_MMAP=1 -DHAVE_UNGIF=1 -DHAVE_PNG=1 -DHAVE_JPEG=1  -I. -I. -I../../src/includes  -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o DatabaseConfig.o DatabaseConfig.cc
In file included from FrequencyDBImpl_hash.h:37,
                 from DatabaseConfig.cc:37:
HashDataFile.h: In member function ‘bool HashDataFile::isReadOnly() const’:
HashDataFile.h:97:3: warning: no return statement in function returning non-void [-Wreturn-type]
   97 |   }
      |   ^
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"spamprobe\" -DVERSION=\"1.4d\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_REGEX_H=1 -DUSE_8BIT=1 -DUSE_CDB=1 -DUSE_DB=1 -DUSE_MMAP=1 -DHAVE_UNGIF=1 -DHAVE_PNG=1 -DHAVE_JPEG=1  -I. -I. -I../../src/includes  -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o FrequencyDB.o FrequencyDB.cc
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"spamprobe\" -DVERSION=\"1.4d\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_REGEX_H=1 -DUSE_8BIT=1 -DUSE_CDB=1 -DUSE_DB=1 -DUSE_MMAP=1 -DHAVE_UNGIF=1 -DHAVE_PNG=1 -DHAVE_JPEG=1  -I. -I. -I../../src/includes  -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o FrequencyDBImpl_bdb.o FrequencyDBImpl_bdb.cc
In file included from /usr/include/c++/11/backward/strstream:50,
                 from FrequencyDBImpl_bdb.cc:35:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"spamprobe\" -DVERSION=\"1.4d\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_REGEX_H=1 -DUSE_8BIT=1 -DUSE_CDB=1 -DUSE_DB=1 -DUSE_MMAP=1 -DHAVE_UNGIF=1 -DHAVE_PNG=1 -DHAVE_JPEG=1  -I. -I. -I../../src/includes  -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o FrequencyDBImpl_cache.o FrequencyDBImpl_cache.cc
In file included from /usr/include/c++/11/map:60,
                 from ../../src/includes/LRUCache.h:34,
                 from FrequencyDBImpl_cache.h:34,
                 from FrequencyDBImpl_cache.cc:34:
/usr/include/c++/11/bits/stl_tree.h: In instantiation of ‘static const _Key& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_S_key(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type) [with _Key = LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*; _Val = std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*>; _KeyOfValue = std::_Select1st<std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*> >; _Compare = LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNodeKeyCompare; _Alloc = std::allocator<std::pair<LRUCache<std::__cxx11::basic_string<ch
 ar>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type = const std::_Rb_tree_node<std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*> >*]’:
/usr/include/c++/11/bits/stl_tree.h:1903:36:   required from ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_lower_bound(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr, const _Key&) [with _Key = LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*; _Val = std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*>; _KeyOfValue = std::_Select1st<std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*> >; _Compare = LRUCache<std::__cxx11::basic_string<char>, Re
 f<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNodeKeyCompare; _Alloc = std::allocator<std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*, std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*>, std::_Select1st<std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*> >, LRUCache<std::__cxx11::basic_string<char>, Ref<Frequenc
 yDBImpl_cache::CacheEntry> >::LRUCacheNodeKeyCompare, std::allocator<std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*> > >::iterator; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*> >*; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr = std::_Rb_tree_node_base*]’
/usr/include/c++/11/bits/stl_tree.h:2521:36:   required from ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::find(const _Key&) [with _Key = LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*; _Val = std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*>; _KeyOfValue = std::_Select1st<std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*> >; _Compare = LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNodeKeyCompare; _Alloc = std::allocator<std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<Freq
 uencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*, std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*>, std::_Select1st<std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*> >, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNodeKeyCompare, std::allocator<std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::
 CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*> > >::iterator]’
/usr/include/c++/11/bits/stl_map.h:1170:25:   required from ‘std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::find(const key_type&) [with _Key = LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*; _Tp = LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*; _Compare = LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNodeKeyCompare; _Alloc = std::allocator<std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*> >; std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*, std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::
 CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*>, std::_Select1st<std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*> >, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNodeKeyCompare, std::allocator<std::pair<LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*> > >::iterator; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode*]’
../../src/includes/LRUCache.h:248:31:   required from ‘void LRUCache<KeyType, ValueType>::put(const KeyType&, ValueType, bool) [with KeyType = std::__cxx11::basic_string<char>; ValueType = Ref<FrequencyDBImpl_cache::CacheEntry>]’
FrequencyDBImpl_cache.cc:91:74:   required from here
/usr/include/c++/11/bits/stl_tree.h:770:15: error: static assertion failed: comparison object must be invocable as const
  770 |               is_invocable_v<const _Compare&, const _Key&, const _Key&>,
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/stl_tree.h:770:15: note: ‘std::is_invocable_v<const LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNodeKeyCompare&, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const&, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const&>’ evaluates to false
make[4]: *** [Makefile:254: FrequencyDBImpl_cache.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/database'
make[3]: *** [Makefile:179: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:261: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j1 returned exit code 2
make[1]: *** [debian/rules:12: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: