[issue4483] Error to build _dbm module during make

Andrew Price report at bugs.python.org
Fri Dec 5 01:07:38 CET 2008


Andrew Price <andy at andrewprice.me.uk> added the comment:

In Debian Lenny libgbdm-dev provides two libs, libgdbm and libgdbm_compat:

andy at plato:~$ objdump -t /usr/lib/libgdbm.a | grep dbm_firstkey
00000000         *UND*	00000000 gdbm_firstkey
00000140 g     F .text	00000056 gdbm_firstkey

andy at plato:~$ objdump -t /usr/lib/libgdbm_compat.a | grep dbm_firstkey
00000000         *UND*	00000000 gdbm_firstkey
00000000 g     F .text	00000060 dbm_firstkey
00000000         *UND*	00000000 gdbm_firstkey

So it looks like we need to link against -lgdbm_compat instead of -lgdbm
for the _dbm module. I'm attaching dbm3.diff which seems to fix the
problem (I did a test build with it).

Added file: http://bugs.python.org/file12230/dbm3.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4483>
_______________________________________


More information about the Python-bugs-list mailing list