Message260862
p.s. On a debian (on POWER) system, the function is working, but the test seems a bit broken as well, i.e., cdll.LoadLibrary("libm.so") is not working even though
if os.name == "posix":
# find and load_version
print find_library("m")
print find_library("c")
print find_library("bz2")
has successfully printed.
root@ipv4:/home/michael# python -m ctypes.util
libm.so.6
libc.so.6
libbz2.so.1.0
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/ctypes/util.py", line 287, in <module>
test()
File "/usr/lib/python2.7/ctypes/util.py", line 282, in test
print cdll.LoadLibrary("libm.so")
File "/usr/lib/python2.7/ctypes/__init__.py", line 443, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libm.so: cannot open shared object file: No such file or directory
root@ipv4:/home/michael# uname -a
Linux ipv4.rootvg.net 3.16.0-4-powerpc64 #1 SMP Debian 3.16.7-ckt9-3 (2015-04-23) ppc64 GNU/Linux
root@ipv4:/home/michael# ldconfig -p | grep libm.so
libm.so.6 (libc6, OS ABI: Linux 2.6.32) => /lib/powerpc-linux-gnu/libm.so.6
root@ipv4:/home/michael# ls -l /lib/powerpc-linux-gnu/libm.so.6
lrwxrwxrwx 1 root root 12 Apr 15 2015 /lib/powerpc-linux-gnu/libm.so.6 -> libm-2.19.so
root@ipv4:/home/michael# ls -l /lib/powerpc-linux-gnu/libm-2.19.so
-rw-r--r-- 1 root root 743784 Apr 15 2015 /lib/powerpc-linux-gnu/libm-2.19.so |
|
Date |
User |
Action |
Args |
2016-02-25 16:02:39 | Michael.Felt | set | recipients:
+ Michael.Felt |
2016-02-25 16:02:39 | Michael.Felt | set | messageid: <1456416159.01.0.3174039515.issue26439@psf.upfronthosting.co.za> |
2016-02-25 16:02:38 | Michael.Felt | link | issue26439 messages |
2016-02-25 16:02:38 | Michael.Felt | create | |
|