symbol lookup error with Python library

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

 



Hi all,

I'm trying to run the sample program posted here:
https://trac.pjsip.org/repos/wiki/Python_SIP/Hello_World , and I'm
getting a python error.

My setup is an Ubuntu 16.04 machine, I've checked out PJSIP 2.6 from
the SVN tag, ran configure && make && make install, then went to
pjsip-apps/src/python, then ran make and `python setup.py install
--user`. Now I have _pjsua.so installed in my .local python
site-packages.

I'm running the sample program as:
LD_PRELOAD=/home/odeda/.local/lib/python2.7/site-packages/_pjsua.so
python ~/test.py
(it doesn't load the .so file otherwise, not sure why), at which point
I get this error:

python: symbol lookup error:
/home/odeda/.local/lib/python2.7/site-packages/_pjsua.so: undefined
symbol: pjsua_create

I've ran nm on the _pjsua.so file and that reports that pjsua_create
exists. Also the code does find the pjsua_start symbol in the provided
SO file (I can run it without preloading the SO file and then it
complains about pjsua_start).

Any hints as to how to fix this will be appreciated.
--
Oded

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org



[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