swig - Freeswitch 1.6 installation for ESL python -
i'm running freeswitch 1.6 , mac 10.10.5 freeswitch server in aws , need install python esl module in local environment start development using esl. havent been able find esl module. got whole source , tried build python library.
i used this instructions.
git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git cd /usr/src/freeswitch ./bootstrap.sh -j ./configure cd /usr/src/freeswitch/libs/esl
when go libs/esl
folder , type:
make pymod -v
i get:
gnu make 3.81 copyright (c) 2006 free software foundation, inc. free software; see source copying conditions. there no warranty; not merchantability or fitness particular purpose. program built i386-apple-darwin11.3.0
when run:
make pymod
i error:
/applications/xcode.app/contents/developer/usr/bin/make mylib=".././.libs/libesl.a" solink="-shared -xlinker -x" cflags="-i/users/spicyramen/documents/opensource/development/freeswitch.git/libs/esl/src/include -i/users/spicyramen/documents/opensource/development/freeswitch.git/src/include -i/users/spicyramen/documents/opensource/development/freeswitch.git/src/include -i/users/spicyramen/documents/opensource/development/freeswitch.git/libs/libteletone/src -werror -dmacosx -dhave_openssl" cxxflags="-i/users/spicyramen/documents/opensource/development/freeswitch.git/libs/esl/src/include -i/users/spicyramen/documents/opensource/development/freeswitch.git/src/include -i/users/spicyramen/documents/opensource/development/freeswitch.git/src/include -i/users/spicyramen/documents/opensource/development/freeswitch.git/libs/libteletone/src -fpic" cxx_cflags="" -c python c++ -shared -xlinker -x esl_wrap.o .././.libs/libesl.a `python ./python-config --ldflags` -o _esl.so -l. ld: internal error: atom not found in symbolindex(__zn24swig_python_thread_allow3endev) architecture x86_64 clang: error: linker command failed exit code 1 (use -v see invocation) make[1]: *** [_esl.so] error 1 make: *** [pymod] error 2
in makefile have this:
python = /users/spicyramen/anaconda/bin/python python_cflags = -i/users/spicyramen/anaconda/include/python2.7 -i/users/spicyramen/anaconda/include/python2.7 -fno-strict-aliasing -i/users/spicyramen/anaconda/include -dndebug -g -fwrapv -o3 -wall -wstrict-prototypes python_ldflags = -l/users/spicyramen/anaconda/lib -ldl -framework corefoundation -lpython2.7 python_site_dir = /users/spicyramen/anaconda/lib/python2.7/site-packages
the following solution solved me:
from https://freeswitch.org/jira/browse/esl-92
there bug in ld
command ships mac os x post mavericks, due "-x" flag strips symbols. bug described here -x link flag causing link errors on mac osx 10.9 (bug?) (i've filed ticket upstream https://llvm.org/bugs/show_bug.cgi?id=23337).
workraround:
remove "-x" flag when linking _esl.so
cd libs/esl sed -i '' 's/\(solink = .*\)-x/\1/p' makefile make pymod
Comments
Post a Comment