#24310: python26 does not provide _bsddb ----------------------------------+----------------------------------------- Reporter: guy.linton@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: bsddb | Port: python26 ----------------------------------+----------------------------------------- I have built python26, but it does not find the _bsddb module: {{{ [Thu Apr 01 10:19:56]G5:~ tim$ sudo python_select python26 Password: Selecting version "python26" for python [Thu Apr 01 10:20:36]G5:~ tim$ python Python 2.6.5 (r265:79063, Mar 21 2010, 12:06:08) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import bsddb Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/bsddb/__init__.py", line 64, in <module> import _bsddb ImportError: No module named _bsddb }}}
I think that perhaps bdsdb for python26 is in bsddb185.so instead of _bsddb.so. But in my build, it does not seem to be complete. The last bit of otool -TMvDlL for python25 _bsddb.so says: {{{ Load command 3 cmd LC_LOAD_DYLIB cmdsize 60 name /opt/local/lib/db46/libdb-4.6.dylib (offset 24) time stamp 1269169817 Sun Mar 21 11:10:17 2010 current version 0.0.0 compatibility version 0.0.0 ...skipped Load command 7 cmd LC_DYSYMTAB cmdsize 80 ilocalsym 0 nlocalsym 8010 iextdefsym 8010 nextdefsym 5 iundefsym 8015 nundefsym 72 tocoff 0 ntoc 0 modtaboff 0 nmodtab 0 extrefsymoff 0 nextrefsyms 0 indirectsymoff 194972 nindirectsyms 134 extreloff 0 nextrel 0 locreloff 94208 nlocrel 465 /opt/local/lib/db46/libdb-4.6.dylib (compatibility version 0.0.0, current version 0.0.0) time stamp 1269169817 Sun Mar 21 11:10:17 2010 /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) time stamp 1159409917 Thu Sep 28 03:18:37 2006 /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.12) time stamp 1264792999 Fri Jan 29 19:23:19 2010 }}} but for python26, the last part of the otool output is: {{{ Load command 6 cmd LC_DYSYMTAB cmdsize 80 ilocalsym 0 nlocalsym 1104 iextdefsym 1104 nextdefsym 1 iundefsym 1105 nundefsym 41 tocoff 0 ntoc 0 modtaboff 0 nmodtab 0 extrefsymoff 0 nextrefsyms 0 indirectsymoff 30680 nindirectsyms 75 extreloff 0 nextrel 0 locreloff 16384 nlocrel 68 /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) time stamp 1159409917 Thu Sep 28 03:18:37 2006 /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.12) time stamp 1264792999 Fri Jan 29 19:23:19 2010 }}} Please let me know what flags for otool are needed if you want the rest of the otool output. -- Ticket URL: <http://trac.macports.org/ticket/24310> MacPorts <http://www.macports.org/> Ports system for Mac OS