A bit of a dirty build hack, but this should build on OS X now in trunk.<br><br>Mike<br><br><div><span class="gmail_quote">On 11/22/07, <b class="gmail_sendername">Damjan Jovanovic</b> &lt;<a href="mailto:damjan@ecntelecoms.com">
damjan@ecntelecoms.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">X-ECN Telecoms-MailScanner-Information: Contact ECN Telecoms
<br>X-ECN Telecoms-MailScanner: Found to be clean<br>X-ECN Telecoms-MailScanner-SpamCheck: not spam, SpamAssassin (not cached,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;score=-96.982, required 6, AWL -0.61, FH_HOST_ALMOST_IP 1.75,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RCVD_IN_PBL 
0.91, RCVD_IN_SORBS_DUL 0.88, RDNS_DYNAMIC 0.10,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;USER_IN_WHITELIST -100.00)<br>X-ECN Telecoms-MailScanner-From: <a href="mailto:damjan@ecntelecoms.com">damjan@ecntelecoms.com</a><br>X-Spam-Status: No<br><br>On Wed, 2007-11-21 at 22:55 -0800, jonathan augenstine wrote:
<br>&gt; I just attempted the build of mod_java.&nbsp;&nbsp;The previous problem is<br>&gt; resolved but some new issues have cropped up.&nbsp;&nbsp;There is a link problem<br>&gt; now with unresolved symbols.&nbsp;&nbsp;Below is a trace of the build.
<br>&gt;<br>&gt; Jonathan<br>&gt;<br>&gt;<br>&gt; making all mod_java<br>&gt; Compiling freeswitch_java.cpp...<br>&gt; Compiling switch_swig_wrap.cpp...<br>&gt; Compiling mod_java.c...<br>&gt;<br>&gt; Creating mod_java.so...
<br>&gt; Undefined symbols:<br>&gt;&nbsp;&nbsp; &quot;operator delete(void*)&quot;, referenced from:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JavaSession::~JavaSession()in freeswitch_java.o<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JavaSession::~JavaSession()in freeswitch_java.o<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _Java_org_freeswitch_swig
<br>&gt; _freeswitchJNI_delete_1input_1callback_1state_1t in switch_swig_wrap.o<br>&gt;<br>&gt; _Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_10 in<br>&gt; switch_swig_wrap.o<br>&gt;<br>&gt; _Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_12 in
<br>&gt; switch_swig_wrap.o<br>&gt;<br>&gt; _Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_11 in<br>&gt; switch_swig_wrap.o<br>&gt;&nbsp;&nbsp; &quot;___gxx_personality_v0&quot;, referenced from:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ___gxx_personality_v0$non_lazy_ptr in freeswitch_java.o
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ___gxx_personality_v0$non_lazy_ptr in switch_swig_wrap.o<br>&gt;&nbsp;&nbsp; &quot;operator new[](unsigned long)&quot;, referenced from:<br>&gt;<br>&gt; _Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1funcargs_1set in switch_swig_wrap.o
<br>&gt;&nbsp;&nbsp; &quot;operator delete[](void*)&quot;, referenced from:<br>&gt;<br>&gt; _Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1funcargs_1set in switch_swig_wrap.o<br>&gt;&nbsp;&nbsp; &quot;operator new(unsigned long)&quot;, referenced from:
<br>&gt;<br>&gt; _Java_org_freeswitch_swig_freeswitchJNI_new_1input_1callback_1state_1t<br>&gt; in switch_swig_wrap.o<br>&gt;<br>&gt; _Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hook_1state_1get<br>&gt; in switch_swig_wrap.o
<br>&gt;<br>&gt; _Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1run_1dtmf_1callback in switch_swig_wrap.o<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _Java_org_freeswitch_swig_freeswitchJNI_hanguphook in<br>&gt; switch_swig_wrap.o<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _Java_org_freeswitch_swig_freeswitchJNI_dtmf_1callback in
<br>&gt; switch_swig_wrap.o<br>&gt;<br>&gt; _Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_10 in<br>&gt; switch_swig_wrap.o<br>&gt;<br>&gt; _Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_12 in
<br>&gt; switch_swig_wrap.o<br>&gt;<br>&gt; _Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1run_1dtmf_1callback in switch_swig_wrap.o<br>&gt;<br>&gt; _Java_org_freeswitch_swig_freeswitchJNI_process_1callback_1result in
<br>&gt; switch_swig_wrap.o<br>&gt;<br>&gt; _Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_11 in<br>&gt; switch_swig_wrap.o<br>&gt;&nbsp;&nbsp; &quot;vtable for __cxxabiv1::__si_class_type_info&quot;, referenced from:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; typeinfo for JavaSessionin freeswitch_java.o<br>&gt; ld: symbol(s) not found<br>&gt; collect2: ld returned 1 exit status<br>&gt; gcc<br>&gt; -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers
<br>&gt; -DHasJava -fno-strict-aliasing<br>&gt; -I/Users/jaugenstine/freeswitch/freeswitch/src/include<br>&gt; -I/Users/jaugenstine/freeswitch/freeswitch/libs/libteletone/src<br>&gt; -Werror -DMACOSX -g -O2 -Wall -std=c99 -pedantic -D_GNU_SOURCE
<br>&gt; -o .libs/mod_java.so -dynamic -bundle -force-flat-namespace mod_java.o<br>&gt; -o .libs/mod_java.so freeswitch_java.o switch_swig_wrap.o<br>&gt; -L/usr/local/lib /Users/jaugenstine/freeswitch/freeswitch/.libs/libfreeswitch.1.0.0.dylib -lm -lsqlite3 /usr/lib/libiconv.dylib /Users/jaugenstine/freeswitch/freeswitch/libs/apr/.libs/libapr- 
1.a -ldl -lpthread<br>&gt; make[5]: *** [mod_java.so] Error 1<br>&gt;<br>&gt; make[4]: *** [all] Error 1<br>&gt; make[3]: *** [mod_java-all] Error 1<br>&gt; make[2]: *** [all-recursive] Error 1<br>&gt; make[1]: *** [all-recursive] Error 1
<br>&gt; make: *** [all] Error 2<br><br>Neither mod_java nor any other module that uses C++ (eg. mod_python)<br>will currently link on MacOS, because on them maccies you apparently<br>have to link C++ code with g++ instead of ld like on every other
<br>operating system in the world.<br><br>You can probably link it manually by using g++ instead of gcc in that<br>last command, and dropping the -std=c99.<br><br><br>&gt; _______________________________________________<br>
&gt; Freeswitch-users mailing list<br>&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
</a><br>&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt; <a href="http://www.freeswitch.org">http://www.freeswitch.org
</a><br><br>Good luck<br>Damjan<br><br><br><br>_______________________________________________<br>Freeswitch-dev mailing list<br><a href="mailto:Freeswitch-dev@lists.freeswitch.org">Freeswitch-dev@lists.freeswitch.org</a>
<br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">
http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></blockquote></div><br>