[MacPorts] #20762: libofx 0.9.1 fails to compile with "invalid conversion from 'char**' to 'const char**'"

MacPorts noreply at macports.org
Fri Aug 21 17:12:18 PDT 2009


#20762: libofx 0.9.1 fails to compile with "invalid conversion from 'char**' to
'const char**'"
------------------------------------+---------------------------------------
 Reporter:  trinidude4@…            |       Owner:  macports-tickets@…                   
     Type:  defect                  |      Status:  new                                  
 Priority:  Normal                  |   Milestone:                                       
Component:  ports                   |     Version:  1.7.1                                
 Keywords:                          |        Port:  libofx                               
------------------------------------+---------------------------------------
 I get the following error when upgrading libofx:

 ofx_preproc.cpp: In function 'int ofx_proc_file(void*, const char*)':
 ofx_preproc.cpp:196: error: invalid conversion from 'char**' to 'const
 char**'
 ofx_preproc.cpp:196: error:   initializing argument 2 of 'size_t
 libiconv(void*, const char**, size_t*, char**, size_t*)'

 If 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.

-- 
Ticket URL: <http://trac.macports.org/ticket/20762>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list