symbol lookup error with Python library

OA
Oded Arbel
Thu, May 4, 2017 8:29 AM

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

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