FreeBSD Bugzilla – Attachment 242794 Details for
Bug 272014
audio/festival: fix build with clang 16
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
audio/festival: fix build with clang 16
audio__festival-fix-clang16-build-1.diff (text/plain), 1.17 KB, created by
Dimitry Andric
on 2023-06-15 16:33:23 UTC
(
hide
)
Description:
audio/festival: fix build with clang 16
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2023-06-15 16:33:23 UTC
Size:
1.17 KB
patch
obsolete
>commit 6f7b1dcd2c4790914680f76b64c77bbee4ae71ea >Author: Dimitry Andric <dim@FreeBSD.org> >Date: 2023-06-15 18:31:34 +0200 > > audio/festival: fix build with clang 16 > > Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. > Because audio/festival's build infrastructure does not explicitly set > its C++ standard, this leads to an error: > > regexp.cc:178:22: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] > STATIC char *regnext(register char *p); > ^~~~~~~~~ > > To work around the error, define the register keyword away using > CXXFLAGS. > >diff --git a/audio/festival/Makefile b/audio/festival/Makefile >index 05001c346ef7..e7a68fb07925 100644 >--- a/audio/festival/Makefile >+++ b/audio/festival/Makefile >@@ -27,7 +27,7 @@ WWW= https://www.cstr.ed.ac.uk/projects/festival/ > OPTIONS_DEFINE= NAS > OPTIONS_DEFAULT=NAS > >-CXXFLAGS+= -DFTLIBDIR=${LOCALBASE}/share/festival/lib -fno-delete-null-pointer-checks >+CXXFLAGS+= -DFTLIBDIR=${LOCALBASE}/share/festival/lib -fno-delete-null-pointer-checks -Dregister= > CONFIGURE_WRKSRC=${WRKDIR}/festival > USES= gmake > SPEECHTOOLS= ${WRKSRC}/speech_tools
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 272014
: 242794