#9221: update matplotlib to 1.0.0 and clean out the patches
---------------------------+------------------------------------------------
   Reporter:  jason        |       Owner:  jason, was                           
         
       Type:  enhancement  |      Status:  needs_work                           
         
   Priority:  major        |   Milestone:  sage-4.6                             
         
  Component:  graphics     |    Keywords:                                       
         
     Author:  Jason Grout  |    Upstream:  Reported upstream. Developers 
acknowledge bug.
   Reviewer:               |      Merged:                                       
         
Work_issues:               |  
---------------------------+------------------------------------------------

Comment(by jason):

 I'm trying it out on t2 right now.  I logged into t2, extracted
 {{{/usr/local/sage-4.5.1-Solaris_10_SPARC-sun4u-SunOS.tar.gz}} to
 /scratch/grout, and then tried (as a control) to install the current
 matplotlib spkg:

 {{{
 ./sage -f spkg/standard/matplotlib-0.99.3.spkg
 }}}

 gave errors like these:

 {{{

 building 'matplotlib.ft2font' extension
 creating build/temp.solaris-2.10-sun4v-2.6
 creating build/temp.solaris-2.10-sun4v-2.6/src
 creating build/temp.solaris-2.10-sun4v-2.6/CXX
 gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
 prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
 -I/scratch/grout/sage-4.5.1-Solaris_10_SPARC-sun4u-
 SunOS/local/lib/python2.6/site-packages/numpy/core/include
 -I/export/home/drkirkby/sage-4.5.1/local/include/freetype2
 -I/export/home/drkirkby/sage-4.5.1/local/include
 -I/scratch/grout/sage-4.5.1-Solaris_10_SPARC-sun4u-SunOS/local/include/
 -I/usr/local/include -I. -I/scratch/grout/sage-4.5.1-Solaris_10_SPARC-
 sun4u-SunOS/local/include/python2.6 -c src/ft2font.cpp -o
 build/temp.solaris-2.10-sun4v-2.6/src/ft2font.o
 cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
 Ada/C/ObjC but not for C++
 In file included from /usr/local/gcc-4.4.1-sun-linker/bin/../lib/gcc
 /sparc-sun-
 solaris2.10/4.4.1/../../../../include/c++/4.4.1/ext/hash_map:59,
                  from ./CXX/Extensions.hxx:68,
                  from src/ft2font.h:4,
                  from src/ft2font.cpp:1:
 /usr/local/gcc-4.4.1-sun-linker/bin/../lib/gcc/sparc-sun-
 
solaris2.10/4.4.1/../../../../include/c++/4.4.1/backward/backward_warning.h:28:2:
 warning: #warning This file includes at least one deprecated or antiquated
 header which may be removed without further notice at a future date.
 Please use a non-deprecated interface with equivalent functionality
 instead. For a listing of replacement headers and interfaces, consult the
 file backward_warning.h. To disable this warning use -Wno-deprecated.
 In file included from src/ft2font.h:13,
                  from src/ft2font.cpp:1:
 /scratch/grout/sage-4.5.1-Solaris_10_SPARC-sun4u-
 SunOS/local/include/ft2build.h:56:38: error: freetype/config/ftheader.h:
 No such file or directory
 In file included from src/ft2font.cpp:1:
 src/ft2font.h:14:10: error: #include expects "FILENAME" or <FILENAME>
 src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME>
 src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME>
 src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME>
 src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME>
 In file included from src/ft2font.cpp:1:
 src/ft2font.h:31: error: ‘FT_Bitmap’ has not been declared
 src/ft2font.h:31: error: ‘FT_Int’ has not been declared
 src/ft2font.h:31: error: ‘FT_Int’ has not been declared
 src/ft2font.h:77: error: ISO C++ forbids declaration of ‘FT_Face’ with no
 type
 src/ft2font.h:77: error: expected ‘,’ or ‘...’ before ‘&’ token
 src/ft2font.h:83: error: ISO C++ forbids declaration of ‘FT_Face’ with no
 type
 src/ft2font.h:83: error: expected ‘,’ or ‘...’ before ‘&’ token
 src/ft2font.h:122: error: ‘FT_Face’ does not name a type
 src/ft2font.h:123: error: ‘FT_Matrix’ does not name a type
 src/ft2font.h:124: error: ‘FT_Vector’ does not name a type
 src/ft2font.h:125: error: ‘FT_Error’ does not name a type
 src/ft2font.h:126: error: ‘FT_Glyph’ was not declared in this scope
 src/ft2font.h:126: error: template argument 1 is invalid
 src/ft2font.h:126: error: template argument 2 is invalid
 src/ft2font.h:127: error: ‘FT_Vector’ was not declared in this scope
 src/ft2font.h:127: error: template argument 1 is invalid
 src/ft2font.h:127: error: template argument 2 is invalid
 src/ft2font.h:133: error: ‘FT_BBox’ does not name a type
 src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type
 src/ft2font.cpp:96: error: variable or field ‘draw_bitmap’ declared void
 src/ft2font.cpp:96: error: ‘FT_Bitmap’ was not declared in this scope
 src/ft2font.cpp:96: error: ‘bitmap’ was not declared in this scope
 src/ft2font.cpp:97: error: ‘FT_Int’ was not declared in this scope
 src/ft2font.cpp:98: error: ‘FT_Int’ was not declared in this scope
 /scratch/grout/sage-4.5.1-Solaris_10_SPARC-sun4u-SunOS/local/lib/python2.6
 /site-packages/numpy/core/include/numpy/__multiarray_api.h:968: warning:
 ‘int _import_array()’ defined but not used
 error: command 'gcc' failed with exit status 1
 Error building matplotlib package.

 }}}

 Do you know how I can get up to at least installing the current matplotlib
 spkg on t2?  When I tried my updated 1.0 spkg, I also got these errors.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9221#comment:24>
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