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.

classification
Title: Spurious warning about missing _sha256 and _sha512 when not needed
Type: behavior Stage:
Components: Build Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: skip.montanaro Nosy List: dripton, georg.brandl, skip.montanaro
Priority: normal Keywords:

Created on 2007-09-06 10:51 by dripton, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (8)
msg55686 - (view) Author: David Ripton (dripton) Date: 2007-09-06 10:51
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.
msg55696 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-09-06 15:04
Assigning to Skip.
msg55702 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2007-09-06 15:44
Assigning to me because?  I've had no involvement at all
with SSL or sha code in Python.
msg55703 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-09-06 16:05
Skip Montanaro schrieb:
> Skip Montanaro added the comment:
> 
> Assigning to me because?  I've had no involvement at all
> with SSL or sha code in Python.

IIRC you added the code that collects and displays these messages.
msg55705 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2007-09-06 16:27
>> Assigning to me because?  I've had no involvement at all
    >> with SSL or sha code in Python.

    Georg> IIRC you added the code that collects and displays these
    Georg> messages.

Ah, okay.  I will take a look at that.

Skip
msg55706 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2007-09-06 16:31
I just checked in r58016.  See if that solves the problem.
msg55713 - (view) Author: David Ripton (dripton) Date: 2007-09-06 21:51
Yes, the fix works for me.  Thanks.
msg55715 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2007-09-06 22:30
Thanks.  I'm not sure how this slipped in there (I could check, I
suppose).  It seems to already be on the 2.5 branch, so I added it to
the trunk (r58022) as well.
History
Date User Action Args
2022-04-11 14:56:26adminsetgithub: 45458
2007-09-06 22:30:39skip.montanarosetstatus: pending -> closed
messages: + msg55715
2007-09-06 21:51:04driptonsetmessages: + msg55713
2007-09-06 16:31:20skip.montanarosetstatus: open -> pending
resolution: fixed
messages: + msg55706
2007-09-06 16:27:04skip.montanarosetmessages: + msg55705
title: Spurious warning about missing _sha256 and _sha512 when not needed -> Spurious warning about missing _sha256 and _sha512 when not needed
2007-09-06 16:05:51georg.brandlsetmessages: + msg55703
2007-09-06 15:44:58skip.montanarosetmessages: + msg55702
2007-09-06 15:04:59georg.brandlsetassignee: skip.montanaro
messages: + msg55696
nosy: + georg.brandl, skip.montanaro
title: Spurious warning about missing _sha256 and _sha512 when not needed -> Spurious warning about missing _sha256 and _sha512 when not needed
2007-09-06 10:51:21driptoncreate