New submission from Jim Garrison <jgarri...@troux.com>:

Trying to build 3.1a1 on Fedora 9, the following extensions get skipped
even though the requisite packages are installed

_dbm               
_gdbm              
_hashlib        
_sqlite3           
_ssl               
bz2             
readline           
zlib                               

After looking at the code in distutils I *think* the problem is because
setup.py isn't coping with library filenames such as "libreadline.so.5"
and "libgdm.so.2" (with the .n) second extension.  

It looks like ccompiler.py#library_filename() just appends the
extension, which is .so for unix, and then
unixccompiler.py#find_library_file() does a simple os.path.exists() on
the name, not allowing for the additional numeric extension.  

Note that some library filenames in Linux have two or even three such
extensions, as in libreadline.so.5.2, and some extensions are not
all-numeric, as in libssl.so.0.9.8g.

----------
assignee: tarek
components: Distutils
messages: 85268
nosy: jgarrison, tarek
severity: normal
status: open
title: distutils fails to find Linux libs (lib.....so.n)
type: compile error
versions: Python 3.1

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5674>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to