Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_sha256 module missing if openssl is not in a "normal" directory. #46304

Closed
pajsfodderorguk mannequin opened this issue Feb 6, 2008 · 4 comments
Closed

_sha256 module missing if openssl is not in a "normal" directory. #46304

pajsfodderorguk mannequin opened this issue Feb 6, 2008 · 4 comments
Labels
build The build process and cross-build type-feature A feature request or enhancement

Comments

@pajsfodderorguk
Copy link
Mannequin

pajsfodderorguk mannequin commented Feb 6, 2008

BPO 2020
Nosy @loewis, @terryjreedy, @bitdancer

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2012-06-10.02:26:19.007>
created_at = <Date 2008-02-06.15:44:44.109>
labels = ['type-feature', 'build']
title = '_sha256 module missing if openssl is not in a "normal" directory.'
updated_at = <Date 2012-06-10.02:26:19.005>
user = 'https://bugs.python.org/pajsfodderorguk'

bugs.python.org fields:

activity = <Date 2012-06-10.02:26:19.005>
actor = 'r.david.murray'
assignee = 'none'
closed = True
closed_date = <Date 2012-06-10.02:26:19.007>
closer = 'r.david.murray'
components = ['Build']
creation = <Date 2008-02-06.15:44:44.109>
creator = 'pajs@fodder.org.uk'
dependencies = []
files = []
hgrepos = []
issue_num = 2020
keywords = ['buildbot']
message_count = 4.0
messages = ['62101', '62112', '107421', '162578']
nosy_count = 4.0
nosy_names = ['loewis', 'terry.reedy', 'pajs@fodder.org.uk', 'r.david.murray']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue2020'
versions = ['Python 2.5']

@pajsfodderorguk
Copy link
Mannequin Author

pajsfodderorguk mannequin commented Feb 6, 2008

When compiling python 2.5.1 on Solaris 10 (sparc and x86), with openssl
0.9.8e - test_md5 fails with No module named _sha256. (As does doing an
"import md5")

When compiling, setup.dist was modified, the ssl parts were uncommented,
and modified to use the directory that we have ssl installed in.

SSL=/opt/IB
_ssl _ssl.c \
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-L$(SSL)/lib -R$(SSL)/lib -lssl -lcrypto

The compiling env (on sol x86):
CC=cc
CFLAGS=-xO5 -m32 -xarch=sse3 -xcache=generic -xchip=generic
CPPFLAGS=-I/opt/IB/include
CXX=CC
CXXFLAGS=-xO5 -m32 -xarch=sse3 -xcache=generic -xchip=generic
LDFLAGS=-L/opt/IB/lib -R/opt/IB/lib
LD_RUN_PATH=/opt/IB/lib
PATH=/usr/bin:/sbin:/usr/sbin:/opt/IB/bin:/usr/ccs/bin:/opt/SUNWspro/bin

configure --prefix=/opt/IBpython/2.5.1 --without-gcc --with-threads

However, if I modify setup.py, and replace every occurrence of
"/usr/local" with "/opt/IB" (we don't use /usr/local) - then it compiles
fine, and the md5 module works correctly.

Is it possible for this to be made a configure argument, or a
environment setting?

@pajsfodderorguk pajsfodderorguk mannequin added the build The build process and cross-build label Feb 6, 2008
@tiran tiran added the type-feature A feature request or enhancement label Feb 6, 2008
@loewis
Copy link
Mannequin

loewis mannequin commented Feb 6, 2008

You need to add _hashopenssl to Setup.dist/Setup.local; then it should
provide the missing module. Apparently, when _hashopenssl was added,
nobody put it into Setup.dist. Once you have tested an appropriate
change to Setup.dist, please provide it as a patch.

@terryjreedy
Copy link
Member

Does this 2.5 issue apply to anything current?

@bitdancer
Copy link
Member

Since there's been no response, I'm closing this.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants