Opened 7 weeks ago

Closed 7 weeks ago

#70492 closed defect (fixed)

bluefish @2.2.10_3: error: incompatible function pointer types

Reported by: khorton (Kevin Horton) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc:
Port: bluefish

Description

Bluefish fails to build, failing with:

:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_bluefish/bluefish/work/bluefish-2.2.10/src/plugin_infbrowser'
:info:build make[3]: *** [all-recursive] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_bluefish/bluefish/work/bluefish-2.2.10/src/plugin_infbrowser'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_bluefish/bluefish/work/bluefish-2.2.10/src'
:info:build make[1]: *** [all] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_bluefish/bluefish/work/bluefish-2.2.10/src'
:info:build make: *** [all-recursive] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_bluefish/bluefish/work/bluefish-2.2.10'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_bluefish/bluefish/work/bluefish-2.2.10" && /usr/bin/make -j16 -w all 
:info:build Exit code: 2
:error:build Failed to build bluefish: command execution failed
:debug:build Error code: CHILDSTATUS 3240 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 10)
:debug:build     invoked from within
:debug:build "$procedure $targetname"

The build seems to fail in the same way on Intel and Apple Silicon. Full build log attached

Attachments (1)

main.log (907.8 KB) - added by khorton (Kevin Horton) 7 weeks ago.
Build log

Download all attachments as: .zip

Change History (3)

Changed 7 weeks ago by khorton (Kevin Horton)

Attachment: main.log added

Build log

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

Owner: set to ryandesign
Status: newaccepted
Summary: bluefish @2.2.10_3 fails to build on macOS 14.5 - Intel & Apple Siliconbluefish @2.2.10_3: error: incompatible function pointer types
Version: 2.9.3

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.

comment:2 Changed 7 weeks ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In c3bbf3e9552ede073a0e6704298e36947a89e3e0/macports-ports (master):

bluefish: Update to 2.2.15

Also switch to enchant2 and python312.

Closes: #70492

Note: See TracTickets for help on using tickets.