[Bug 271850] net/libzmq4: fix build with libc++ 16

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 05 Jun 2023 20:37:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271850

            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 allocator
      static_assert(is_same<allocator_type, __rebind_alloc<__alloc_traits,
value_type> >::value,
      ^            
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

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