problem solved (py_pjsua on mac os/x)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Ben.

I share this here in case someone will face the same problem in the future

the problem:
when importing py_pjsua you get an error of SymbolNotFound

Last night when I ran "otool -L pypjsua.so" I got:
py_pjsua.so:
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
88.3.6)
    /usr/lib/libssl.0.9.7.dylib (compatibility version 0.9.7, current
version 0.9.7)
    /usr/lib/libcrypto.0.9.7.dylib (compatibility version 0.9.7, current
version 0.9.7)

this morning I ran:
"sudo port install gcc42", then, I recreate a local copy from the latest
revision and everything works fine.

running now "otool -L pypjsua.so" yields:

py_pjsua.so:
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
88.3.6)
    /usr/lib/libssl.0.9.7.dylib (compatibility version 0.9.7, current
version 0.9.7)
    /usr/lib/libcrypto.0.9.7.dylib (compatibility version 0.9.7, current
version 0.9.7)

/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
(compatibility version 150.0.0, current version 368.28.0)

/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
(compatibility version 1.0.0, current version 1.0.0)


Notice the additional CoreFoundation (CF) and the AudioToolbox which were
missing



the error in discussion:

>* Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
*>* [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
*>*  Type "help", "copyright", "credits" or "license" for more information.
*>* >>> import py_pjsua
*>* Traceback (most recent call last):
*>*   File "<stdin>", line 1, in <module>
*>*  ImportError:
*>* dlopen(/Library/Python/2.5/site-packages/py_pjsua.so, 2):
*>* Symbol not found: ___CFConstantStringClassReference
*>*   Referenced from:
*>* /Library/Python/2.5/site-packages/py_pjsua.so
*>*   Expected in: dynamic lookup
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080330/c2280d96/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux