Changes between Initial Version and Version 1 of Ticket #20762


Ignore:
Timestamp:
Aug 24, 2009, 6:15:45 AM (15 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

I assume you are using Tiger, because AFAIK this problem only shows on Tiger, not Leopard. I reported this problem to the developers in May 2008. They did not respond.

The definition of the iconv function differs by OS and OS version and sometimes even depending on how you compile libiconv (e.g. if you use the +universal variant and whether you select 64-bit architectures or not).

If you make the proposed change, it will work for you, but start breaking for others. Software that uses iconv must detect the correct way to call the iconv function on the current OS. We could make a patch and apply it on platform darwin 8 only....

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20762

    • Property Owner changed from macports-tickets@… to ryandesign@…
    • Property Status changed from new to assigned
  • Ticket #20762 – Description

    initial v1  
    11I get the following error when upgrading libofx:
    22
     3{{{
    34ofx_preproc.cpp: In function 'int ofx_proc_file(void*, const char*)':
    45ofx_preproc.cpp:196: error: invalid conversion from 'char**' to 'const char**'
    56ofx_preproc.cpp:196: error:   initializing argument 2 of 'size_t libiconv(void*, const char**, size_t*, char**, size_t*)'
     7}}}
    68
    79If you go down to line 191 of ofx_preproc.cpp and change "char * inchar = (char *)s_buffer.c_str();" to "'''const''' char * inchar = (char *)s_buffer.c_str();", it compiles, but I don't know how that affects anything.