[MacPorts] #69462: libiconv 1.17: install errors on lib/encodings.def with an "incompatible function pointer types initializing" error.

MacPorts noreply at macports.org
Fri Mar 8 17:51:21 UTC 2024


#69462: libiconv 1.17: install errors on lib/encodings.def with an "incompatible
function pointer types initializing" error.
--------------------+----------------------
 Reporter:  rbeyer  |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.9.1
 Keywords:          |       Port:  libiconv
--------------------+----------------------
 I have a brand-new M3 Max MBP, with Sonoma (14.3.1).  I installed MacPorts
 into /opt/macports/ and the very first thing I did with this shiny new
 MacPorts install was to port install git, which resulted in this error
 installing libiconv.  I port cleaned everything and still get this error
 when I try to install libiconv:


 {{{
 In file included from lib/genflags.c:109:
 lib/encodings.def:75:45: error: incompatible function pointer types
 initializing 'int (*)(conv_t, unsigned char *, ucs4_t, size_t)' (aka 'int
 (*)(struct conv_struct *, unsigned char *, unsigned int, unsigned long)')
 with an expression of type 'int (conv_t, unsigned char *, ucs4_t, int)'
 (aka 'int (struct conv_struct *, unsigned char *, unsigned int, int)')
 [-Wincompatible-function-pointer-types]
             { utf8mac_mbtowc, NULL },     { utf8mac_wctomb, NULL })
                                             ^~~~~~~~~~~~~~
 lib/genflags.c:104:34: note: expanded from macro 'DEFENCODING'
     struct wctomb_funcs ofuncs = xxx_ofuncs1,xxx_ofuncs2; \
                                  ^~~~~~~~~~~
 }}}

 Lots of ports depend on libiconv, and I was surprised that this brought me
 up short.  There were also some warnings about "extraneous parentheses" in
 the libiconv install, but they were just warnings.

-- 
Ticket URL: <https://trac.macports.org/ticket/69462>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list