Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jul 2022 22:05:33 +0800
From:      Po-Chuan Hsieh <sunpoet@freebsd.org>
To:        ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org,  dev-commits-ports-main@freebsd.org
Subject:   Re: git: b37ebe5a89a3 - main - devel/libdap: Fix build with Clang 13+
Message-ID:  <CAMHz58S25RV9%2BKtM78NCV=9xCwvD5ts6UXq1OYh95SOhRoM20w@mail.gmail.com>
In-Reply-To: <202207111352.26BDqxfB012014@gitrepo.freebsd.org>
References:  <202207111352.26BDqxfB012014@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000c38c3205e3880dd3
Content-Type: text/plain; charset="UTF-8"

On Mon, Jul 11, 2022 at 9:53 PM Po-Chuan Hsieh <sunpoet@freebsd.org> wrote:

> The branch main has been updated by sunpoet:
>
> URL:
> https://cgit.FreeBSD.org/ports/commit/?id=b37ebe5a89a33125910ddcdce34c31f0d700b2b5
>
> commit b37ebe5a89a33125910ddcdce34c31f0d700b2b5
> Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
> AuthorDate: 2022-07-11 13:49:19 +0000
> Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
> CommitDate: 2022-07-11 13:49:19 +0000
>
>     devel/libdap: Fix build with Clang 13+
>

It should be "devel/libdap: Fix build on i386".


>
>     HTTPCache.cc:1034:14: error: no matching function for call to 'min'
>             line[min(line_buf_len, strnlen(line, line_buf_len))-1] = '\0';
> // erase newline
>                  ^~~
>     /usr/include/c++/v1/__algorithm/min.h:40:1: note: candidate template
> ignored: deduced conflicting types for parameter '_Tp' ('unsigned long' vs.
> 'size_t' (aka 'unsigned int'))
>     min(const _Tp& __a, const _Tp& __b)
>     ^
>     /usr/include/c++/v1/__algorithm/min.h:51:1: note: candidate template
> ignored: could not match 'initializer_list<_Tp>' against 'unsigned long'
>     min(initializer_list<_Tp> __t, _Compare __comp)
>     ^
>     /usr/include/c++/v1/__algorithm/min.h:61:1: note: candidate function
> template not viable: requires single argument '__t', but 2 arguments were
> provided
>     min(initializer_list<_Tp> __t)
>     ^
>     /usr/include/c++/v1/__algorithm/min.h:31:1: note: candidate function
> template not viable: requires 3 arguments, but 2 were provided
>     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
>     ^
>     1 error generated.
>
>     Reported by:    pkg-fallout
>

--000000000000c38c3205e3880dd3
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">On Mon, Jul 11, 2022 at 9:53 PM Po-Chuan =
Hsieh &lt;<a href=3D"mailto:sunpoet@freebsd.org">sunpoet@freebsd.org</a>&gt=
; wrote:<br></div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quo=
te" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204=
);padding-left:1ex">The branch main has been updated by sunpoet:<br>
<br>
URL: <a href=3D"https://cgit.FreeBSD.org/ports/commit/?id=3Db37ebe5a89a3312=
5910ddcdce34c31f0d700b2b5" rel=3D"noreferrer" target=3D"_blank">https://cgi=
t.FreeBSD.org/ports/commit/?id=3Db37ebe5a89a33125910ddcdce34c31f0d700b2b5</=
a><br>
<br>
commit b37ebe5a89a33125910ddcdce34c31f0d700b2b5<br>
Author:=C2=A0 =C2=A0 =C2=A0Po-Chuan Hsieh &lt;sunpoet@FreeBSD.org&gt;<br>
AuthorDate: 2022-07-11 13:49:19 +0000<br>
Commit:=C2=A0 =C2=A0 =C2=A0Po-Chuan Hsieh &lt;sunpoet@FreeBSD.org&gt;<br>
CommitDate: 2022-07-11 13:49:19 +0000<br>
<br>
=C2=A0 =C2=A0 devel/libdap: Fix build with Clang 13+<br></blockquote><div><=
br></div><div>It should be &quot;devel/libdap: Fix build on i386&quot;.</di=
v><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0p=
x 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
=C2=A0 =C2=A0 HTTPCache.cc:1034:14: error: no matching function for call to=
 &#39;min&#39;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 line[min(line_buf_len, strnlen(li=
ne, line_buf_len))-1] =3D &#39;\0&#39;; // erase newline<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~<br>
=C2=A0 =C2=A0 /usr/include/c++/v1/__algorithm/min.h:40:1: note: candidate t=
emplate ignored: deduced conflicting types for parameter &#39;_Tp&#39; (&#3=
9;unsigned long&#39; vs. &#39;size_t&#39; (aka &#39;unsigned int&#39;))<br>
=C2=A0 =C2=A0 min(const _Tp&amp; __a, const _Tp&amp; __b)<br>
=C2=A0 =C2=A0 ^<br>
=C2=A0 =C2=A0 /usr/include/c++/v1/__algorithm/min.h:51:1: note: candidate t=
emplate ignored: could not match &#39;initializer_list&lt;_Tp&gt;&#39; agai=
nst &#39;unsigned long&#39;<br>
=C2=A0 =C2=A0 min(initializer_list&lt;_Tp&gt; __t, _Compare __comp)<br>
=C2=A0 =C2=A0 ^<br>
=C2=A0 =C2=A0 /usr/include/c++/v1/__algorithm/min.h:61:1: note: candidate f=
unction template not viable: requires single argument &#39;__t&#39;, but 2 =
arguments were provided<br>
=C2=A0 =C2=A0 min(initializer_list&lt;_Tp&gt; __t)<br>
=C2=A0 =C2=A0 ^<br>
=C2=A0 =C2=A0 /usr/include/c++/v1/__algorithm/min.h:31:1: note: candidate f=
unction template not viable: requires 3 arguments, but 2 were provided<br>
=C2=A0 =C2=A0 min(const _Tp&amp; __a, const _Tp&amp; __b, _Compare __comp)<=
br>
=C2=A0 =C2=A0 ^<br>
=C2=A0 =C2=A0 1 error generated.<br>
<br>
=C2=A0 =C2=A0 Reported by:=C2=A0 =C2=A0 pkg-fallout<br>
</blockquote></div></div>

--000000000000c38c3205e3880dd3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMHz58S25RV9%2BKtM78NCV=9xCwvD5ts6UXq1OYh95SOhRoM20w>