If you&#39;re on 64bit, why do you want to compile as 32bit?<br><br>-Steve<br><br><br><br><div class="gmail_quote">On 12 August 2010 11:36, Seven Du <span dir="ltr">&lt;<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I&#39;m on Mac 10.6.4 64bit, a fresh clone of git head. I tried to build<br>
FS into 32 bit.<br>
<br>
I use the following command when configure:<br>
<br>
CFLAGS=&quot;-arch i386&quot; CXXFLAGS=&quot;-arch i386&quot; LDFLAGS=&quot;-arch i386&quot;<br>
./configure --prefix=/opt/fs-i386 --host=i386 --build=i386<br>
--target=i386<br>
<br>
<br>
However, when make, it throws some errors, I manually *change* the<br>
source like from &quot;ifdef&quot; to &quot;ifndef&quot; to trick it and make further,<br>
however, I still couldn&#39;t get fully built.<br>
<br>
some errors below. and ideas? thanks.<br>
<br>
<br>
<br>
src/switch_apr.c: In function &#39;switch_vasprintf&#39;:<br>
src/switch_apr.c:1024: warning: implicit declaration of function &#39;vasprintf&#39;<br>
<br>
<br>
<br>
src/switch_core_session.c: In function &#39;switch_core_session_thread&#39;:<br>
src/switch_core_session.c:1193: warning: format &#39;%d&#39; expects type<br>
&#39;int&#39;, but argument 8 has type &#39;switch_size_t&#39;<br>
src/switch_core_session.c:1203: warning: format &#39;%d&#39; expects type<br>
&#39;int&#39;, but argument 8 has type &#39;switch_size_t&#39;<br>
src/switch_core_session.c:1221: warning: format &#39;%d&#39; expects type<br>
&#39;int&#39;, but argument 8 has type &#39;switch_size_t&#39;<br>
<br>
<br>
src/switch_core.c: In function &#39;send_heartbeat&#39;:<br>
src/switch_core.c:84: warning: format &#39;%d&#39; expects type &#39;int&#39;, but<br>
argument 5 has type &#39;long unsigned int&#39;<br>
src/switch_core.c: In function &#39;change_user_group&#39;:<br>
src/switch_core.c:677: warning: implicit declaration of function &#39;setgroups&#39;<br>
src/switch_core.c:704: warning: implicit declaration of function &#39;initgroups&#39;<br>
<br>
<br>
<br>
<br>
src/switch_core.c: In function &#39;send_heartbeat&#39;:<br>
src/switch_core.c:84: warning: format &#39;%d&#39; expects type &#39;int&#39;, but<br>
argument 5 has type &#39;long unsigned int&#39;<br>
src/switch_core.c: In function &#39;change_user_group&#39;:<br>
src/switch_core.c:677: warning: implicit declaration of function &#39;setgroups&#39;<br>
src/switch_core.c:704: warning: implicit declaration of function &#39;initgroups&#39;<br>
<br>
<br>
<br>
<br>
<br>
src/switch_rtp.c: In function &#39;rtp_common_write&#39;:<br>
src/switch_rtp.c:3437: error: &#39;u_long&#39; undeclared (first use in this function)<br>
src/switch_rtp.c:3437: error: (Each undeclared identifier is reported only once<br>
src/switch_rtp.c:3437: error: for each function it appears in.)<br>
src/switch_rtp.c:3437: error: expected &#39;)&#39; before &#39;rtp_session&#39;<br>
src/switch_rtp.c:3437: error: expected &#39;)&#39; before &#39;rtp_session&#39;<br>
src/switch_rtp.c:3437: error: expected &#39;)&#39; before &#39;rtp_session&#39;<br>
src/switch_rtp.c:3437: error: expected &#39;)&#39; before &#39;rtp_session&#39;<br>
src/switch_rtp.c:3437: error: expected &#39;)&#39; before &#39;rtp_session&#39;<br>
src/switch_rtp.c:3437: error: expected &#39;)&#39; before &#39;rtp_session&#39;<br>
make[1]: *** [libfreeswitch_la-switch_rtp.lo] Error 1<br>
<br>
<br>
<br>
<br>
<br>
src/switch_utils.c: In function &#39;switch_build_uri&#39;:<br>
src/switch_utils.c:1530: error: &#39;NI_MAXHOST&#39; undeclared (first use in<br>
this function)<br>
src/switch_utils.c:1530: error: (Each undeclared identifier is<br>
reported only once<br>
src/switch_utils.c:1530: error: for each function it appears in.)<br>
src/switch_utils.c:1530: error: &#39;NI_MAXSERV&#39; undeclared (first use in<br>
this function)<br>
<br>
<br>
<br>
more detailed log:<br>
<br>
<a href="http://pastebin.freeswitch.org/13615" target="_blank">http://pastebin.freeswitch.org/13615</a><br>
<br>
<br>
<br>
--<br>
Blog: <a href="http://www.dujinfang.com" target="_blank">http://www.dujinfang.com</a><br>
Proj:  <a href="http://www.freeswitch.org.cn" target="_blank">http://www.freeswitch.org.cn</a><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>