Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/multithreading/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Compiler errors 无法在Mac OSX Lion上构建最新的Freeswitch_Compiler Errors_Osx Lion_Freeswitch - Fatal编程技术网

Compiler errors 无法在Mac OSX Lion上构建最新的Freeswitch

Compiler errors 无法在Mac OSX Lion上构建最新的Freeswitch,compiler-errors,osx-lion,freeswitch,Compiler Errors,Osx Lion,Freeswitch,在新签出并运行。/boostraph.sh和。/configure: making all mod_amr Creating mod_amr.so... i686-apple-darwin11-llvm-gcc-4.2: -bundle not allowed with -dynamiclib gcc -I/usr/local/src/freeswitch/libs/curl/include -I/usr/local/src/freeswitch/src/include -I/usr/lo

在新签出并运行。/boostraph.sh和。/configure:

making all mod_amr 
Creating mod_amr.so... 
i686-apple-darwin11-llvm-gcc-4.2: -bundle not allowed with -dynamiclib 
gcc -I/usr/local/src/freeswitch/libs/curl/include -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/libs/libteletone/src -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DMACOSX -DHAVE_OPENSSL -g -O2 -Wall -std=c99 -pedantic -Wdeclaration-after-statement -D_GNU_SOURCE -DAMR_PASSTHROUGH -shared -o .libs/mod_amr.so -dynamic -bundle -force-flat-namespace .libs/mod_amr.o /usr/local/src/freeswitch/.libs/libfreeswitch.dylib -lodbc -lresolv -L/usr/local/src/freeswitch/libs/apr-util/xml/expat/lib -lpq /usr/local/src/freeswitch/libs/apr-util/xml/expat/lib/.libs/libexpat.a /usr/local/src/freeswitch/libs/apr/.libs/libapr-1.a -lpthread -lm -L/usr/local/src/freeswitch/libs/srtp -ldl -lssl -lcrypto -lz -lncurses /usr/local/lib/libjpeg.dylib /usr/local/lib/libodbc.dylib -liconv 
make[5]: *** [mod_amr.so] Error 1 
make[4]: *** [all] Error 1 
make[3]: *** [mod_amr-all] Error 1 
make[2]: *** [all-recursive] Error 1 
make[1]: *** [all-recursive] Error 1 
make: *** [all] Error 2 
如果我对有问题的模块进行注释,那么任何数量的其他mod都会出现相同的“bundle not allowed with-dynamiclib”。据我所知,我已经安装了MacOSX的所有必备组件,包括Apple和Unix开发工具。我是100%免费的macports/fink/brew,AFAIK


我感觉这是我的安装中缺少的工具或配置问题(几乎是全新的Lion安装)。提前感谢您的帮助

我认为这是Freeswitch构建系统的问题。它向编译器提供两个互斥标志,
-bundle
-dynamiclib


你可能想查看他们的bug追踪器,也许会提交一个bug。

我得到了相同的错误,尽管来自不同的来源。我在编译Cython,为我链接到的外部库添加了一些额外的
CFLAGS
。这些标志包括
shared
,而
Cython
自动包括
-bundle
(使用
distutils
setup.py
内部编译)

-shared
标志没有明确显示在选项中,这令人困惑。以下步骤删除了
-shared
选项,解决了该问题


对于在这里使用
Cython

的人,谷歌搜索此错误也值得注意,谢谢!我不久前提交了一个bug,但没有响应: