Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Jun 2023 20:37:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 271850] net/libzmq4: fix build with libc++ 16
Message-ID:  <bug-271850-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271850

            Bug ID: 271850
           Summary: net/libzmq4: fix build with libc++ 16
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: bofh@freebsd.org
          Reporter: dim@FreeBSD.org
          Assignee: bofh@freebsd.org
             Flags: maintainer-feedback?(bofh@freebsd.org)

Like recent versions of GNU libstdc++, libc++ 16 now has a static
assertion to ensure that custom allocators have the correct rebind
member, and this assertion fires when building libzmq4:

  In file included from src/curve_client.cpp:35:
  In file included from ./src/msg.hpp:40:
  In file included from ./src/metadata.hpp:33:
  In file included from /usr/include/c++/v1/map:2356:
  In file included from /usr/include/c++/v1/functional:515:
  In file included from
/usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
  /usr/include/c++/v1/vector:372:5: error: static assertion failed due to
requirement 'is_same<zmq::secure_allocator_t<unsigned char>,
std::allocator<unsigned char>>::value': [allocator.requirements] states that
rebinding an allocator to the same type should result in the original alloc=
ator
      static_assert(is_same<allocator_type, __rebind_alloc<__alloc_traits,
value_type> >::value,
      ^=20=20=20=20=20=20=20=20=20=20=20=20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Upstream fixed this in
<https://github.com/zeromq/libzmq/commit/438d5d88>, so apply that patch.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271850-7788>