在MAC OS X編譯eXosip不成功的問題解決

2021-06-14 09:13:39 字數 2782 閱讀 9158

****** all in src

/bin/sh ../libtool --tag=cc --mode=link gcc -pedantic -denable_debug -g -denable_trace -g -g -version-info 10:0:0 -no-undefined -o libexosip2.la -rpath /usr/local/lib exosip.lo exconf.lo exregister_api.lo excall_api.lo exmessage_api.lo extransport.lo jrequest.lo jresponse.lo jcallback.lo jdialog.lo udp.lo jcall.lo jreg.lo exutils.lo jevents.lo misc.lo jauth.lo extl_udp.lo extl_tcp.lo extl_dtls.lo extl_tls.lo milenage.lo rijndael.lo exsubscription_api.lo exoptions_api.lo exinsubscription_api.lo expublish_api.lo jnotify.lo jsubscribe.lo inet_ntop.lo jpipe.lo exrefer_api.lo jpublish.lo sdp_offans.lo -lresolv -lssl -lcrypto -l/usr/local/lib -l/usr/local/lib -losip2 -losipparser2

libtool: link: gcc -dynamiclib -o .libs/libexosip2.10.dylib .libs/exosip.o .libs/exconf.o .libs/exregister_api.o .libs/excall_api.o .libs/exmessage_api.o .libs/extransport.o .libs/jrequest.o .libs/jresponse.o .libs/jcallback.o .libs/jdialog.o .libs/udp.o .libs/jcall.o .libs/jreg.o .libs/exutils.o .libs/jevents.o .libs/misc.o .libs/jauth.o .libs/extl_udp.o .libs/extl_tcp.o .libs/extl_dtls.o .libs/extl_tls.o .libs/milenage.o .libs/rijndael.o .libs/exsubscription_api.o .libs/exoptions_api.o .libs/exinsubscription_api.o .libs/expublish_api.o .libs/jnotify.o .libs/jsubscribe.o .libs/inet_ntop.o .libs/jpipe.o .libs/exrefer_api.o .libs/jpublish.o .libs/sdp_offans.o -lresolv -lssl -lcrypto -l/usr/local/lib /usr/local/lib/libosip2.dylib /usr/local/lib/libosipparser2.dylib -install_name /usr/local/lib/libexosip2.10.dylib -compatibility_version 11 -current_version 11.0 -wl,-single_module

undefined symbols for architecture x86_64:

"_cfrelease", referenced from:

__tls_add_certificates in extl_tls.o

"_gestalt", referenced from:

__tls_add_certificates in extl_tls.o

"_seckeychainitemcopyattributesanddata", referenced from:

__tls_add_certificates in extl_tls.o

"_seckeychainitemfreeattributesanddata", referenced from:

__tls_add_certificates in extl_tls.o

"_seckeychainopen", referenced from:

__tls_add_certificates in extl_tls.o

"_seckeychainsearchcopynext", referenced from:

__tls_add_certificates in extl_tls.o

"_seckeychainsearchcreatefromattributes", referenced from:

__tls_add_certificates in extl_tls.o

ld: symbol(s) not found for architecture x86_64

collect2: ld returned 1 exit status

make[2]: *** [libexosip2.la] error 1

make[1]: *** [all-recursive] error 1

make: *** [all] error 2

後來google到這份郵件:

[osip-dev] fail to compile exosip on mac 64 bit,然後按照郵件提示執行:

./configure libs="-framework coreservices -framework security"
就能夠成功make了。

如何編譯osip和exosip

osip的編譯 假如你現在採用的是d盤 本人採用libosip2 2.2.0,vc6.0,windows xp 1.在d盤上新建乙個osip資料夾d osip 2.把libosip2 x.x.x資料夾下的include資料夾整個拷到e盤的osip資料夾裡 3.新建vc工程,選win32 dynami...

Mac OS X 下編譯安裝 Nginx

當前穩定版本 zlib 當前穩定版本 注 nginx 參考文件中提到需要 1.1.3 1.2.7 版本的 zlib pcre 當前穩定版本 注 nginx 參考文件中提到需要 4.4 8.32 版本的 pcre 解壓依賴原始碼包 tar zxvf zlib 1.2.8.tar.gz 得到 zlib ...

Mac OS X 下編譯安裝 Nginx

nginx原始碼包 當前穩定版本 zlib 當前穩定版本 zlib 1.2.8.tar.gz 注 nginx 參考文件中提到需要 1.1.3 1.2.7 版本的zlib 當前穩定版本 ftp 8.36 tar.gz 注 nginx 參考文件中提到需要 4.4 8.32 版本的pcre 解壓依賴原始碼...