[yocto] undefined symbol: dbm_nextkey when trying import anydbm

Belisko Marek marek.belisko at gmail.com
Wed Oct 16 04:40:40 PDT 2013


Hello,

I'm trying to run some python code on imx6 board but get following error:
    import tlslite
  File "/usr/lib/python2.7/site-packages/tlslite/__init__.py", line
27, in <module>
    from tlslite.api import *
  File "/usr/lib/python2.7/site-packages/tlslite/api.py", line 12, in <module>
    from .verifierdb import VerifierDB
  File "/usr/lib/python2.7/site-packages/tlslite/verifierdb.py", line
9, in <module>
    from .basedb import BaseDB
  File "/usr/lib/python2.7/site-packages/tlslite/basedb.py", line 13,
in <module>
    import dbm as anydbm
ImportError: /usr/lib/python2.7/lib-dynload/dbm.so: undefined symbol:
dbm_nextkey

I add manually tlslite recipe like:
--- /dev/null
+++ b/meta/recipes-devtools/python/python-tlslite_0.4.6.bb
@@ -0,0 +1,19 @@
+DESCRIPTION = "TLS Lite is a free python library that implements SSL
3.0 and TLS 1.0. TLS Lite supports non-traditional \
+authentication methods such as SRP, shared keys, and cryptoIDs, in
addition to X.509 certificates. TLS Lite is pure  \
+Python, however it can access OpenSSL or cryptlib for faster crypto
operations."
+SECTION = "devel/python"
+HOMEPAGE = "http://trevp.net/tlslite/"
+PRIORITY = "optional"
+LICENSE = "PD"
+SRCNAME = "tlslite"
+PR = "ml0"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=124965e4b4f94b27c639fb4a25ff3ec4"
+
+SRC_URI = "https://pypi.python.org/packages/source/t/tlslite/tlslite-${PV}.tar.gz"
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+SRC_URI[md5sum] = "2f92ebea557802969653f29c7faafbc2"
+SRC_URI[sha256sum] =
"5a707af9afbd27cf99c87697ce2f7e87752cf160f20384212bc2d1d42ea7dd08"
+
+inherit distutils

Any ideas what could cause undefined symbol (or something is missing in recipe)?

Thanks,

marek
-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com



More information about the yocto mailing list