<br><br><div class="gmail_quote">On Tue, May 22, 2012 at 12:58 PM, Tor Lillqvist <span dir="ltr"><<a href="mailto:tml@iki.fi" target="_blank">tml@iki.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">> However, I can't seem to resolve<br>
> a problem building the nss module.<br>
<br>
</div>Hmm, in cross-compilation the nss module isn't built for the build<br>
platform (and for Android, not for the host platform either), so is<br>
this in a native Mac build tree I assume.<br></blockquote><div><br></div><div>It is, I thought I'd "do a quick build for mac first".</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
So not directly related to the Android work, but yeah, it is good to<br>
have a native build, too. I guess you did your Easy Hack etc work on<br>
some other platform than the Mac then? </blockquote><div><br></div><div>I did the easy hack on Ubuntu for simplicity. I wanted to switch to the mac as it's a much more powerful machine, but I can retreat if need be. </div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Build problems were really<br>
supposed to be sorted out before GSoC coding start.</blockquote><div><br></div><div>I'm really sorry about that. The reason as you know was my final exams stretched on for pretty much the whole community bonding period. However, since that's my problem, I had always intended to sprint to catch up as I've no other commitments for the next 12 weeks. </div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Anyway, I think your problem is that you are (accidentally) building<br>
64-bit code, you need to include either the "-arch i386" or "-m32"<br>
option in your CC and CXX. Also -mmacosx-version-min=10.6 . And you<br>
probably didn't pass the --with-macosx-version-min-required=10.6<br>
--with-macosx-sdk=10.6 options to autogen.sh.<br></blockquote><div><br></div><div>I thought I had, autogen.lastrun:</div><div><br></div><div><div>CC_FOR_BUILD=ccache clang -arch i386 -mmacosx-version-min=10.6</div><div>CXX_FOR_BUILD=ccache clang++ -arch i386 -mmacosx-version-min=10.6</div>
<div>--with-build-platform-configure-options=--with-macosx-version-min-required=10.6</div><div>--with-macosx-sdk=10.6</div><div>--disable-mozilla</div><div>--disable-nss-module #I've tried with / without this</div><div>
--without-doxygen</div><div>--without-myspell-dicts</div></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
(Yeah, all that should ideally be automated in <a href="http://configure.in" target="_blank">configure.in</a>, but then<br>
support for a current tool-chain in the Mac build is a work in<br>
progress.)<br>
<br>
--tml<br>
</blockquote></div><br>