#13666: openssl as a default package
------------------------+---------------------------------------------------
   Reporter:  tmonteil  |             Owner:  GeorgSWeber             
       Type:  defect    |            Status:  new                     
   Priority:  major     |         Milestone:  sage-5.5                
  Component:  build     |          Keywords:  openssl, startup, days43
Work issues:            |   Report Upstream:  N/A                     
  Reviewers:            |           Authors:                          
  Merged in:            |      Dependencies:                          
   Stopgaps:            |  
------------------------+---------------------------------------------------
 openssl should not be optional. It is not only needed for
 "notebook(secure=True)" as explained in ticket #13385, but also for
 hashlib (md5). If it is not installed on the distro, sage won't start.

 Usually, openssl is there so no problem happen, but since openssl is going
 from 0.9.8 to 1.0.0, we will experience problems with distros upgrades.
 For example, Debian is moving from openssl0.9.8 to openssl1.0.0 in the
 next stable release (currently frozen): if sage is compiled on squeeze and
 then run on wheezy, we get the following errors at startup:

 {{{
 ERROR:root:code for hash md5 was not found.
 Traceback (most recent call last):
   File
 "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/lib/python/hashlib.py",
 line 139, in <module>
     globals()[__func_name] = __get_hash(__func_name)
   File
 "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/lib/python/hashlib.py",
 line 91, in __get_builtin_constructor
     raise ValueError('unsupported hash type %s' % name)
 ValueError: unsupported hash type md5
 ERROR:root:code for hash sha1 was not found.
 Traceback (most recent call last):
   File
 "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/lib/python/hashlib.py",
 line 139, in <module>
     globals()[__func_name] = __get_hash(__func_name)
   File
 "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/lib/python/hashlib.py",
 line 91, in __get_builtin_constructor
     raise ValueError('unsupported hash type %s' % name)
 ValueError: unsupported hash type sha1
 ERROR:root:code for hash sha224 was not found.
 Traceback (most recent call last):
   File
 "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/lib/python/hashlib.py",
 line 139, in <module>
     globals()[__func_name] = __get_hash(__func_name)
   File
 "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/lib/python/hashlib.py",
 line 91, in __get_builtin_constructor
     raise ValueError('unsupported hash type %s' % name)
 ValueError: unsupported hash type sha224
 ERROR:root:code for hash sha256 was not found.
 Traceback (most recent call last):
   File
 "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/lib/python/hashlib.py",
 line 139, in <module>
     globals()[__func_name] = __get_hash(__func_name)
   File
 "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/lib/python/hashlib.py",
 line 91, in __get_builtin_constructor
     raise ValueError('unsupported hash type %s' % name)
 ValueError: unsupported hash type sha256
 ERROR:root:code for hash sha384 was not found.
 Traceback (most recent call last):
   File
 "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/lib/python/hashlib.py",
 line 139, in <module>
     globals()[__func_name] = __get_hash(__func_name)
   File
 "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/lib/python/hashlib.py",
 line 91, in __get_builtin_constructor
     raise ValueError('unsupported hash type %s' % name)
 ValueError: unsupported hash type sha384
 ERROR:root:code for hash sha512 was not found.
 Traceback (most recent call last):
   File
 "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/lib/python/hashlib.py",
 line 139, in <module>
     globals()[__func_name] = __get_hash(__func_name)
   File
 "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/lib/python/hashlib.py",
 line 91, in __get_builtin_constructor
     raise ValueError('unsupported hash type %s' % name)
 ValueError: unsupported hash type sha512
 Traceback (most recent call last):
   File "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/bin/sage-
 ipython", line 18, in <module>
     import IPython
   File
 "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/lib/python2.7/site-
 packages/IPython/__init__.py", line 58, in <module>
     __import__(name,glob,loc,[])
   File
 "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/lib/python2.7/site-
 packages/IPython/ipstruct.py", line 17, in <module>
     from IPython.genutils import list2dict2
   File
 "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/lib/python2.7/site-
 packages/IPython/genutils.py", line 53, in <module>
     from IPython.external.path import path
   File
 "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/lib/python2.7/site-
 packages/IPython/external/path.py", line 35, in <module>
     import md5
   File
 "/usr/local/sagemath/sage-5.3-minimal-i686-Linux/local/lib/python/md5.py",
 line 10, in <module>
     from hashlib import md5
 ImportError: cannot import name md5

 }}}

 If libssl.so.0.9.8 and libcrypto.so.0.9.8 is copied on the sage local/lib
 directory, the problem disapears and sage can start.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13666>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to