alexor wrote: > Hi, > When I run fink install qt4-x11 I get a compile error: > > codecs/qiconvcodec.cpp:107: error: invalid conversion from 'const char**' to > 'char**'
This was reported a couple of weeks ago, and there was a flurry of activities about it one month ago. I don't remember quite well, and from the mail archives it is hard to discern, but I think there were a couple of patches proposed, but none actually applied, the conclusion being that this error only happens to people with bad luck ;-) I even find a message from myself on December 1st where I seem to be saying that qt4-x11 did not build, but I also have a successful build log from the same day. And I just now reran the build without problem. It is hard to see how the error can happen, unless you have an old version of Fink's libiconv-dev installed (current version 1.11-11), or you have a file "iconv.h" at a place like /usr/local/include/. Even then, it is somehow impossible, given the command line you are showing: It contains -DGNU_LIBICONV, meaning that earlier on it had detected (correctly) that iconv.h was GNU-flavored. In addition it complains about > codecs/qiconvcodec.cpp:107: error: initializing argument 2 of 'size_t > libiconv(void*, char**, size_t*, char**, size_t*)' This means that it did find a libiconv.h that, like the one from Fink, redefines the name of the iconv() function to libiconv(). And finally, the qiconvcodec.cpp has the following code > #ifdef GNU_LIBICONV > const char *inBytes = chars; which typedefs the object in question correctly as const char**, as soon as GNU_LIBICONV is defined, which is the case in your situation. I don't know where the error message gets the char** from it is complaining about. In short, since this error defies rational explanation, only voodoo mesures, like moving /usr/local out of the way while building, or rebuilding libiconv-dev, can be recommended. Oh, last-minute question which I should have asked earlier: What OSX version and architecture are you on? I was talking about 10.5/intel. -- Martin ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users