[Freeswitch-users] how to enable ESL for ruby?

dujinfang dujinfang at gmail.com
Tue May 26 08:22:55 PDT 2009


Hi,

Following the wiki: http://wiki.freeswitch.org/wiki/Event_Socket_Library
On MacOSX 10.5, I can't get ESL for ruby work. make throws error:

sevens-mac-pro:~/workspace/test/freeswitch/trunk/libs/esl$ make rubymod
make MYLIB="../libesl.a" SOLINK="-shared -Xlinker -x" CFLAGS="-I/Users/ 
seven/workspace/test/freeswitch/trunk/libs/esl/src/include - 
DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -O2 -ffast- 
math -Wall -Werror -Wunused-variable -Wwrite-strings -Wstrict- 
prototypes -Wmissing-prototypes" CXXFLAGS="-I/Users/seven/workspace/ 
test/freeswitch/trunk/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb - 
I../../libs/libedit/src/ -fPIC -Wall -Werror -Wno-unused-variable"  
CXX_CFLAGS="" -C ruby
g++  -I/Users/seven/workspace/test/freeswitch/trunk/libs/esl/src/ 
include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -Wall  
-Werror -Wno-unused-variable -I/opt/local/lib/ruby/1.8/i686-darwin9 -c  
esl_wrap.cpp -o esl_wrap.o
g++ -shared -Xlinker -x esl_wrap.o ../libesl.a -lruby -o ESL.so -L.
Undefined symbols:
   "_main", referenced from:
       start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [ESL.so] Error 1

Thanks for any help.




More information about the FreeSWITCH-users mailing list