Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 944067

Summary: =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 *)'
Product: Gentoo Linux Reporter: tdr <ted.d.rodgers>
Component: Current packagesAssignee: CJK Team <cjk>
Status: UNCONFIRMED ---    
Severity: normal CC: immoloism, ted.d.rodgers
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 880545    
Attachments: emerge --info
build failure log

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