When USE="berkdb" emerge =python-2.4.4-r4, I see the following in the build log: db.h: found (3, 2) in /usr/include/db3 db lib: using (3, 2) db-3.2 building '_bsddb' extension i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=pentium-m -fomit-frame-pointer -pipe -fweb -ftracer -fno-strict-aliasing -DNDEBUG -O2 -march=pentium-m -fomit-frame-pointer -pipe -fweb -ftracer -I. -I./Include -fPIC -I/usr/include/db3 -I. -I/var/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/./Include -I/var/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/Include -I/var/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4 -c /var/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/Modules/_bsddb.c -o build/temp.linux-i686-2.4/_bsddb.o /var/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/Modules/_bsddb.c: In function 'DB_length': /var/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/Modules/_bsddb.c:2493: error: 'DB_FAST_STAT' undeclared (first use in this function) /var/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/Modules/_bsddb.c:2493: error: (Each undeclared identifier is reported only once /var/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/Modules/_bsddb.c:2493: error: for each function it appears in.) As a result, the lib-dynload/_bsdsd.so is not produced. I was able to fix this by bumping the DEPEND to include >=sys-libs/db-4. Reproducible: Always
Same problem, except that bumping the DEPEND does not appear to make a difference for me.
same problem here, pls check this forum post:) http://forums.gentoo.org/viewtopic-p-4127627.html
This appears to occur when building python against >=sys-libs/db-4.5. Python appears to build the lib correctly with sys-libs/db-4.3 and sys-libs/db-4.4.
Actually, if I recall correctly, it was the 4.3 and 4.4 slots which had the problem. I am running 4.5 and it was built and installed and accessible just fine. I wrote this bug up a few months ago though, perhaps something has changed with the ebuilds. I don't know.
I am experiencing the problem with sys-libs/db-4.5.20_p2 installed.
Python 2.4.4 is only intended to work with versions 3.2 to 4.4 of Oracle Berkeley DB. The DEPEND variable in the ebuild should be updated to reflect that. Currently, Gentoo has an ebuild for version 4.3.29 of of this package. With this installed, Python's bsddb module builds without problem.
Same here. Because sys-libs/db is not in my world file, the older sys-libs/db-4.3.29-r2 was removed by depclean, leaving only db-4.5.20_p2 installed, which is unsuitable for python. With both slots installed (4.3.29-r2 and 4.5.20_p2) python works as expected. So please fix the sys-libs/db dependency in python package...
I got sys-libs/db 1.85-r3, 3.2.9-r11, 4.3.29-r2 and 4.5.20_p2 installed. Rebuilding python-2.4.4-r5 makes dbm.so link against libdb1.so.2 and _bsddb.so link against libdb-4.3.so
Any news on this one? Should be no big deal to add a dep to python. It is causing troubles with Gramps.
(In reply to comment #9) > Any news on this one? Should be no big deal to add a dep to python. It is > causing troubles with Gramps. I have got exectly the same problem. Have you found a short and nonexpensive solution?
Yes, I added db-4.3 to the world file to prevent it from being removed. now I am waiting for the python ebuild to be corrected.
This clobbers TMDA also. I can verify that emerging sys-libs/db-4.3.29-r2 works as a work-around. And that this dependency problem still exists as of dev-lang/python-2.4.4-r6.
*bump* gramps-2.2.6, python-2.4.4-r6, db-4.5.20_p2 - gramps is unable to start. I read this as the latest "stable" python ebuild being *broken* for six months now. Is there some way to "vote" for a bug to beg for the attention of the maintainers? :-(
#13: How about typing '/Vote' in Firefox before asking? http://bugs.gentoo.org/votes.cgi?action=show_user&bug_id=179377#vote_179377
*** Bug 204146 has been marked as a duplicate of this bug. ***
Created attachment 140994 [details, diff] python-2.4.4-r9.ebuild This patch replaces dependency on >=sys-libs-3.1 with sys-libs/db:4.4 or :4.3 according previous suggestion. With this patch the binding library _bsddb.so is compiled and python applications using the Berkly DB works fine.
Is there any problem with the proposed patch? This is a gentoo core-package and this bug is open for more than half a year.
(In reply to comment #17) > Is there any problem with the proposed patch? This is a gentoo core-package and > this bug is open for more than half a year. It should not...I committed the fix with some adjustment, and we should carry this revision -r9 to stable soon. Sorry for the delay, sorry Python team for the digging in your front garden. Closing.