Bug 1225777 - Package hplip does not build with gcc14 because of new errors
Summary: Package hplip does not build with gcc14 because of new errors
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Printing (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Johannes Meixner
QA Contact: Johannes Meixner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-05-31 20:15 UTC by Martin Jambor
Modified: 2024-07-16 08:03 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Jambor 2024-05-31 20:15:00 UTC
GCC 14 newly by default treats as errors a number of situations which
before were only warnings.  For more information see
https://gcc.gnu.org/gcc-14/porting_to.html and meta bug #1220571.

Because of this, package hplip fails to compile.  This can be seen online
at:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/hplip/standard/x86_64

It can be reproduced locally with command: osc build --clean
--alternative-project home:rguenther:nextgcc

Fedora dealt with these issues as described at
https://gitlab.com/fweimer-rh/fedora-modernc/-/blob/main/pkg/h/hplip.md?ref_type=heads
We seem to need at least https://bugs.launchpad.net/hplip/+bug/1997875
and https://bugs.launchpad.net/hplip/+bug/2048780

The error (that halts the build) is:

[   31s] prnt/hpps/pserror.c: In function ‘message’:
[   31s] prnt/hpps/pserror.c:27:10: error: type defaults to ‘int’ in declaration of ‘column’ [-Wimplicit-int]
[   31s]    27 |   static column = 0 ;           /* current screen column for message wrap */
[   31s]       |          ^~~~~~
Comment 2 Martin Wilck 2024-07-15 19:09:06 UTC
upstream: <https://bugs.launchpad.net/hplip/+bug/1997875
Comment 3 Martin Jambor 2024-07-16 08:03:07 UTC
(In reply to Martin Wilck from comment #2)
> upstream: <https://bugs.launchpad.net/hplip/+bug/1997875

Just to be clear, this launchpad bug corresponds to the patches in the first link referenced in comment #1 - from the same author.