If you'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"><<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>></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'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="-arch i386" CXXFLAGS="-arch i386" LDFLAGS="-arch i386"<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 "ifdef" to "ifndef" to trick it and make further,<br>
however, I still couldn't get fully built.<br>
<br>
some errors below. and ideas? thanks.<br>
<br>
<br>
<br>
src/switch_apr.c: In function 'switch_vasprintf':<br>
src/switch_apr.c:1024: warning: implicit declaration of function 'vasprintf'<br>
<br>
<br>
<br>
src/switch_core_session.c: In function 'switch_core_session_thread':<br>
src/switch_core_session.c:1193: warning: format '%d' expects type<br>
'int', but argument 8 has type 'switch_size_t'<br>
src/switch_core_session.c:1203: warning: format '%d' expects type<br>
'int', but argument 8 has type 'switch_size_t'<br>
src/switch_core_session.c:1221: warning: format '%d' expects type<br>
'int', but argument 8 has type 'switch_size_t'<br>
<br>
<br>
src/switch_core.c: In function 'send_heartbeat':<br>
src/switch_core.c:84: warning: format '%d' expects type 'int', but<br>
argument 5 has type 'long unsigned int'<br>
src/switch_core.c: In function 'change_user_group':<br>
src/switch_core.c:677: warning: implicit declaration of function 'setgroups'<br>
src/switch_core.c:704: warning: implicit declaration of function 'initgroups'<br>
<br>
<br>
<br>
<br>
src/switch_core.c: In function 'send_heartbeat':<br>
src/switch_core.c:84: warning: format '%d' expects type 'int', but<br>
argument 5 has type 'long unsigned int'<br>
src/switch_core.c: In function 'change_user_group':<br>
src/switch_core.c:677: warning: implicit declaration of function 'setgroups'<br>
src/switch_core.c:704: warning: implicit declaration of function 'initgroups'<br>
<br>
<br>
<br>
<br>
<br>
src/switch_rtp.c: In function 'rtp_common_write':<br>
src/switch_rtp.c:3437: error: 'u_long' 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 ')' before 'rtp_session'<br>
src/switch_rtp.c:3437: error: expected ')' before 'rtp_session'<br>
src/switch_rtp.c:3437: error: expected ')' before 'rtp_session'<br>
src/switch_rtp.c:3437: error: expected ')' before 'rtp_session'<br>
src/switch_rtp.c:3437: error: expected ')' before 'rtp_session'<br>
src/switch_rtp.c:3437: error: expected ')' before 'rtp_session'<br>
make[1]: *** [libfreeswitch_la-switch_rtp.lo] Error 1<br>
<br>
<br>
<br>
<br>
<br>
src/switch_utils.c: In function 'switch_build_uri':<br>
src/switch_utils.c:1530: error: 'NI_MAXHOST' 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: 'NI_MAXSERV' 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>