That appears to have fixed the link problem.<br><br><div class="gmail_quote">On Nov 21, 2007 11:38 PM, Damjan Jovanovic <<a href="mailto:damjan@ecntelecoms.com">damjan@ecntelecoms.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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> score=-96.982, required 6, AWL -
0.61, FH_HOST_ALMOST_IP 1.75,<br> RCVD_IN_PBL 0.91, RCVD_IN_SORBS_DUL 0.88, RDNS_DYNAMIC 0.10,<br> 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>> I just attempted the build of mod_java. The previous problem is<br>> resolved but some new issues have cropped up. There is a link problem
<br>> now with unresolved symbols. Below is a trace of the build.<br>><br>> Jonathan<br>><br>><br>> making all mod_java<br>> Compiling freeswitch_java.cpp...<br>> Compiling switch_swig_wrap.cpp...
<br>> Compiling mod_java.c...<br>><br>> Creating mod_java.so...<br>> Undefined symbols:<br>> "operator delete(void*)", referenced from:<br>> JavaSession::~JavaSession()in freeswitch_java.o
<br>> JavaSession::~JavaSession()in freeswitch_java.o<br>> _Java_org_freeswitch_swig<br>> _freeswitchJNI_delete_1input_1callback_1state_1t in switch_swig_wrap.o<br>><br>> _Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_10 in
<br>> switch_swig_wrap.o<br>><br>> _Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_12 in<br>> switch_swig_wrap.o<br>><br>> _Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_11 in
<br>> switch_swig_wrap.o<br>> "___gxx_personality_v0", referenced from:<br>> ___gxx_personality_v0$non_lazy_ptr in freeswitch_java.o<br>> ___gxx_personality_v0$non_lazy_ptr in switch_swig_wrap.o
<br>> "operator new[](unsigned long)", referenced from:<br>><br>> _Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1funcargs_1set in switch_swig_wrap.o<br>> "operator delete[](void*)", referenced from:
<br>><br>> _Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1funcargs_1set in switch_swig_wrap.o<br>> "operator new(unsigned long)", referenced from:<br>><br>> _Java_org_freeswitch_swig_freeswitchJNI_new_1input_1callback_1state_1t
<br>> in switch_swig_wrap.o<br>><br>> _Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hook_1state_1get<br>> in switch_swig_wrap.o<br>><br>> _Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1run_1dtmf_1callback in switch_swig_wrap.o
<br>> _Java_org_freeswitch_swig_freeswitchJNI_hanguphook in<br>> switch_swig_wrap.o<br>> _Java_org_freeswitch_swig_freeswitchJNI_dtmf_1callback in<br>> switch_swig_wrap.o<br>><br>> _Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_10 in
<br>> switch_swig_wrap.o<br>><br>> _Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_12 in<br>> switch_swig_wrap.o<br>><br>> _Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1run_1dtmf_1callback in switch_swig_wrap.o
<br>><br>> _Java_org_freeswitch_swig_freeswitchJNI_process_1callback_1result in<br>> switch_swig_wrap.o<br>><br>> _Java_org_freeswitch_swig_freeswitchJNI_new_1JavaSession_1_1SWIG_11 in<br>> switch_swig_wrap.o
<br>> "vtable for __cxxabiv1::__si_class_type_info", referenced from:<br>> typeinfo for JavaSessionin freeswitch_java.o<br>> ld: symbol(s) not found<br>> collect2: ld returned 1 exit status<br>
> gcc<br>> -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers<br>> -DHasJava -fno-strict-aliasing<br>> -I/Users/jaugenstine/freeswitch/freeswitch/src/include<br>> -I/Users/jaugenstine/freeswitch/freeswitch/libs/libteletone/src
<br>> -Werror -DMACOSX -g -O2 -Wall -std=c99 -pedantic -D_GNU_SOURCE<br>> -o .libs/mod_java.so -dynamic -bundle -force-flat-namespace mod_java.o<br>> -o .libs/mod_java.so freeswitch_java.o switch_swig_wrap.o<br>> -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>> make[5]: *** [mod_java.so] Error 1<br>><br>> make[4]: *** [all] Error 1<br>> make[3]: *** [mod_java-all] Error 1<br>> make[2]: *** [all-recursive] Error 1<br>> make[1]: *** [all-recursive] Error 1
<br>> 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>> _______________________________________________<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><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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">
http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br>