在MAC OS X编译eXosip不成功的问题解决

下载eXosip之后,执行./configure成功,执行make的时候出错:

Making 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了。


你可能感兴趣的:(mac,OS,SIP,X,osip)