[yocto] Missing _bsddb.so from python build

Maxwell Bottiger sleepylight at jive-turkey.net
Thu Jul 23 07:58:30 PDT 2015


I figured this out in the end.

By default it looks like Fido, and at least the releases from Dizzy on
build Berkeley db version 6.  Python 2.7 needs db version 5 in order to
build all of the components for python-bsddb.  If you build using db
version 6, there aren't any warning messages that get propagated to the
user, and you end up with a non-working version of the python database
binding.  That's frustrating, but I expect has been fixed in Python 3.x.  I
haven't tried.

Anyway, the fix in my case was just to change the preferred version of db,
and rebuild my image.
Adding PREFERRED_VERSION_db = "5.3.28" to my local.conf file did the trick.

On Wed, Jul 22, 2015 at 10:15 AM, Maxwell Bottiger <
sleepylight at jive-turkey.net> wrote:

> Hi,
>
> I'm trying to build python in yocto, and I'm hung up on a missing
> library.  I've built python-bsddb, and I see all of the .py and .pyc
> libraries, but I don't have _bsddb.so in lib-dynload.  I see the
> python-2.7-mainfest.inc either installs it or expects to install it, but I
> can't get anything to build it.
>
> Does anyone know how to generate _bsddb.so?
>
> -Max
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150723/911b8683/attachment.html>


More information about the yocto mailing list