[MacPorts] #70492: bluefish @2.2.10_3: error: incompatible function pointer types (was: bluefish @2.2.10_3 fails to build on macOS 14.5 - Intel & Apple Silicon)

MacPorts noreply at macports.org
Tue Aug 6 04:18:28 UTC 2024


#70492: bluefish @2.2.10_3: error: incompatible function pointer types
-----------------------+------------------------
  Reporter:  khorton   |      Owner:  ryandesign
      Type:  defect    |     Status:  accepted
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.9.3
Resolution:            |   Keywords:
      Port:  bluefish  |
-----------------------+------------------------
Changes (by ryandesign):

 * owner:  (none) => ryandesign
 * status:  new => accepted
 * version:   => 2.9.3


Comment:

 The error in the log is:

 {{{
 infb_dtd.c:208:49: error: incompatible function pointer types passing
 'void (void *, void *, xmlChar *)' (aka 'void (void *, void *, unsigned
 char *)') to parameter of type 'xmlHashScanner' (aka 'void (*)(void *,
 void *, const unsigned char *)') [-Wincompatible-function-pointer-types]
 xmlHashScan((xmlHashTablePtr)(dtd->elements),infb_dtd_element_to_group,ref);
 ^~~~~~~~~~~~~~~~~~~~~~~~~
 /opt/local/include/libxml2/libxml/hash.h:228:22: note: passing argument to
 parameter 'scan' here
                                          xmlHashScanner scan,
                                                         ^
 1 error generated.
 }}}

 Newer compilers error about this sort of thing whereas older compilers let
 it slide with just a warning.

 This is the upstream bug report:
 https://sourceforge.net/p/bluefish/tickets/66

 Here's the fix: https://sourceforge.net/p/bluefish/code/8905/

 The fix is included in bluefish 2.2.15 to which I will update the port.

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


More information about the macports-tickets mailing list