Bug 2336251 - MagicPoint fails to build with gcc 15/C23 ("mgp.c:114:14: error: conflicting types for 'expandPath'; have 'char *(char *)'")
Summary: MagicPoint fails to build with gcc 15/C23 ("mgp.c:114:14: error: conflicting ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: MagicPoint
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Hans de Goede
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: gcc-15-mass-prebuild
TreeView+ depends on / blocked
 
Reported: 2025-01-07 21:33 UTC by Dave Malcolm
Modified: 2025-02-04 14:40 UTC (History)
1 user (show)

Fixed In Version: MagicPoint-1.13a-42.fc42
Clone Of:
Environment:
Last Closed: 2025-02-04 14:40:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dave Malcolm 2025-01-07 21:33:37 UTC
I'm experimentally rebuilding rawhide with the not-yet-released GCC 15 to see if anything breaks, and to help write the porting guide.  See https://fedoraproject.org/wiki/User:Dmalcolm/gcc-15

My test build with GCC 15 failed:
https://copr.fedorainfracloud.org/coprs/dmalcolm/gcc-15-smoketest-3.failed/build/8476037/

whereas my test build with GCC 14 succeeded:
https://copr.fedorainfracloud.org/coprs/dmalcolm/gcc-15-smoketest-3.failed.checker/build/8477585/

Looking at the failure logs e.g.
https://download.copr.fedorainfracloud.org/results/dmalcolm/gcc-15-smoketest-3.failed/fedora-rawhide-x86_64/08476037-MagicPoint/builder-live.log.gz

I see:

mgp.c:114:14: error: conflicting types for 'expandPath'; have 'char *(char *)'
  114 | extern char *expandPath __P((char *));
      |              ^~~~~~~~~~
In file included from mgp.h:73,
                 from mgp.c:34:
image/xloadimage.h:79:7: note: previous declaration of 'expandPath' with type 'char *(void)'
   79 | char *expandPath(); /* path.c */
      |       ^~~~~~~~~~

Looks like C23 issues; see https://fedoraproject.org/wiki/User:Dmalcolm/gcc-15#C23:_Function_prototypes_with_empty_params_change_from_implicit_%22int%22_to_%22void%22

Reproducible: Always

Comment 1 Fedora Update System 2025-02-04 14:38:05 UTC
FEDORA-2025-6b80dd2690 (MagicPoint-1.13a-42.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-6b80dd2690

Comment 2 Fedora Update System 2025-02-04 14:40:52 UTC
FEDORA-2025-6b80dd2690 (MagicPoint-1.13a-42.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


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