<meta charset="utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Thanks again. It looks like you are right ... there are no function prototypes for the symbols libiconv, libiconv_open and libiconv_close in /Developer/SDKs/MacOSX10.6.sdk/usr/include/iconv.h which corresponds to /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libiconv.dylib<div>
<br></div><div>Question is ... which flag do I set to have the build pick up the MacOSX10.6.sdk version?<div><div><br></div><div>Just not sure what VirtualBox build flag makes it pick up the right header. </div></div></div>
</span><br><div class="gmail_quote">On Tue, Sep 13, 2011 at 7:10 AM, François Revol <span dir="ltr"><<a href="mailto:revol@free.fr">revol@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Le 13/09/2011 16:05, Arend Dittmer a écrit :<br>
<div class="im">> Thank you Darshan and Francois for getting back to me. For the build that<br>
> fails the linker tries to link with libiconv in<br>
> /Developer/SDKs/MacOSX10.6.sdk:<br>
</div>[...]<br>
<div class="im">> If I manually run the command in the same directory and force linking with<br>
> the macports libiconv it actually builds. The macports library is universal:<br>
<br>
</div>It's possible that it always finds the iconv headers from MacPorts<br>
first regardless, then it fails linking with the SDK one due to<br>
mismatched headers and lib.<br>
<div class="im"><br>
> The issue is that libiconv in /Developer/SDKs/MacOSX10.6.sdk* *does not have<br>
> the _libiconv symbol (and the other symbols that are missing which are<br>
> _libiconv_open and _libiconv_close) for 64-bit:<br>
<br>
</div>By experience, there are several "versions" of the iconv symbol names.<br>
This is meant to make it possible to link with an external libiconv or<br>
the one included with the libc on some platforms.<br>
For ex. when defining LIBICONV_PLUG.<br>
<br>
If it picked up the wrong headers then it will try to use wrong symbols.<br>
<font color="#888888"><br>
François.<br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br>Arend Dittmer<br>TheMicroComputer<br>Phone: 415 497 7797<br>e-mail: <a href="mailto:arend@mypocketxp.com">arend@mypocketxp.com</a><br><a href="http://www.mypocketxp.com">http://www.mypocketxp.com</a> <br>