[New-bugs-announce] [issue1117] Spurious warning about missing _sha256 and _sha512 when not needed

David Ripton report at bugs.python.org
Thu Sep 6 12:51:21 CEST 2007

New submission from David Ripton:

Python 3.0a1, Gentoo Linux x86, with OpenSSL 0.9.8e installed.

$ ./configure; make

Failed to find the necessary bits to build these modules:
_sha256           _sha512
To find the necessary bits, look in setup.py in detect_modules() for the
module's name.

setup.py says:

if (openssl_ver < 0x00908000):
            # OpenSSL doesn't do these until 0.9.8 so we'll bring our
own hash
            exts.append( Extension('_sha256', ['sha256module.c']) )
            exts.append( Extension('_sha512', ['sha512module.c']) )

But I have openssl 0.9.8e.  So openssl is new enough that I don't need
the _sha256 and _sha512 modules.  And the comment says that "these
aren't strictly missing since they are unneeded", so the error message
is spurious.

components: Build
messages: 55686
nosy: dripton
severity: minor
status: open
title: Spurious warning about missing _sha256 and _sha512 when not needed
type: behavior
versions: Python 3.0

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list