FreeBSD Bugzilla – Attachment 241682 Details for
Bug 271031
textproc/html2text: fix build with clang 16
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
textproc/html2text: fix build with clang 16
textproc__html2text-fix-clang16-build-1.diff (text/plain), 1.48 KB, created by
Dimitry Andric
on 2023-04-23 19:14:31 UTC
(
hide
)
Description:
textproc/html2text: fix build with clang 16
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2023-04-23 19:14:31 UTC
Size:
1.48 KB
patch
obsolete
>commit f7cd9f626dbbe3870a15afafd3ca6943fe20c311 >Author: Dimitry Andric <dim@FreeBSD.org> >Date: 2023-04-23 21:07:29 +0200 > > textproc/html2text: fix build with clang 16 > > Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. > Because textproc/html2text's Makefile does not explicitly set its C++ > standard, this leads to several errors: > > /usr/local/lib/bison.cc:429:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] > register int yystate; > ^~~~~~~~~ > /usr/local/lib/bison.cc:430:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] > register int yyn; > ^~~~~~~~~ > /usr/local/lib/bison.cc:431:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] > register short *yyssp; > ^~~~~~~~~ > /usr/local/lib/bison.cc:432:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] > register YY_HTMLParser_STYPE *yyvsp; > ^~~~~~~~~ > > Add USE_CXXSTD=gnu++98 to avoid these errors. > >diff --git a/textproc/html2text/Makefile b/textproc/html2text/Makefile >index 394feb4b7524..89d894bebfea 100644 >--- a/textproc/html2text/Makefile >+++ b/textproc/html2text/Makefile >@@ -13,6 +13,7 @@ LICENSE= GPLv2+ > LICENSE_FILE= ${WRKSRC}/COPYING > > HAS_CONFIGURE= yes >+USE_CXXSTD= gnu++98 > > PORTDOCS= CHANGES CREDITS KNOWN_BUGS README TODO > PLIST_FILES= bin/html2text man/man1/html2text.1.gz man/man5/html2textrc.5.gz
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 271031
: 241682