[issue1167] gdbm/ndbm 1.8.1+ needs libgdbm_compat.so

2008-02-24 Thread Eh Tan

Eh Tan added the comment:

According to gdbm NEW, the dbm/ndbm compatibility routines was moved to
libgdbm_compat in v1.8.1, which was released in late 2002.

The patch works for gdbm-1.8.1+. But I am afraid that the patch will
cause build error with gdbm-1.8.0 and earlier version. A more
sophisticated approach is needed. The approach will do the following:

1. find gdbm library and gdbm/ndbm.h header
2. check the presence of dbm_open() function in gdbm library
3. if present, link with gdbm
4. if not, link with gdbm_compat

Step 1 and 3 are already in setup.py. The patch adds step 4, but step 2
is missing.

I don't have enough skill in distutil to implement it though...

--
nosy: +tan2

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1167>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1706863] Failed to build Python 2.5.1 with sqlite3

2008-02-24 Thread Eh Tan

Eh Tan added the comment:

The problem is at line 890, setup.py, r60970.

sqlite_libfile = self.compiler.find_library_file(  
   
 sqlite_dirs_to_check + lib_dirs, 'sqlite3')
sqlite_libdir = [os.path.abspath(os.path.dirname(sqlite_libfile))]
   
   

self.compiler.find_library_file() will return None if the library is not
found. The code passes None to os.path.dirname and cause the error.

--
nosy: +tan2

_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1706863>
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com