我正在运行Freeswitt1.6和Mac10.10.5,我的Freeswitch服务器将在AWS中运行,需要在本地环境中安装Python模块,才能开始使用ESL进行开发。我还没有找到ESL模块。我得到了整个源代码,并且只尝试构建Python库。
我使用了这指令。
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当我转到libs/esl文件夹并键入:
make pymod -v我得到:
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-apple-darwin11.3.0当我跑步时:
make pymod我知道这个错误:
/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) for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [_ESL.so] Error 1
make: *** [pymod] Error 2在我的Makefile里我有这样的东西:
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发布于 2016-06-28 09:44:14
以下解决方案为我解决了这个问题:
来自https://freeswitch.org/jira/browse/ESL-92
Mac Maverick附带的ld命令中有一个bug,因此"-x“标志会删除额外的符号。-x链接标志导致MacOSX10.9上的链接错误(bug?)在这里描述了这个bug (我已经在bug.cgi?id=23337上游提交了一张罚单)。
工作:
链接-x时移除“_ESL.so”标志
cd libs/esl
sed -i '' 's/\(SOLINK = .*\)-x/\1/p' Makefile
make pymod https://stackoverflow.com/questions/38072591
复制相似问题