Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944067 - =app-i18n/scim-1.4.18-r1 fails c23/gcc-15.0.0_pre20241117-r2: i18nMethod.c:84:28: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(struct _Xi18nCore *, TransportSW *, char *)'
Summary: =app-i18n/scim-1.4.18-r1 fails c23/gcc-15.0.0_pre20241117-r2: i18nMethod.c:84...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-20 02:25 UTC by tdr
Modified: 2024-11-20 02:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (tdr-emerge--info.txt,6.30 KB, text/plain)
2024-11-20 02:26 UTC, tdr
Details
build failure log (scim-1.4.18-r1.build.log,60.91 KB, text/plain)
2024-11-20 02:26 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-11-20 02:25:18 UTC
c23 is more strict than pervious c standards

Reproducible: Always

Steps to Reproduce:
emerge -1 gcc-15.0.0_pre20241117-r2
USE=-doc -gtk3 -static-libs -test" emerge -1 app-i18n/scim-1.4.18-r1
Actual Results:  
i18nMethod.c:84:28: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(struct _Xi18nCore *, TransportSW *, char *)' [-Wincompatible-pointer-types]
   84 |     {"X",               1, _Xi18nCheckXAddress},
      |                            ^~~~~~~~~~~~~~~~~~~
i18nMethod.c:84:28: note: (near initialization for '_TransR[0].checkAddr')
i18nMethod.c: In function 'CheckIMName':
i18nMethod.c:480:17: error: too many arguments to function '_TransR[i].checkAddr'
  480 |             if (_TransR[i].checkAddr (i18n_core,
      |                 ^~~~~~~


builds successfully with CFLAGS="${CFLAGS} -std=gnu17"
Comment 1 tdr 2024-11-20 02:26:01 UTC
Created attachment 910424 [details]
emerge --info
Comment 2 tdr 2024-11-20 02:26:41 UTC
Created attachment 910425 [details]
build failure log