Updating hplip-3.23.5 ti 3.23.5_1 fails with repeated "error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]" while buiding fax/filters/cdmfax/jetlib.cpp:7572:5 Des this port require C++14?
Created attachment 243761 [details] patch to fix fax/filters/cdmfax/jetlib.cpp with llvm16 (to apply with git am) After LLVM16 had been MFC'ed, this problem appeared on FreeBSD 13.2 also. Here's the simple patch that works for me: make 2 strings const char* and remove register keywords.
I confirm that this allows it compile and can't imagine that it breaks anything, but I don't have any device that would run this code. Thanks!
Maintainer timeout?
Sorry, just forgot about this, committed in ports f97941e2c029.
Patch fails to apply all three hunks. I can't see any difference in the manual diff I made (not a git diff) and the one committed, but I see: ===> Applying FreeBSD patches for hplip-3.23.5_1 from /usr/ports/print/hplip/files 3 out of 3 hunks failed--saving rejects to fax/filters/cdmfax/jetlib.cpp.rej ===> FAILED Applying FreeBSD patch-fax_filters_cdmfax_jetlib.cpp ===> Cleanly applied FreeBSD patch(es) patch-FindPPD.cpp patch-Makefile.in patch-base_g.py patch-base_os__utils.py patch-base_queues.py patch-base_utils.py patch-base_validation.py patch-check.py patch-common_utils.c patch-configure patch-doc_index.html patch-doc_troubleshooting.html patch-fax_backend_hpfax.py ===> FAILED to apply cleanly FreeBSD patch(es) patch-fax_filters_cdmfax_jetlib.cpp *** Error code 1 If I get a chance, I'll do more rigorous testing, but it's still broken.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=7753f124339fd7c52cddd7afd37c15b1aecf9cc9 commit 7753f124339fd7c52cddd7afd37c15b1aecf9cc9 Author: Tijl Coosemans <tijl@FreeBSD.org> AuthorDate: 2023-08-17 07:24:16 +0000 Commit: Tijl Coosemans <tijl@FreeBSD.org> CommitDate: 2023-08-17 07:32:01 +0000 print/hplip: Fix patch from f97941e2c029 by applying dos2unix first. PR: 272804 print/hplip/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)