Bug 272171 - print/hplip: error: ISO C++17 does not allow 'register' (LLVM16)
Summary: print/hplip: error: ISO C++17 does not allow 'register' (LLVM16)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Tijl Coosemans
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-23 23:12 UTC by O. Hartmann
Modified: 2023-06-25 16:56 UTC (History)
0 users

See Also:
tijl: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2023-06-23 23:12:29 UTC
On recent CURRENT (FreeBSD 14.0-CURRENT #0 main-n263767-764464af4968: Fri Jun 23 10:30:09 CEST 2023 amd64) with LLVM16 aboard, compiling port

print/hplip (hplip-3.23.5)

dies with error:

[...]
prnt/hpijs/compression.cpp:269:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-06-25 14:45:03 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1237feacf2ac1214abeb3b68b3f6412b7a90c418

commit 1237feacf2ac1214abeb3b68b3f6412b7a90c418
Author:     Tijl Coosemans <tijl@FreeBSD.org>
AuthorDate: 2023-06-25 14:30:09 +0000
Commit:     Tijl Coosemans <tijl@FreeBSD.org>
CommitDate: 2023-06-25 14:44:03 +0000

    print/hplip: Fix build with llvm16

    PR:             272171

 print/hplip/files/patch-Makefile.in                | 34 ++++++++++++++++------
 .../hplip/files/patch-prnt_cupsext_cupsext.c (new) | 16 ++++++++++
 .../hplip/files/patch-prnt_hpcups_Mode9.cpp (new)  | 11 +++++++
 .../patch-prnt_hpcups_ModeDeltaPlus.cpp (new)      | 13 +++++++++
 print/hplip/files/patch-prnt_hpps_pserror.c (new)  | 11 +++++++
 print/hplip/files/patch-scan_sane_bb__ledm.c (new) | 10 +++++++
 print/hplip/files/patch-scan_sane_http.c (new)     | 10 +++++++
 print/hplip/files/patch-scan_sane_orblite.c        | 22 ++++++++++++--
 8 files changed, 115 insertions(+), 12 deletions(-)
Comment 2 O. Hartmann 2023-06-25 16:56:22 UTC
Great, thank you!