Hi On Sun, Apr 17, 2011 at 11:23:20AM +0100, Dr. David Kirkby wrote: > >>It would also be helpful if you could download Python 2.6.4 from the > >>python web site and see if that builds this module. Also try for the > >>latest of the 2.x series. > >> > >>If the problem persists when you try to build the latest Python 2.x, > >>then it might be worth reporting this to the python bug tracker, after > >>first checking to see if someone else has reported it. > > > >I will do this after the ubuntu 11.04 distribution is actually released > >(30 April). I am interested in sage building on that. > > Though it would help if you could track this down before the > release. If the latest Python 2.x will not build, then the Ubuntu > developers should know about that before they release Ubuntu. They > will care less about the older version in Sage. > > >Python bug tracker is not loading for me now. Google cached page is only > >loading > >in text version. Original page I have not seen yet from google search for > >"python bug tracker crypt.so failed to build" is at: > >http://bugs.python.org/issue9762
I added a note on that bug, which is for python 3.2, and marked as fixed released via a setup.py patch, but the build I do is as the README says, ./configure, make. > Try again. It is working for me and has a patch. I have tried building http://www.python.org/ftp/python/2.6.4/Python-2.6.4.tar.bz2 (i.e. not the Ubuntu version, but the upstream version) on Ubuntu 11.04 beta 2 amd64. It failed with the same: Failed to find the necessary bits to build these modules: _bsddb _hashlib _sqlite3 _ssl _tkinter bsddb185 dbm dl gdbm imageop sunaudiodev zlib To find the necessary bits, look in setup.py in detect_modules() for the module's name. Failed to build these modules: crypt nis I built with ./configure, make, as in the README, not with python setup.py build, and that patch is for setup.py so does not make any difference. python setup.py build fails with numerous missing items, and include python2.7.1+ (the default python version on Ubuntu) statements. There is also a packaged version of python2.6.6 in this release, so I assume the Ubuntu patched version builds. The upstream version same problem. The latest Python 2.x is 2.7.1. Also the Ubuntu patched version must build. The upstream does not. So apt-get source python2.6 gets the ubuntu source for 2.6.6, and produces the file python2.6_2.6.6-6ubuntu7.diff.gz [260K] which I can't post now as my server room air conditioning failed 4 times in an hour and I'm shutting down now, probably until some time Monday. It does mention crypt. 0 jan@muizenberg:/var/autofs/misc/home/jan$zgrep crypt python2.6_2.6.6-6ubuntu7.diff.gz +<LI><A HREF="#4.81">4.81. "import crypt" fails</A> +This linker error occurs on Solaris if you attempt to build an extension module which incorporates position-dependent (non-PIC) code. A common source of problems is that a static library (.a file), such as libreadline.a or libcrypto.a is linked with the extension module. The error specifically occurs when using gcc as the compiler, but /usr/ccs/bin/ld as the linker. +1. Rebuild the libraries (libreadline, libcrypto) with -fPIC (-KPIC if using the system compiler). This is recommended; all object files in a shared library should be position-independent. +<H2><A NAME="4.81">4.81. "import crypt" fails</A></H2> +Starting with Python 1.5, the crypt module is disabled by default. +front of the line starting with '#crypt'). Then rebuild. +You may also have to add the string '-lcrypt' to that same line. +typing but use arbitrary or cryptic syntax or keywords, ++#_hashlib _hashopenssl.c -lssl -lcrypto +-# -L$(SSL)/lib -lssl -lcrypto ++#_ssl _ssl.c -lssl -lcrypto + # The crypt module is now disabled by default because it breaks builds + # on many systems (where -lcrypt is needed), e.g. Linux (I believe). ++#_hashlib _hashopenssl.c -lssl -lcrypto Regards, Jan -- .~. /V\ Jan Groenewald /( )\ www.aims.ac.za ^^-^^ -- 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