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

MacPorts noreply at macports.org
Sat Mar 9 05:35:52 UTC 2024


#69462: libiconv @1.17: install errors on lib/encodings.def with an "incompatible
function pointer types initializing" error.
-----------------------+------------------------
  Reporter:  rbeyer    |      Owner:  ryandesign
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.9.1
Resolution:            |   Keywords:
      Port:  libiconv  |
-----------------------+------------------------

Comment (by nanigashi-uji):

 I met the same error.

 Type of of last argument of functions, 'utf8mac_mbtowc' and
 'utf8mac_wctomb', in 'lib/utf8mac.h' (added by patch-utf8mac.diff) should
 be 'size_t', but 'int' in patch-utf8mac.diff.

 This issue can be solved by correcting them as follows.

 static int
 utf8mac_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, size_t
 n)

 static int
 utf8mac_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, size_t n) /* n
 == 0 is acceptable */

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


More information about the macports-tickets mailing list