Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #15649 (closed defect: fixed)

Opened 6 months ago

Last modified 3 months ago

py-bsddb using db46 fails on ppc, and on Intel

Reported by: blair@… Owned by: dluke@…
Priority: Normal Milestone: Port Bugs
Component: ports Version: 1.6.0
Keywords: Cc: jwa@…
Port:

Description

On a 10.5.3 ppc system I get this failure:

--->  Verifying checksum(s) for py-bsddb
--->  Checksumming Python-2.4.5.tar.bz2
--->  Extracting py-bsddb
--->  Extracting Python-2.4.5.tar.bz2
--->  Configuring py-bsddb
--->  Building py-bsddb with target build
running build
running build_ext
building '_bsddb' extension
creating build
creating build/temp.macosx-10.3-ppc-2.4
/usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/opt/local/include/db46 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c _bsddb.c -o build/temp.macosx-10.3-ppc-2.4/_bsddb.o
_bsddb.c: In function 'DBEnv_set_lk_max':
_bsddb.c:3844: error: 'struct __db_env' has no member named 'set_lk_max'
_bsddb.c: In function 'init_bsddb':
_bsddb.c:5042: error: 'DB_CACHED_COUNTS' undeclared (first use in this function)
_bsddb.c:5042: error: (Each undeclared identifier is reported only once
_bsddb.c:5042: error: for each function it appears in.)
_bsddb.c:5077: error: 'DB_RECORDCOUNT' undeclared (first use in this function)
error: command '/usr/bin/gcc-4.0' failed with exit status 1
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-bsddb/work/Python-2.4.5/Modules" && /opt/local/bin/python2.4 setup.py build " returned error 1
Command output: running build
running build_ext
building '_bsddb' extension
creating build
creating build/temp.macosx-10.3-ppc-2.4
/usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/opt/local/include/db46 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c _bsddb.c -o build/temp.macosx-10.3-ppc-2.4/_bsddb.o
_bsddb.c: In function 'DBEnv_set_lk_max':
_bsddb.c:3844: error: 'struct __db_env' has no member named 'set_lk_max'
_bsddb.c: In function 'init_bsddb':
_bsddb.c:5042: error: 'DB_CACHED_COUNTS' undeclared (first use in this function)
_bsddb.c:5042: error: (Each undeclared identifier is reported only once
_bsddb.c:5042: error: for each function it appears in.)
_bsddb.c:5077: error: 'DB_RECORDCOUNT' undeclared (first use in this function)
error: command '/usr/bin/gcc-4.0' failed with exit status 1

Warning: the following items did not execute (for py-bsddb): org.macports.build
Error: Status 1 encountered during processing.

Change History

Changed 4 months ago by jwa@…

  • summary changed from py-bsddb using db46 fails on ppc to py-bsddb using db46 fails on ppc, and on Intel

Well, I have an Intel system, and this port fails to build for me, too (I am with 10.5.4, 9E17, Xcode 3.1)... I don't duplicate the error message, as it's identical.

Changed 4 months ago by jwa@…

  • cc jwa@… added

Cc Me!

Changed 3 months ago by blair@…

  • status changed from new to closed
  • resolution set to fixed

Fixed in r39759.

I just used Python 2.5.2's bsddb module which works with Berkeley DB 4.6. The module compiles and passes using:

$ /opt/local/bin/python2.4 Lib/test/test_bsddb.py
Note: See TracTickets for help on using tickets.