Opened 7 months ago

Last modified 7 months ago

#72321 assigned defect

dconf @0.26.1: incompatible function pointer types

Reported by: davidwalter0 Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.10.5
Keywords: sequoia arm64 Cc:
Port: dconf

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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/]

Attachments (1)

main.log (709.0 KB) - added by davidwalter0 7 months ago.
build log

Download all attachments as: .zip

Change History (2)

Changed 7 months ago by davidwalter0

Attachment: main.log added

build log

comment:1 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: sequoia arm64 added
Milestone: MacPorts Future
Owner: set to dbevans
Status: newassigned
Summary: Summary: dconf 0.26.1 build failure on macOS 15 (arm64) - incompatible function pointer typesdconf @0.26.1: incompatible function pointer types
Note: See TracTickets for help on using tickets.