Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#24 build fail on ofx_preproc.cpp

v1.0_(example)
closed
nobody
5
2015-01-03
2008-08-25
Halton Huo
No

I'm building libofx 0.9.0 under Solaris, will fail on

/ws/onnv-tools-prc/SUNWspro/SS12/bin/CC -DHAVE_CONFIG_H -I. -I.. -I. -I../inc -I/usr/include/OpenSP -DMAKEFILE_DTD_PATH=\"/usr/share/libofx/dtd/\" -g -c ofx_preproc.cpp -KPIC -DPIC -o .libs/ofx_preproc.o
"ofx_preproc.cpp", line 195: Error: Formal argument 2 of type const char** in call to iconv(_iconv_info*, const char**, unsigned*, char**, unsigned*) is being passed char**.

Discussion

  • Halton Huo
    Halton Huo
    2008-08-25

    Logged In: YES
    user_id=1569662
    Originator: YES

    I can not upload attachment, so paste patch here:

    --- libofx-0.9.0/lib/ofx_preproc.cpp.orig 2008-08-25 19:14:09.988041000 +0800
    +++ libofx-0.9.0/lib/ofx_preproc.cpp 2008-08-25 19:26:05.994907000 +0800
    @@ -185,7 +185,7 @@
    memset(iconv_buffer,0,READ_BUFFER_SIZE);
    size_t inbytesleft = strlen(s_buffer.c_str());
    size_t outbytesleft = READ_BUFFER_SIZE;
    -#ifdef OS_WIN32
    +#if defined(OS_WIN32) || defined(__sun)
    const char * inchar = (const char *)s_buffer.c_str();
    #else
    char * inchar = (char *)s_buffer.c_str();

     
  • Committed to git today (sorry for the long hibernate on this one)

     
    • status: open --> closed
    • Group: --> v1.0_(example)