hplip fails to build with clang 15

Bug #1989798 reported by Daniel Pielmeier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned
Gentoo Linux
Fix Released
Medium

Bug Description

hplip fails to build with clang 15. A link to a patch can be found at the corresponding gentoo bug.

Revision history for this message
In , jasiupsota (jasiupsota-gentoo-bugs) wrote :

Obvious solution:
--- a/prnt/hpps/pserror.c
+++ b/prnt/hpps/pserror.c
@@ -24,7 +24,7 @@ extern char *program ; /* Defined by mai
 void message(int flags, char *format, ...)
 {
   va_list args ;
- static column = 0 ; /* current screen column for message wrap */
+ static int column = 0 ; /* current screen column for message wrap */
   char msgbuf[MAX_MESSAGE] ; /* buffer in which to put the message */
   char *bufptr = msgbuf ; /* message buffer pointer */

proposed by Khem Raj <email address hidden>, found here:
https://cgit.openembedded.org/meta-openembedded/plain/meta-oe/recipes-extended/hplip/hplip/0003-pserror.c-Define-column-to-be-int-explcitly.patch

Revision history for this message
In , sam (sam-gentoo-bugs) wrote :

I assume this is with Clang 15.

In future, please do include the full build.log & emerge --info for completeness.

Revision history for this message
In , jasiupsota (jasiupsota-gentoo-bugs) wrote :

Yes, Clang-15. "New" ;-), C99 behaviour.

Revision history for this message
In , infra-gitbot (infra-gitbot-gentoo-bugs) wrote :

The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ffbc3953bf242a0fd241a0a2395a3d9616cd5b4

commit 6ffbc3953bf242a0fd241a0a2395a3d9616cd5b4
Author: Daniel Pielmeier <email address hidden>
AuthorDate: 2022-09-15 18:56:41 +0000
Commit: Daniel Pielmeier <email address hidden>
CommitDate: 2022-09-15 18:56:41 +0000

    net-print/hplip: Update patchset to fix build with Clang 15

    Signed-off-by: Daniel Pielmeier <email address hidden>

    Closes: https://bugs.gentoo.org/869785

 net-print/hplip/Manifest | 1 +
 net-print/hplip/hplip-3.22.6.ebuild | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

Changed in gentoo:
importance: Unknown → Medium
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.