Johann Rohwer wrote: > After upgrading to the latest Mandriva Linux I can no longer compile > Matplotlib. The following error occurs: > > ================ > In file included from src/backend_agg.cpp:37: > src/swig_runtime.h: In function 'void SWIG_Python_AddErrorMsg(const > char*)': > src/swig_runtime.h:859: error: format not a string literal and no > format arguments > error: command 'gcc' failed with exit status 1 > ================
That file is a fossil, along with agg.cxx. Comment out its inclusion in backend_agg.cpp, and I think everything will build. I will make the changes in svn. Eric > > This happens with all of 0.98.5.2, 0.98.5.3 and svn versions of > matplotlib. > > System Info: > ============================================================================ > BUILDING MATPLOTLIB > matplotlib: 0.98.6svn > python: 2.6.1 (r261:67515, Apr 12 2009, 04:14:16) > [GCC > 4.3.2] > platform: linux2 > > REQUIRED DEPENDENCIES > numpy: 1.3.0 > freetype2: 9.20.3 > > OPTIONAL BACKEND DEPENDENCIES > libpng: 1.2.35 > Tkinter: Tkinter: 67083, Tk: 8.6, Tcl: 8.6 > * Guessing the library and include directories > for > * Tcl and Tk because the tclConfig.sh and > * tkConfig.sh could not be found and/or parsed. > wxPython: 2.8.9.2 > * WxAgg extension not required for wxPython >= > 2.8 > Gtk+: gtk+: 2.16.1, glib: 2.20.1, pygtk: 2.14.1, > pygobject: 2.16.1 > Mac OS X native: no > Qt: no > Qt4: Qt: 4.5.0, PyQt4: 4.4.4 > Cairo: 1.8.2 > > OPTIONAL DATE/TIMEZONE DEPENDENCIES > datetime: present, version unknown > dateutil: 1.4.1 > pytz: 2008i > > OPTIONAL USETEX DEPENDENCIES > dvipng: 1.9 > ghostscript: 8.64 > latex: 3.141592 > pdftops: 0.10.6 > ============================================================================ > > SWIG version is 1.3.38 > > Any ideas? > Johann > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users