[New-bugs-announce] [issue3543] ctypes works on Intel OS X, fails on PPC OS X

Bill Janssen report at bugs.python.org
Mon Aug 11 20:37:58 CEST 2008


New submission from Bill Janssen <bill.janssen at gmail.com>:

Hi, I'm having more problems with ctypes.util.find_library.  On my
Intel box, this works fine:

% python
Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) 
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import CDLL, RTLD_GLOBAL
>>> from ctypes.util import find_library
>>> print CDLL(find_library("iconv"), RTLD_GLOBAL)
<CDLL '/usr/lib/libiconv.dylib', handle 311df0 at 8a1b0>
>>> 

But on my PowerPC box, I get this:

% python
Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:16) 
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import CDLL, RTLD_GLOBAL
>>> from ctypes.util import find_library
>>> print CDLL(find_library("iconv"), RTLD_GLOBAL)
<CDLL 'None', handle fffffffe at 75af0>
>>> 

Both have /usr/lib/libiconv.dylib, both are running 10.5.4.

----------
components: Library (Lib)
messages: 71028
nosy: janssen
priority: normal
severity: normal
status: open
title: ctypes works on Intel OS X, fails on PPC OS X
type: behavior
versions: Python 2.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3543>
_______________________________________


More information about the New-bugs-announce mailing list