Bug 2256837 - pcb-rnd: FTBFS with GCC 14 due to problematic XRenderCreatePicture call
Summary: pcb-rnd: FTBFS with GCC 14 due to problematic XRenderCreatePicture call
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: pcb-rnd
Version: 40
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PortingToModernCHelpNeeded
TreeView+ depends on / blocked
 
Reported: 2024-01-04 17:23 UTC by Florian Weimer
Modified: 2025-05-16 07:50 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-05-16 07:50:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Florian Weimer 2024-01-04 17:23:43 UTC
GCC 14 will fail the build at  this point:

../src/librnd/plugins/hid_lesstif/main.c: In function ‘pcb_ltf_draw_pixmap_’:
../src/librnd/plugins/hid_lesstif/main.c:768:78: error: passing argument 2 of ‘X
RenderCreatePicture’ makes integer from pointer without a cast
  768 |                         lpm->p_img_scaled = XRenderCreatePicture(display, lpm->img_scaled, XRenderFindVisualFormat(display, DefaultVisual(display, screen)), 0, 0);
      |                                                                           ~~~^~~~~~~~~~~~
      |                                                                              |
      |                                                                              XImage *
In file included from ../src/librnd/plugins/hid_lesstif/xincludes.h:39,
                 from ../src/librnd/plugins/hid_lesstif/ltf_stdarg.h:1,
                 from ../src/librnd/plugins/hid_lesstif/main.c:37:
/usr/include/X11/extensions/Xrender.h:548:53: note: expected ‘Drawable’ {aka ‘long unsigned int’} but argument is of type ‘XImage *’
  548 | Picture XRenderCreatePicture(Display *dpy, Drawable drawable,
      |                                            ~~~~~~~~~^~~~~~~~

I don't think it's possible to use an XImage as a Drawable in this way, but I don't know enough about X11 to fix this.



Reproducible: Always

Comment 1 Aoife Moloney 2024-02-15 23:08:56 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 2 Fedora Admin user for bugzilla script actions 2025-01-28 14:10:26 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 3 Aoife Moloney 2025-04-25 10:13:31 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '40'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 40 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 4 Aoife Moloney 2025-05-16 07:50:03 UTC
Fedora Linux 40 entered end-of-life (EOL) status on 2025-05-13.

Fedora Linux 40 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.