[issue5289] ctypes.util.find_library does not work under Solaris

2009-02-18 Thread Ke Wang
Ke Wang added the comment: Above patch failed in a TabError. Attached a new one. Added file: http://bugs.python.org/file13133/util.diff ___ Python tracker <http://bugs.python.org/issue5

[issue5289] ctypes.util.find_library does not work under Solaris

2009-02-18 Thread Ke Wang
Ke Wang added the comment: On Solaris, we can use crle to find system library path. Attached a patch to get find_library work with Solaris. -- keywords: +patch Added file: http://bugs.python.org/file13129/util.diff ___ Python tracker <h

[issue5289] ctypes.util.find_library does not work under Solaris

2009-02-17 Thread Ke Wang
Ke Wang added the comment: I tested the command 'gcc -Wl,-t' on Ubuntu, it works fine. But on Solaris, it doesn't work as expected. Finally I find that gcc does not use GNU ld on Solaris, instead, it uses SUN ld. ___ Python tracker <http

[issue5289] ctypes.util.find_library does not work under Solaris

2009-02-17 Thread Ke Wang
New submission from Ke Wang : Under Solaris, find_library can not give the correct path. Solaris does not have /sbin/ldconfig, so _findLib_gcc is used. def _findLib_gcc(name): expr = r'[^\(\)\s]*lib%s\.[^\(\)\s]*' % re.escape(name) fdout, ccout = tempfi