Bug 281235 - irc/ezbounce: Fails to build with GCC 14: error: no declaration matches 'void util::tracked_object<conn>::delete_if(Pred)'
Summary: irc/ezbounce: Fails to build with GCC 14: error: no declaration matches 'void...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Lorenzo Salvadore
URL: https://pkg-status.freebsd.org/gohan0...
Keywords:
Depends on:
Blocks: 281091
  Show dependency treegraph
 
Reported: 2024-09-03 13:15 UTC by Lorenzo Salvadore
Modified: 2024-12-24 10:41 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (portmaster)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo Salvadore freebsd_committer freebsd_triage 2024-09-03 13:15:16 UTC
Build fails with GCC 14. This blocks GCC_DEFAULT update to GCC 14.

  [g++14]    src/commands/admin.cc
In file included from /usr/local/include/boost/smart_ptr/detail/requires_cxx11.hpp:9,
                 from /usr/local/include/boost/smart_ptr/shared_ptr.hpp:17,
                 from /usr/local/include/boost/shared_ptr.hpp:17,
                 from /usr/local/include/boost/iostreams/filter/symmetric.hpp:61,
                 from /usr/local/include/boost/iostreams/filter/zlib.hpp:31,
                 from /usr/local/include/boost/iostreams/filter/gzip.hpp:39,
                 from include/io/filter_traits.h:16,
                 from include/io/filters.h:17,
                 from include/logging/filtered_logger.h:16,
                 from include/logging/vfs_logfile.h:16,
                 from include/logging/chatlog.h:15,
                 from include/irc/channel.h:23,
                 from include/irc/cache.h:11,
                 from src/commands/admin.cc:17:
/usr/local/include/boost/smart_ptr/detail/requires_cxx11.hpp:19:1: note: '#pragma message: C++03 support was deprecated in Boost.SmartPtr 1.82 and will be removed in Boost.SmartPtr 1.85.'
   19 | BOOST_PRAGMA_MESSAGE("C++03 support was deprecated in Boost.SmartPtr 1.82 and will be removed in Boost.SmartPtr 1.85.")
      | ^~~~~~~~~~~~~~~~~~~~
In file included from src/commands/admin.cc:19:
include/conn.h:95:45: error: no declaration matches 'void util::tracked_object<conn>::delete_if(Pred)'
   95 |         template<typename Pred> friend void util::tracked_object<conn>::delete_if(Pred);
      |                                             ^~~~
In file included from include/fs/entry.h:11,
                 from include/logging/vfs_logfile.h:19:
include/util/tracked_object.h:65:50: note: candidate is: 'template<class Predicate> static void util::tracked_object<T>::delete_if(Predicate) [with T = conn]'
   65 |         template<typename Predicate> static void delete_if(Predicate pred) {
      |                                                  ^~~~~~~~~
include/util/tracked_object.h:30:25: note: 'class util::tracked_object<conn>' defined here
   30 | template<class T> class tracked_object {
      |                         ^~~~~~~~~~~~~~
gmake: *** [Makefile:174: src/commands/admin.o] Error 1
*** Error code 1



Full log: https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-29_19h57m48s/logs/errors/ezbounce-1.99.15_27.log

Useful link: https://gcc.gnu.org/gcc-14/porting_to.html
Comment 1 Chris Hutchinson 2024-09-03 15:48:44 UTC
(In reply to Lorenzo Salvadore from comment #(In reply to Lorenzo Salvadore from comment #0)
Ah. I guess the time has come to drag this port into the 21st century.
Thanks, Lorenzo. I'm on it.
Comment 2 Lorenzo Salvadore freebsd_committer freebsd_triage 2024-12-22 16:34:27 UTC
The port has been marked as broken as it fails to build with boost-1.85+ with commit https://cgit.freebsd.org/ports/commit/?id=54e319a4d90973f6eab00a4b9a5533d96eab7fc2 .

So this is not blocking GCC_DEFAULT update anymore.
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-12-24 10:41:42 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ae8995a9fe4816ab9be6267b315bfbb3006af22d

commit ae8995a9fe4816ab9be6267b315bfbb3006af22d
Author:     Gerald Pfeifer <gerald@FreeBSD.org>
AuthorDate: 2024-12-24 10:33:44 +0000
Commit:     Gerald Pfeifer <gerald@FreeBSD.org>
CommitDate: 2024-12-24 10:39:31 +0000

    irc/ezbounce: Deprecate port (again)

    This port has been marked broken for two-and-a-half months due to a
    Boost update, does not build with modern compilers (now also GCC 15,
    not just clang), is dead upstream with the last release 15 years ago.

    So deprecate (again) with an expiration date in five weeks (= nearly
    four months after being marked BROKEN).

    PR:             281235

 irc/ezbounce/Makefile | 2 ++
 1 file changed, 2 insertions(+)