Tor Browser Max OS X Lion build failing

trying compile from code of FIREFOX 17.0.7SER (TorBrowser) from: https://git.torproject.org/tor-browser.git

Looking for solution/workaround to the following

git clone https://git.torproject.org/tor-browser.git git checkout tor-browser-17.0.7esr-1 cd tor-browser

generates compiler errors of this type

  • tor-browser/js/src/jsdbgapi.h:257:1: error: 'JS_GetFrameReturnValue' has C-linkage specified, but returns user-defined type 'jsval' (aka 'JS::Value') which is incompatible with C [-Werror,-Wreturn-type-c-linkage]

.mozconfig comes from git as:

. $topsrcdir/browser/config/mozconfig

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@ mk_add_options MOZ_APP_DISPLAYNAME=TorBrowser mk_add_options MOZ_MAKE_FLAGS="-j4" mk_add_options MOZILLA_OFFICIAL=1 mk_add_options BUILD_OFFICIAL=1

ac_add_options --enable-optimize #ac_add_options --disable-optimize ac_add_options --enable-official-branding ac_add_options --enable-strip ac_add_options --disable-tests ac_add_options --disable-debug ac_add_options --disable-maintenance-service ac_add_options --disable-crashreporter ac_add_options --disable-webrtc

Trac:
Username: mcooperman