You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TL;DR: After PR #194, code uses errno. In Solaris, errno implementation depends of _REENTRANT symbol defined of not. In distribution-based python, _REENTRANT is defined in python.h, but in current LMDB code #include "python.h" is done AFTER #include <errno.h>, too late for it to have the right effect.
Tha patch is trivial: do #include <errno.h> later or, better, do #include "python.h" because could be some other side-effects that we want to enable ASAP.
Pull Request in a few minutes.
Errors/exceptions Encountered
LMDB fails to open an old database because errno doesn't recognize "file exists" error on Solaris.
The text was updated successfully, but these errors were encountered:
jcea
added a commit
to jcea/py-lmdb
that referenced
this issue
Sep 27, 2019
Affected Operating Systems
Affected py-lmdb Version
Releases after Jan 22, 2019.
py-lmdb Installation Method
sudo pip install lmdb
Using bundled or distribution-provided LMDB library?
Bundled and distribution-provided.
Describe Your Problem
After PR #194 was integrated, LMDB doesn't work on Solaris based systems.
Full triage and details: TritonDataCenter/pkgsrc#207
TL;DR: After PR #194, code uses
errno
. In Solaris,errno
implementation depends of_REENTRANT
symbol defined of not. In distribution-based python,_REENTRANT
is defined inpython.h
, but in current LMDB code#include "python.h"
is done AFTER#include <errno.h>
, too late for it to have the right effect.Tha patch is trivial: do
#include <errno.h>
later or, better, do#include "python.h"
because could be some other side-effects that we want to enable ASAP.Pull Request in a few minutes.
Errors/exceptions Encountered
LMDB fails to open an old database because
errno
doesn't recognize "file exists" error on Solaris.The text was updated successfully, but these errors were encountered: