Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Dec 2023 12:30:32 +0000
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        tuexen@freebsd.org
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: devel/nspr: Fails to build on 1500008 5f71f9636efa
Message-ID:  <CAFDf7ULcNYuD4ZAWXCjgbcWBbdmWw2b0O1vb9phqjXCP5VhpJA@mail.gmail.com>
In-Reply-To: <CAFDf7UJBY9a=SX_iTE2TOxK_r%2BaK1NDizMdebuYeaL6Zb89QbQ@mail.gmail.com>
References:  <CAFDf7U%2BxbTuhS7nUzeZgVknMPyyfYxuakFtrE4=h-1LtFK_Yig@mail.gmail.com> <9EE91B0D-6CFB-464E-AB9C-3A15D77D55FB@freebsd.org> <CAFDf7UJBY9a=SX_iTE2TOxK_r%2BaK1NDizMdebuYeaL6Zb89QbQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000075e5aa060da533ac
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

(...)
-ansi =3D=3D Same as -std=3Dc89

So it seems correct to remove it when -std=3Dc99 is used.

Nuno Teixeira <eduardo@freebsd.org> escreveu no dia sexta, 29/12/2023 =C3=
=A0(s)
12:03:

>
>
>
> I think we have two options:
>> 1. Build the ports with a C version of at least C99.
>>
>
> - Adding USE_CSTD=3Dc99
> - Removing -ansi:
> --- configure.orig     2023-12-29 11:54:11 UTC
> +++ configure
> -    CFLAGS=3D"$CFLAGS $(DSO_CFLAGS) -ansi -Wall"
> +    CFLAGS=3D"$CFLAGS $(DSO_CFLAGS) -Wall"
>
> Fix build.
>
> Notes:
>
> Adding USE_CSTD=3Dc99 doesn't fix build by itself like we seen on some po=
rts
> that were fixed by it.
>
> Something have changed from current 1500007 to 1500008.
>
>
>
>> 2. Remove the inline from tcp_[gs]et_flags().
>>
>> Best regards
>> Michael
>> > --
>> > Nuno Teixeira
>> > FreeBSD Committer (ports)
>>
>>
>
> --
> Nuno Teixeira
> FreeBSD Committer (ports)
>


--=20
Nuno Teixeira
FreeBSD Committer (ports)

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

<div dir=3D"ltr"><div>(...)</div><div>-ansi =3D=3D Same as -std=3Dc89</div>=
<div><br></div><div>So it seems correct to remove it when -std=3Dc99 is use=
d.<br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"=
gmail_attr">Nuno Teixeira &lt;<a href=3D"mailto:eduardo@freebsd.org">eduard=
o@freebsd.org</a>&gt; escreveu no dia sexta, 29/12/2023 =C3=A0(s) 12:03:<br=
></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><=
div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote"><br><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid=
 rgb(204,204,204);padding-left:1ex">
I think we have two options:<br>
1. Build the ports with a C version of at least C99.<br></blockquote><div><=
br></div><div>- Adding USE_CSTD=3Dc99</div><div>- Removing -ansi:<br>--- co=
nfigure.orig =C2=A0 =C2=A0 2023-12-29 11:54:11 UTC<br>+++ configure<br>- =
=C2=A0 =C2=A0CFLAGS=3D&quot;$CFLAGS $(DSO_CFLAGS) -ansi -Wall&quot;<br>+ =
=C2=A0 =C2=A0CFLAGS=3D&quot;$CFLAGS $(DSO_CFLAGS) -Wall&quot;</div><div><br=
></div><div>Fix build.</div><div><br></div><div>Notes:</div><div><br></div>=
<div>Adding USE_CSTD=3Dc99 doesn&#39;t fix build by itself like we seen on =
some ports that were fixed by it.<br></div><div><br></div><div>Something ha=
ve changed from current 1500007 to 1500008.</div><div><br></div><div>=C2=A0=
</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b=
order-left:1px solid rgb(204,204,204);padding-left:1ex">
2. Remove the inline from tcp_[gs]et_flags().<br>
<br>
Best regards<br>
Michael<br>
&gt; -- <br>
&gt; Nuno Teixeira<br>
&gt; FreeBSD Committer (ports)<br>
<br>
</blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre=
fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"l=
tr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committ=
er (ports)</span></div></div></div>
</blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre=
fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"l=
tr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committ=
er (ports)</span></div></div>

--00000000000075e5aa060da533ac--



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