New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_dbm not building on Fedora 17 #59249
Comments
After upgrading from Fedora 16 -> 17, my previously working trunk build is getting the following error: Building '_dbm' extension Failed to build these modules: |
The gdbm provided with Fedora 17 provides /usr/include/ndbm.h. This makes setup.py think that it should try link with -lndbm when it actually requires -lgdbm_compat. A workaround is to specify --with-dbmliborder=gdbm to force gdbm to be used. I'll try and make a patch for this. |
Attached is a patch which fixes the issue on Fedora 17. If this doesn't break other OSes I'll commit it for 2.7, 3.2 and 3.3. |
Patch works for me, and looks pretty safe for other platforms. |
New changeset e2be1f43beed by Nick Coghlan in branch '3.2': New changeset 1f6c23ed8218 by Nick Coghlan in branch 'default': |
New changeset 4d62f788aa19 by Nick Coghlan in branch '2.7': |
I committed the fix to at least get things building again, but this should probably get a NEWS entry (since builds that would have previously used gdbm directly will now use it in ndbm compatibility mode instead) |
Yeah, after I submitted the patch, I was unsure if that was a good idea or if it should try and use gdbm in native mode if possible. |
I think we can skip the belated NEWS entry for something that happened a couple of years ago... |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: