#367 closed defect (fixed)
Python dbm error
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | |
Component: | BOOK | Version: | ~CVS |
Severity: | normal | Keywords: | |
Cc: |
Description ¶
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/dbm.so * WARNING: renaming "dbm" since importing it failed: build/lib.linux-i686-2.3/dbm.so: undefined symbol: dbm_firstkey http://sourceforge.net/tracker/index.php?func=detail&aid=820953&group_id=5470&atid=105470"
Change History (12)
comment:1 by , 21 years ago
comment:2 by , 21 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 , 21 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 , 21 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.
comment:5 by , 21 years ago
attachments.isobsolete: | 0 → 1 |
---|
comment:6 by , 21 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 , 21 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 , 21 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I get the same messages, but there is no error. The build does not halt. Also, shared and static libpython get built.