From nobody Sun Jan 07 21:26:44 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T7Vd04Py1z5624g for ; Sun, 7 Jan 2024 21:26:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T7Vd02Cmqz4Csm for ; Sun, 7 Jan 2024 21:26:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704662804; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ls2VdvB4biDWknF/Hj3xNre9M65U+W8rQ5PEKq4Ve9U=; b=SSmc+0ngaVY8ECcdujb5djdEJDSdRBN176V2D4CpW7JvvyGBGcmSuaj+hvONmKd90UB0N7 9fj6ivHGl1hGZho/2HwpSqgZ9Vch45UVzfm77J0suPho61Q++51vGB4N4hnqunQ6YLCvHe qLrTGGdJBINvRvnN+DOcemMWGvVxUsqP/81PkDptBjvqLGbaT5KAFMJCAMSbCMjVwAQJsn bX/rXPmgcoRfffdVyRRatKFfZINrdz0P8nfnJErHVJR3jsjw3D3DyyR8rlVnci7h0j+amI 8P1v/G0I0ORjv94+aH16GwCU/xGZz2i8ugWjhT7EKDh5JXTqX0wGOm/LYwu/Tw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704662804; a=rsa-sha256; cv=none; b=Ci0HkK3+XwQWav4bYlOyYtjp2BHwSleEm/hA0hSySYKPepOG+JYzW1pbTqrBK4bdBNgX8X TQSm6TQwbsQkjNJj2GvDXLmw7YhsK7KzbfesTjoGSjpDUrUP+s+kZTCNaUfd8DHuukEc9d cxEsdH+yqhw9y8KqGcH/dggUKHYOn1nDZS9mKEFlsiYGX4bPIUaJepghpu4GCtIGYDitlG cB6QA+4tQXcqYdRdNWif00g302eF+Sb7aWjGgsFrtunKQv+ht3r0egwT796+uLs5t/tx5m fYdRX2P0mSx3eWTE92HhSkMtYUGKb4qJodUO8ZIYoZLn9WJKloKoDa58JxBcvw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T7Vd010sbzgJT for ; Sun, 7 Jan 2024 21:26:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 407LQi4S042086 for ; Sun, 7 Jan 2024 21:26:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 407LQiJh042085 for ports-bugs@FreeBSD.org; Sun, 7 Jan 2024 21:26:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 276187] devel/cpprestsdk: json.h breaks with the FreeBSD std::unique_ptr Date: Sun, 07 Jan 2024 21:26:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: sigsegv@radiotube.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276187 Bug ID: 276187 Summary: devel/cpprestsdk: json.h breaks with the FreeBSD std::unique_ptr Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: sigsegv@radiotube.org Created attachment 247517 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D247517&action= =3Dedit Patch files to de-inline the failing constructor and destructor A simple #include fails with errors like this: In file included from /usr/include/c++/v1/iostream:43: In file included from /usr/include/c++/v1/ios:221: In file included from /usr/include/c++/v1/__locale:18: In file included from /usr/include/c++/v1/mutex:191: In file included from /usr/include/c++/v1/__memory/shared_ptr.h:31: /usr/include/c++/v1/__memory/unique_ptr.h:63:19: error: invalid application= of 'sizeof' to an incomplete type 'web::json::details::_Value' static_assert(sizeof(_Tp) >=3D 0, "cannot delete an incomplete type"); ^~~~~~~~~~~ /usr/include/c++/v1/__memory/unique_ptr.h:297:7: note: in instantiation of member function 'std::default_delete::operator(= )' requested here __ptr_.second()(__tmp); ^ /usr/include/c++/v1/__memory/unique_ptr.h:263:75: note: in instantiation of member function 'std::unique_ptr::reset' reques= ted here _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 ~unique_ptr() { reset(); } ^ /usr/local/include/cpprest/json.h:716:14: note: in instantiation of member function 'std::unique_ptr::~unique_ptr' request= ed here explicit value(std::unique_ptr v) : m_value(std::move(= v)) ^ /usr/local/include/cpprest/json.h:35:7: note: forward declaration of 'web::json::details::_Value' class _Value; ^ 1 error generated. Suggested patch included. De-inlining the constructor and destructor makes = the sizeof(_Value) available to std::unique_ptr. --=20 You are receiving this mail because: You are the assignee for the bug.=