[New-bugs-announce] [issue2020] _sha256 module missing if openssl is not in a "normal" directory.

Peter Saunders report at bugs.python.org
Wed Feb 6 16:45:44 CET 2008

New submission from Peter Saunders:

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 _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):
CFLAGS=-xO5 -m32 -xarch=sse3 -xcache=generic -xchip=generic
CXXFLAGS=-xO5 -m32 -xarch=sse3 -xcache=generic -xchip=generic
LDFLAGS=-L/opt/IB/lib -R/opt/IB/lib

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?

components: Build
messages: 62101
nosy: pajs at fodder.org.uk
severity: normal
status: open
title: _sha256 module missing if openssl is not in a "normal" directory.
versions: Python 2.5

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list