matplotlib-0.87.7 Build Failure

   Is matplotlib-0.87.7 dependent on specific versions of

    > gcc or glibc?

Not that I know of... I'm pasting in our "SEGFAULTS" instructions
below, which are located in the svn repository

# How to diagnose where a segfault is occurring

First thing to try is simply rm -rf the site-packages/matplotlib and
build subdirs and get a clean install. Installing a new version over
a pretty old version has been known to cause trouble, segfault, etc.

Try importing these packages individually

  import matplotlib._image
  import matplotlib._transforms

  #one of these three depending on which numerix package you are using
  import matplotlib.backends._na_backend_agg # for numarray
  import matplotlib.backends._nc_backend_agg # for Numeric
  import matplotlib.backends._ns_backend_agg # for numpy

  import matplotlib.backends._tkagg
  import matplotlib._agg

If the last two work and the others don't, it is likely you need to
upgrade your gcc, because on some platforms (OS X for sure) old
versions of gcc cannot compile new versions of pycxx, which matplotlib
uses for building some but not all of it's extensions. Report back
which if any work or segfault or raise tracebacks,

If that shed additional light, again flush the build and install dirs,
and try setting VERBOSE=True in setup.py before doing a clean install.
The VERBOSE setting will generate lots of extra output and may help
indicate where the segfault is occurring

# How to diagnose where a segfault is occurring

Try importing these packages individually

[rshepard@...696... ~]$ ipython

In [1]: import matplotlib._image
In [2]: import matplotlib._transforms
In [3]: import matplotlib.backends._ns_backend_agg
In [4]: import matplotlib.backends._tkagg
In [5]: import matplotlib._agg

   So far, so good.

If that shed additional light, again flush the build and install dirs, and
try setting VERBOSE=True in setup.py before doing a clean install. The
VERBOSE setting will generate lots of extra output and may help indicate
where the segfault is occurring

   Will do.

Rich

···

On Thu, 11 Jan 2007, John Hunter wrote:

--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863

Nothing different. No errors, but the same warnings that _POSIX_C_SOURCE
is redefined, for example:

gcc: src/_ns_image.cpp
In file included from /usr/include/python2.4/Python.h:8,
                  from src/_ns_image.cpp:8:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from
/usr/include/c++/3.3.6/i486-slackware-linux/bits/os_defines.h:39,
                  from
/usr/include/c++/3.3.6/i486-slackware-linux/bits/c++config.h:35,
                  from /usr/include/c++/3.3.6/iostream:44,
                  from src/_ns_image.cpp:2:
/usr/include/features.h:150:1: warning: this is the location of the previous
definition

Rich

···

On Thu, 11 Jan 2007, John Hunter wrote:

If that shed additional light, again flush the build and install dirs, and
try setting VERBOSE=True in setup.py before doing a clean install. The
VERBOSE setting will generate lots of extra output and may help indicate
where the segfault is occurring

--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863

# How to diagnose where a segfault is occurring

Try importing these packages individually

import matplotlib._image
import matplotlib._transforms
import matplotlib.backends._ns_backend_agg # for numpy
import matplotlib.backends._tkagg
import matplotlib._agg

   All import without complaint.

If that shed additional light, again flush the build and install dirs, and
try setting VERBOSE=True in setup.py before doing a clean install. The
VERBOSE setting will generate lots of extra output and may help indicate
where the segfault is occurring

   No extra messages indicating any problems.

   I did discover that there were two pkgconfig/ directories. I moved the few
newer *.pc files from /usr/local/lib/pkgconfig/ to /usr/lib/pkgconfig/,
removed the now empty directory, and rebuilt/installed from the source
tarball.

   No joy. It still segfaults when I try to 'show()' the plot.

Rich

···

On Thu, 11 Jan 2007, John Hunter wrote:

--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863