Date: Fri, 28 Jul 2023 10:37:42 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: KIRIYAMA Kazuhiko <kiri@truefc.org> Cc: ports@freebsd.org Subject: Re: www/nginx-full failed with src/cxx_supportlib/IOTools/IOUtils.cpp:288:3: error: use of undeclared identifier 'random_shuffle' Message-ID: <FD0C471E-3764-4FC4-A430-7E5E23DAFA65@FreeBSD.org> In-Reply-To: <202307280145.36S1jdl3007993@kx.truefc.org> References: <202307280145.36S1jdl3007993@kx.truefc.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_179AFCD7-2617-4CFD-AB4B-6B02864B822F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 28 Jul 2023, at 03:45, KIRIYAMA Kazuhiko <kiri@truefc.org> wrote: > www/nginx-full failed with > "src/cxx_supportlib/IOTools/IOUtils.cpp:288:3: error: use of > undeclared identifier 'random_shuffle'" : std::random_shuffle has been removed from C++17, so either the code must = be adjusted to use std::shuffle, or the port has to be compiled with = C++14 or lower. Typically, you can add a line: USE_CXXSTD=3D c++14 to the port's Makefile, if the program respects CXXFLAGS. -Dimitry --Apple-Mail=_179AFCD7-2617-4CFD-AB4B-6B02864B822F Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCZMN+VgAKCRCwXqMKLiCW o7vYAKCFq8GhqYfmZqLcx3cxb//jr5xPkwCgpw6ZuVLC4JAd/xPy3o5s9our2Ww= =4Ka6 -----END PGP SIGNATURE----- --Apple-Mail=_179AFCD7-2617-4CFD-AB4B-6B02864B822F--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FD0C471E-3764-4FC4-A430-7E5E23DAFA65>