#9041: python fails to build _socket on OpenSolaris x64, so pygments fails to
build.
------------------------+---------------------------------------------------
   Reporter:  drkirkby  |       Owner:  drkirkby
       Type:  defect    |      Status:  new     
   Priority:  major     |   Milestone:          
  Component:  solaris   |    Keywords:          
     Author:            |    Upstream:  N/A     
   Reviewer:            |      Merged:          
Work_issues:            |  
------------------------+---------------------------------------------------
 == Build environment ==
  * Sun Ultra 27 3.33 GHz Intel W3580 Xeon. Quad core. 8 threads. 12 GB RAM
  * !OpenSolaris 2009.06 snv_111b X86
  * Sage 4.4.2
  * gcc 4.4.4

 == How gcc 4.4.4 was configured ==
 Since the configuration of gcc is fairly critical on !OpenSolaris, here's
 how it was built.

 {{{
 drkir...@hawk:~/sage-4.4.2$ gcc -v
 Using built-in specs.
 Target: i386-pc-solaris2.11
 Configured with: ../gcc-4.4.4/configure --prefix=/usr/local/gcc-4.4.4
 --with-as=/usr/local/binutils-2.20/bin/as --with-ld=/usr/ccs/bin/ld
 --with-gmp=/usr/local --with-mpfr=/usr/local
 Thread model: posix
 gcc version 4.4.4 (GCC)
 }}}

 gcc 4.3.4 was failing to build iconv.

 == How the Sage build was attempted ==
  * 64-bit build. SAGE64 was set to "yes"
  * #9008 update zlib to latest upstream release to allow a 64-bit library
 to be built.
  * #9009 update mercurial spkg to build 64-bit.
  * #7982 update sage_fortran so it can build 64-bit binaries.
  * Run 'make -k' to skip over errors, to allow one to find the errors
 quickly.


 == The problem ==
 This a problem with python rather than pygments and is '''very''' similar
 to #9022. Since python is not building _socket, so some other parts of
 Sage fail to build if they need _socket.

 {{{
 ygments-0.11.1.p0/.hg/undo.branch
 pygments-0.11.1.p0/.hg/00changelog.i
 Finished extraction
 ****************************************************
 Host system
 uname -a:
 SunOS hawk 5.11 snv_134 i86pc i386 i86pc
 ****************************************************
 ****************************************************
 CC Version
 gcc -v
 Using built-in specs.
 Target: i386-pc-solaris2.11
 Configured with: ../gcc-4.4.4/configure --prefix=/usr/local/gcc-4.4.4
 --with-as=/usr/local/binutils-2.20/bin/as --with-ld=/usr/ccs/bin/ld
 --with-gmp=/usr/local --with-mpfr=/usr/local
 Thread model: posix
 gcc version 4.4.4 (GCC)
 ****************************************************
 Traceback (most recent call last):
   File "setup.py", line 4, in <module>
     ez_setup.use_setuptools()
   File
 
"/export/home/drkirkby/sage-4.4.2/spkg/build/pygments-0.11.1.p0/src/ez_setup.py",
 line 78, in use_setuptools
     egg = download_setuptools(version, download_base, to_dir,
 download_delay)
   File
 
"/export/home/drkirkby/sage-4.4.2/spkg/build/pygments-0.11.1.p0/src/ez_setup.py",
 line 105, in download_setuptools
     import urllib2, shutil
   File "/export/home/drkirkby/sage-4.4.2/local/lib/python/urllib2.py",
 line 92, in <module>
     import httplib
   File "/export/home/drkirkby/sage-4.4.2/local/lib/python/httplib.py",
 line 70, in <module>
     import socket
   File "/export/home/drkirkby/sage-4.4.2/local/lib/python/socket.py", line
 46, in <module>
     import _socket
 ImportError: No module named _socket
 Error installing Pygments.

 real    0m0.028s
 user    0m0.013s
 sys     0m0.014s
 sage: An error occurred while installing pygments-0.11.1.p0
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9041>
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