[MacPorts] #72321: dconf @0.26.1: incompatible function pointer types (was: Summary: dconf 0.26.1 build failure on macOS 15 (arm64) - incompatible function pointer types)

MacPorts noreply at macports.org
Thu Apr 10 21:43:10 UTC 2025


#72321: dconf @0.26.1: incompatible function pointer types
---------------------------+---------------------------
  Reporter:  davidwalter0  |      Owner:  dbevans
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.10.5
Resolution:                |   Keywords:  sequoia arm64
      Port:  dconf         |
---------------------------+---------------------------
Changes (by ryandesign):

 * status:  new => assigned
 * keywords:   => sequoia arm64
 * milestone:  MacPorts Future =>
 * owner:  (none) => dbevans


Old description:

> Summary: dconf 0.26.1 build failure on macOS 15 (arm64) - incompatible
> function pointer types
>
> Description:
> When attempting to install gnome-terminal, the dconf dependency (version
> 0.26.1) fails to build on macOS 15 with Apple Silicon (arm64). The error
> occurs during compilation with an incompatible function pointer type
> error.
>
> Steps to reproduce:
> 1. `sudo port install gnome-terminal`
> 2. Build fails on dconf dependency
>
> Build error:
> dconf-update.c:527:9: error: incompatible function pointer types
> assigning to 'GCompareFunc' (aka 'int (*)(const void *, const void *)')
> from 'int (const char *, const char *)' [-Wincompatible-function-pointer-
> types]
> :info:build   527 |         _tmp4_ = g_strcmp0;
> :info:build       |                ^ ~~~~~~~~~
>
> System information:
> - macOS version: 15
> - Architecture: arm64
> - MacPorts version: [your version here]
> - Xcode/Command Line Tools version: [your version here]
>
> Additional notes:
> The error appears to be due to a type mismatch where g_strcmp0 (which has
> a signature of int (const char *, const char *)) is being assigned to a
> GCompareFunc variable which expects int (*)(const void *, const void *).
>
> Possible solutions:
> 1. Update dconf to a newer version
> 2. Apply a patch to fix the type casting
> 3. Modify the Portfile to use appropriate compiler flags
>
> Full build log: [attach the full build log from
> /opt/local/var/macports/logs/]

New description:

 When attempting to install gnome-terminal, the dconf dependency (version
 0.26.1) fails to build on macOS 15 with Apple Silicon (arm64). The error
 occurs during compilation with an incompatible function pointer type
 error.

 Steps to reproduce:
 1. `sudo port install gnome-terminal`
 2. Build fails on dconf dependency

 Build error:
 {{{
 dconf-update.c:527:9: error: incompatible function pointer types assigning
 to 'GCompareFunc' (aka 'int (*)(const void *, const void *)') from 'int
 (const char *, const char *)' [-Wincompatible-function-pointer-types]
 :info:build   527 |         _tmp4_ = g_strcmp0;
 :info:build       |                ^ ~~~~~~~~~
 }}}

 System information:
 - macOS version: 15
 - Architecture: arm64
 - MacPorts version: [your version here]
 - Xcode/Command Line Tools version: [your version here]

 Additional notes: \\
 The error appears to be due to a type mismatch where g_strcmp0 (which has
 a signature of int (const char *, const char *)) is being assigned to a
 GCompareFunc variable which expects int (*)(const void *, const void *).

 Possible solutions: \\
 1. Update dconf to a newer version
 2. Apply a patch to fix the type casting
 3. Modify the Portfile to use appropriate compiler flags

 Full build log: [attach the full build log from
 /opt/local/var/macports/logs/]

--

-- 
Ticket URL: <https://trac.macports.org/ticket/72321#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list