This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author akineko
Recipients
Date 2007-08-20.09:23:41
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
This is not really a bug.
ctypes uses 'objdump', which is not available by default.
(There are reasons not to install binutil on Solaris)

There is no 'objdump' but Solaris has 'elfdump', instead.

ctypes.util.py can use 'elfdump' instead of 'objdump'.

#        cmd = "objdump -p -j .dynamic 2>/dev/null " + f
        cmd = "elfdump -d 2>/dev/null " + f

#        res = re.search(r'\sSONAME\s+([^\s]+)', os.popen(cmd).read())
        res = re.search(r'\sSONAME\s+([^\s]+)\s+([^\s]+)', os.popen(cmd).read())        if not res:
            return None
        return res.group(2) # <<<--- 

//

./Modules/_ctypes/libffi/config.guess
also uses objdump so that file probably needs to be updated as well.

Thank you for your attention.
History
Date User Action Args
2007-08-23 14:59:20adminlinkissue1777530 messages
2007-08-23 14:59:20admincreate