Opened 18 years ago

Closed 18 years ago

Last modified 8 years ago

#367 closed defect (fixed)

Python dbm error

Reported by: igor@… Owned by: blfs-book@…
Priority: high Milestone:
Component: BOOK Version: ~CVS
Severity: normal Keywords:


Jim Gifford:

"Python 2.3.2 errors and does not build libpython. Errors as building 'dbm' extension gcc -pthread -DNDEBUG -g -Wall -Wstrict-prototypes -fPIC -fno-strict-aliasin g -DHAVE_NDBM_H -I. -I/usr/src/Python-2.3.2/./Include -I/usr/local/include -I/ usr/src/Python-2.3.2/Include -I/usr/src/Python-2.3.2 -c /usr/src/Python-2.3.2/Modules/dbmmodule.c -o build/temp.linux-i686-2.3/dbmmodule.o gcc -pthread -shared build/temp.linux-i686-2.3/dbmmodule.o -L/usr/local/lib -o build/lib.linux-i686-2.3/ * WARNING: renaming "dbm" since importing it failed: build/lib.linux-i686-2.3/ undefined symbol: dbm_firstkey"

Attachments (2)

Python-2.3.2-gdbm-1[1].patch (1.1 KB ) - added by jim@… 18 years ago.
Patch to fix gdbm error
Python-2.3.2-gdbm-2[1].patch (1.4 KB ) - added by jim@… 18 years ago.
Updated Patch

Download all attachments as: .zip

Change History (12)

comment:1 by tushar@…, 18 years ago

I get the same messages, but there is no error. The build does not halt. Also, shared and static libpython get built.

comment:2 by jim@…, 18 years ago

Upon researching the problem, I came accross a few interesting facts. According to Redhat, Mandrake, and Gentoo installations, dbm.h should be in /usr/include/gdbm, which is not the case with gdbm installation we currently have in BLFS. I suggest a change gdbm in BLFS add to the configure line --includedir=/usr/include/gdbm to fix the error.

comment:3 by jim@…, 18 years ago

After checking comment made by Alexander E. Patrakov <semzx@…>. I visited the packages that use gdbm, and found out most of them look into /usr/include. I will submit a patch to fix python to also look into this location.

comment:4 by jim@…, 18 years ago

People sent me an email on how to check for the error, since the error continues to install. Verify that /usr/lib/python2.3/config/libpython2.3.a exists. If not you need the patch.

Patch has been submitted to patches@… and will also be attached to this ticket.

by jim@…, 18 years ago

Patch to fix gdbm error

comment:5 by jim@…, 18 years ago

attachments.isobsolete: 01

by jim@…, 18 years ago

Updated Patch

comment:6 by tushar@…, 18 years ago

$ ls -l /usr/lib/python2.3/config/libpython2.3.a

-rw-r--r-- 1 python python 1478236 Oct 12 14:06 /usr/lib/python2.3/config/libpython2.3.a

So the lib still gets built after the message that looks like an error.

Anyways the patch is simple enough to be included in the book.

comment:7 by larry@…, 18 years ago

/usr/lib/python2.3/config/libpython2.3.a exists here but test_dbm is an unexpected skip until patch applied.

comment:8 by larry@…, 18 years ago

Resolution: fixed
Status: newclosed

comment:9 by igor@…, 18 years ago


comment:10 by bdubbs@…, 8 years ago

Milestone: old

Milestone old deleted

Note: See TracTickets for help on using tickets.