There appears to be a problem on OpenSolaris with python building with support
for the hashlib module. Although Sage builds a usable python 2.6.2, the hashlib
module is not built. The end of spkg-checks for haslib module, which fails to
build.
-----------------------------
# Make sure sufficient crypto support is available in the built python.
# This is critical.
python -c "import hashlib"
if [ $? -eq 0 -a -f "$SAGE_LOCAL/bin/python" ]; then
echo "hashlib module imported"
exit 0
else
echo "hashlib module failed to import"
exit 1
fi
-------------------------------
William said installing the OpenSSL libraries would fix this. I downloaded the
latest stable OpenSSL (versions 0.9.8l). If I try to build that on my Sun Ultra
27 Xeon workstation, using all the defaults, so it builds file
bash-3.2$ ./config
Configured for solaris64-x86_64-gcc.
That looks right - this is 64-bit Solaris machine and I'm using gcc.
$ make
I notice that -m64 is being added to everything.
$ make install
All OpenSSL tests appear to pass.
However, when python is being built, so there is this error message:
ld: warning: file /usr/local/ssl/lib/libcrypto.a(digest.o): wrong ELF class:
ELFCLASS64
It looks like my libraries are built 64-bit and since Sage is being built
32-bit
on Solaris, so the OpenSSL libraries I built are not suitable.
I tried configuring OpenSSL for a 32-bit Solaris system with gcc, rather than
the default 64-bit
Cbash-3.2$ ./Configure solaris-x86-gcc
Whilst that builds, it soon fails tests. I've sent an email to
'[email protected] asking if its possible to create 32-bit libraries on
the 64-bit operating system.
Anyone got any ideas about how to get around this?
To see what else does or does not build on Open Solaris, I intend simply
chaning
the spkg-install so it does not check for hashlib. That will cause problems
later, but it will allow some progress to be made, to find what bits of Sage
build on Open Solaris.
Dave
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org