Hi, I am installing the latest Freeswitch build from SVN, but the following errors are encountered: Compiling ../../../../libs/xmlrpc-c/src/xmlrpc_struct.c... Compiling ../../../../libs/xmlrpc-c/lib/expat/xmltok/xmltok.c... Compiling mod_xml_rpc.c... Creating mod_xml_rpc.so... Making all in build +-------- FreeSWITCH Build Complete -----------+ + FreeSWITCH has been successfully built. + + Install by running: + + + + make install + +----------------------------------------------+ make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 [root@localhost freeswitch]# make install make "OUR_MODULES=`if test -z "" ; then tmp_mods="\`grep -v "#" /usr/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | uniq \`"; else tmp_mods="" ; fi ; mods=\`for i in $tmp_mods ; do echo $i-all ; done \`; echo $mods `" "OUR_CLEAN_MODULES=`if test -z "" ; then tmp_mods="\`grep -v "#" /usr/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | uniq \`"; else tmp_mods="" ; fi ; mods=\`for i in $tmp_mods ; do echo $i-clean ; done \`; echo $mods `" "OUR_INSTALL_MODULES=`if test -z "" ; then tmp_mods="\`grep -v "#" /usr/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | uniq \`"; else tmp_mods="" ; fi ; mods=\`for i in $tmp_mods ; do echo $i-install ; done\`; echo $mods `" "OUR_UNINSTALL_MODULES=`if test -z "" ; then tmp_mods="\`grep -v "#" /usr/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | uniq \`"; else tmp_mods="" ; fi ; mods=\`for i in $tmp_mods ; do echo $i-uninstall ; done\`; echo $mods `" "OUR_DISABLED_MODULES=`tmp_mods="\`grep "#" /usr/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | uniq \`"; mods=\`for i in $tmp_mods ; do echo $i-all ; done \`; echo $mods `" "OUR_DISABLED_CLEAN_MODULES=`tmp_mods="\`grep "#" /usr/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | uniq \`"; mods=\`for i in $tmp_mods ; do echo $i-clean ; done \`; echo $mods `" "OUR_DISABLED_INSTALL_MODULES=`tmp_mods="\`grep "#" /usr/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | uniq \`"; mods=\`for i in $tmp_mods ; do echo $i-install ; done\`; echo $mods `" "OUR_DISABLED_UNINSTALL_MODULES=`tmp_mods="\`grep "#" /usr/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | uniq \`"; mods=\`for i in $tmp_mods ; do echo $i-uninstall ; done\`; echo $mods `" `test -n "" || echo -s` install-recursive Making install in . gcc -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/libs/libteletone/src -fPIC -Werror -g -ggdb -g -O2 -Wall -std=c99 -pedantic -o .libs/freeswitch freeswitch-switch.o -L/usr/local/lib ./.libs/libfreeswitch.so /usr/src/freeswitch/libs/apr/.libs/libapr-1.a -L/usr/src/freeswitch/libs/srtp -lm libs/apr/.libs/libapr-1.a -lrt -ldl -lcrypt -lpthread libs/libedit/src/.libs/libedit.a -lncurses -Wl,--rpath -Wl,/usr/local/freeswitch/lib ./.libs/libfreeswitch.so: undefined reference to `operator new(unsigned long)' ./.libs/libfreeswitch.so: undefined reference to `operator delete(void*)' ./.libs/libfreeswitch.so: undefined reference to `__cxa_pure_virtual' ./.libs/libfreeswitch.so: undefined reference to `__gxx_personality_v0' ./.libs/libfreeswitch.so: undefined reference to `vtable for __cxxabiv1::__class_type_info' collect2: ld returned 1 exit status make[2]: *** [freeswitch] Error 1 Making install in src Making install in mod making install mod_amr installing mod_amr.so quiet_libtool: install: warning: `/usr/src/freeswitch/libfreeswitch.la' has not been installed in `/usr/local/freeswitch/lib' /usr/bin/install: cannot create regular file `/usr/local/freeswitch/mod': No such file or directory make[5]: *** [/usr/local/freeswitch/mod/mod_amr.so] Error 1 make[4]: *** [install] Error 1 make[3]: *** [mod_amr-install] Error 1 make[2]: *** [install-recursive] Error 1 Making install in build +-------- FreeSWITCH install Complete ---------+ + FreeSWITCH has been successfully installed. + + + + Install sounds: + + (uhd-sounds includes hd-sounds, sounds) + + (hd-sounds includes sounds) + + ------------------------------------ + + make uhd-sounds-install + + make uhd-moh-install + + + + make hd-sounds-install + + make hd-moh-install + + + + make sounds-install + + make moh-install + + + + Upgrade to latest: + + ---------------------------------- + + make current + + + + Rebuild all: + + ---------------------------------- + + make sure + + + + Install/Re-install default config: + + ---------------------------------- + + make samples + + + + + + Additional resources: + + ---------------------------------- + + http://www.freeswitch.org + + http://wiki.freeswitch.org + + http://jira.freeswitch.org + + http://lists.freeswitch.org + + + + irc.freenode.net / #freeswitch + + + +----------------------------------------------+ make[1]: *** [install-recursive] Error 1 make: *** [install] Error 2 [root@localhost freeswitch]# Does anyone know how to resolve the errors? Regards, Woody
You don't have the c++ compiler or other things necessary to compile c+ + code installed. Install it, configure again. Mike On Oct 19, 2008, at 11:46 PM, Woody Dickson wrote:
Hi,
I am installing the latest Freeswitch build from SVN, but the following errors are encountered:
gcc -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/libs/ libteletone/src -fPIC -Werror -g -ggdb -g -O2 -Wall -std=c99 - pedantic -o .libs/freeswitch freeswitch-switch.o -L/usr/local/ lib ./.libs/libfreeswitch.so /usr/src/freeswitch/libs/apr/.libs/ libapr-1.a -L/usr/src/freeswitch/libs/srtp -lm libs/apr/.libs/ libapr-1.a -lrt -ldl -lcrypt -lpthread libs/libedit/src/.libs/ libedit.a -lncurses -Wl,--rpath -Wl,/usr/local/freeswitch/lib ./.libs/libfreeswitch.so: undefined reference to `operator new(unsigned long)' ./.libs/libfreeswitch.so: undefined reference to `operator delete(void*)' ./.libs/libfreeswitch.so: undefined reference to `__cxa_pure_virtual' ./.libs/libfreeswitch.so: undefined reference to `__gxx_personality_v0' ./.libs/libfreeswitch.so: undefined reference to `vtable for __cxxabiv1::__class_type_info'
Does anyone know how to resolve the errors?
Hello All, I created a lua app that "bridges" calls based on numbers entered. The following was my direction with the code: digits = session:playAndGetDigits(1, 10, 10, 5000, "#", "dialno.wav", "ivr-imsorry.wav", "\\d+") freeswitch.consoleLog("info", "Got dtmf: ".. digits .."\n"); cmd = "sofia/gateway/broadvox/1" .. digits .. "@broadvox"; freeswitch.consoleLog("info", "Command: ".. cmd .."\n"); session.execute("bridge", cmd) What Im getting is the following: 2008-10-20 21:30:52 [WARNING] switch_core_file.c:111 switch_core_perform_file_open() Sample rate doesn't match 2008-10-20 21:30:52 [NOTICE] switch_resample.c:78 switch_resample_create() Activate Resampler 22050->8000 0.362812 2008-10-20 21:31:04 [INFO] switch_cpp.cpp:1084 console_log() Got dtmf: 6193413506 2008-10-20 21:31:04 [INFO] switch_cpp.cpp:1084 console_log() Command: sofia/gateway/broadvox/16193413506@broadvox 2008-10-20 21:31:04 [ERR] mod_lua.cpp:177 lua_parse_and_execute() No matching function for overloaded 'CoreSession_execute' stack traceback: [C]: in function 'execute' /usr/local/freeswitch/scripts/ivr.lua:5: in main chunk 2008-10-20 21:31:04 [NOTICE] switch_core_state_machine.c:160 switch_core_standard_on_execute() Hangup sofia/external/19166018190 [CS_EXECUTE] [NORMAL_CLEARING] 2008-10-20 21:31:04 [NOTICE] switch_core_session.c:833 switch_core_session_thread() Session 97 (sofia/external/19166018190) Ended Is there an issue with lua bridging to an external number? Thanks! Damon
It would be session:execute as outlined here http://wiki.freeswitch.org/wiki/Mod_lua#session :execute /b On Oct 20, 2008, at 4:36 PM, Damon Brown wrote:
digits = session:playAndGetDigits(1, 10, 10, 5000, "#", "dialno.wav", "ivr-imsorry.wav", "\\d+") freeswitch.consoleLog("info", "Got dtmf: ".. digits .."\n"); cmd = "sofia/gateway/broadvox/1" .. digits .. "@broadvox"; freeswitch.consoleLog("info", "Command: ".. cmd .."\n"); session.execute("bridge", cmd)
participants (4)
-
Brian West
-
Damon Brown
-
Michael Jerris
-
Woody Dickson