undefined symbol

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

 



Hello

 

I am getting run time error “undefined symbol” when importing pjsua2 into python 3.

My source: pjproject-2.8.tar.bz2

My configuration:       ./configure --enable-shared --prefix=$SNAPCRAFT_PART_INSTALL/usr/ --exec-prefix=$SNAPCRAFT_PART_INSTALL/usr/lib/arm-linux-gnueabihf

Using: parts/python-pjsua2/build/pjproject-2.8/pjsip-apps/src/swig/python/build/lib.linux-armv7l-3.6/_pjsua2.cpython-36m-arm-linux-gnueabihf.so (_pjsua2)

Using: parts/python-pjsua2/build/pjproject-2.8/pjsip-apps/src/swig/java/output/libpjsua2.so

 

nm parts/python-pjsua2/build/pjproject-2.8/pjsip-apps/src/swig/java/output/libpjsua2.so | grep _ZTIN2pj16AudioMediaPlayerE

U _ZTIN2pj16AudioMediaPlayerE

 

amodster@localhost:/home/amodster$ python3

Python 3.6.7 (default, Oct 22 2018, 11:32:17)

[GCC 8.2.0] on linux

Type "help", "copyright", "credits" or "license" for more information.

>>> import pjsua2

Traceback (most recent call last):

  File "/snap/dkentry-python3/x1/usr/lib/python3/dist-packages/pjsua2.py", line 14, in swig_import_helper

    return importlib.import_module(mname)

  File "/snap/dkentry-python3/x1/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module

    return _bootstrap._gcd_import(name[level:], package, level)

  File "<frozen importlib._bootstrap>", line 994, in _gcd_import

  File "<frozen importlib._bootstrap>", line 971, in _find_and_load

  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 658, in _load_unlocked

  File "<frozen importlib._bootstrap>", line 571, in module_from_spec

  File "<frozen importlib._bootstrap_external>", line 922, in create_module

  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed

ImportError: /snap/dkentry-python3/x1/usr/lib/arm-linux-gnueabihf/libpjsua2.so.2: undefined symbol: _ZTIN2pj16AudioMediaPlayerE

 

During handling of the above exception, another exception occurred:

 

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "/snap/dkentry-python3/x1/usr/lib/python3/dist-packages/pjsua2.py", line 17, in <module>

    _pjsua2 = swig_import_helper()

  File "/snap/dkentry-python3/x1/usr/lib/python3/dist-packages/pjsua2.py", line 16, in swig_import_helper

    return importlib.import_module('_pjsua2')

  File "/snap/dkentry-python3/x1/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module

    return _bootstrap._gcd_import(name[level:], package, level)

ImportError: /snap/dkentry-python3/x1/usr/lib/arm-linux-gnueabihf/libpjsua2.so.2: undefined symbol: _ZTIN2pj16AudioMediaPlayerE

 

Thanks

 

_______________________________________________
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