thank you for the reply. I am using Leopard on a MacBook.

On closer inspection of the log there is 

c++ -c -pipe -Os -Wall -W -D__USE_WS_X11__ -I../../../mkspecs/darwin-g++ -I.
-I. -o iconv.o iconv.cpp
c++ -headerpad_max_install_names
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
-prebind -o iconv iconv.o     
Undefined symbols:
  "_iconv", referenced from:
      _main in iconv.o
  "_iconv_close", referenced from:
      _main in iconv.o
  "_iconv_open", referenced from:
      _main in iconv.o

There seems to be a lot of activity on the fink lists regarding this problem
(not only in relation to qt4-x11) and I am not sure how to resolve it. I
tried various suggestions that had been posted and I even tried moving the
/usr/local directory out of the way but to no avail - stumped. I reinstalled
libiconv-dev, libiconv-bin and libiconv.

Your explanation would make sense to me - it appears as though the header
and the library are not matching. 

thanks Alex





Martin Costabel wrote:
> 
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-qt4-x11-from-mac-newcomer-tp14554179p14565520.html
Sent from the fink-users mailing list archive at Nabble.com.


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

Reply via email to