Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Nov 2024 14:32:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 282515] www/davix: fix build with clang 19
Message-ID:  <bug-282515-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 282515
           Summary: www/davix: fix build with clang 19
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(yuri@freebsd.org)
          Assignee: yuri@freebsd.org

Clang 19 has become more strict about assigning to const class members,
resulting in errors similar to:

=20
/wrkdirs/usr/ports/www/davix/work/davix-R_0_8_7/src/libs/rapidjson/document=
.h:319:82:
error: cannot assign to non-static data member 'length' with const-qualified
type 'const SizeType' (aka 'const unsigned int')
    319 |     GenericStringRef& operator=3D(const GenericStringRef& rhs) { =
s =3D
rhs.s; length =3D rhs.length; }
        |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
    ~~~~~~ ^
=20
/wrkdirs/usr/ports/www/davix/work/davix-R_0_8_7/src/libs/rapidjson/document=
.h:325:20:
note: non-static data member 'length' declared const here
    325 |     const SizeType length; //!< length of the string (excluding t=
he
trailing NULL terminator)
        |     ~~~~~~~~~~~~~~~^~~~~~

Upstream rapidjson has fixed this in commit 3b2441b8 [1], which simply
removes the assignment operator.

[1] https://github.com/Tencent/rapidjson/commit/3b2441b8

--=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-282515-7788>