On Feb 7, 2010, at 12:12 AM, David Kirkby wrote:
On 6 February 2010 23:25, Jaap Spies <j.sp...@hccnet.nl> wrote:
Dr. David Kirkby wrote:
Dr. David Kirkby wrote:
[...]
However, on OpenSolaris, the issue is more severe. Both Jaap and
William
will confirm that the test in python for hashlib has failed.
To a certain extend. I had opensll installed on Open Solaris, but
more than
once
on different places. That causes problems installing python. Once I
cleared
this, I could build a proper python having hashlib available.
Jaap
A point made at
http://blogs.sun.com/janp/entry/on_openssl_versions_in_solaris
is installing different versions of OpenSSL can cause problems.
If a user has multiple, conflicting versions of OpenSSL on their
system, then I agree there can easily be problems. Of interest to Sage
is what happens when OpenSSL is not installed/found at all because of
the issues in requiring OpenSSL as a dependancy.
Can you build the python in 64-bit mode, wit no error when
spkg-install check for hashlib whilst ensuring the permissions on ALL
ssl libraries are 000?
I don't have a 64-bit VM handy (and I'm running this in a 32-bit host
OS if that makes a difference), nor do I have the time to set one up.
Setting permissions to 000 makes no difference to the 32-bit build,
which makes sense because if the headers are not found, it doesn't
even attempt to link against openssl. This shouldn't change between 32
and 64 bit builds (and it's pretty simple Python, not an autoconf
script that leaves plenty of room for magic and mystery).
IIRC, you installed OpenSSL via the package manager too.
It happened to already be in the image I found online.
To the best of my knowlege, it is impossible to do this on
OpenSolaris.
I have yet to hear of a build where "import hashlib" fails but "import
math" does not because OpenSSL is missing. When the latter fails, it
clearly has nothing to do with OpenSSL. (For 64-bit builds, it could
be indicitive of a missing -m64 flag in the OPT environment variable.)
- Robert
--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org