Created attachment 243417 [details] Add -std=c++11 to CXXFLAGS std::byte from C++17 conflicts with internal type definitions. Adding -std=c++11 to the C++ flags fixes the problem (see attached patch).
did you report this upstream?
(In reply to Mina Galić from comment #1) No, I didn´t.
Unless upstream ignores CXXFLAGS (which should be fixed if that the case) use "USE_CXXSTD= c++11" in the port Makefile instead.
(In reply to Daniel Engberg from comment #3) if that the case --> if that is the case Reference: https://cgit.freebsd.org/ports/tree/Mk/bsd.port.mk#n354
(In reply to Daniel Engberg from comment #3) Setting ""USE_CXXSTD= c++11" in the port makefile does not work for me. What is the problem with changing the already existing patch to the upstream Makefile?
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=45f0113f4c6a3921e14a1a3fb1c201f0b3e68c9d commit 45f0113f4c6a3921e14a1a3fb1c201f0b3e68c9d Author: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> AuthorDate: 2023-07-17 23:19:15 +0000 Commit: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> CommitDate: 2023-07-17 23:19:15 +0000 security/veracrypt: Fix build on 14.x - Bump PORTREVISION PR: 272531 Reported by: Lutz Bichler <Lutz.Bichler _at_ gmail.com> security/veracrypt/Makefile | 2 ++ security/veracrypt/files/patch-src_Makefile | 12 ++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-)
I have committed a patch file. It should be work right now. Thanks for your PR!