Trouble building matplotlib on Solaris 8

file included from src/_gtkagg.cpp:10:

    > /opt/app/gnome-2.4/include/pygtk-2.0/pygobject.h:140: error:
    > parse error before `typename'
    > /opt/app/gnome-2.4/include/pygtk-2.0/pygobject.h:147: error:
    > parse error before `typename' error: command 'gcc' failed
    > with exit status 1

    ....

    > Has anyone else encountered this problem? If so, do you
    > have a workaround?

Hey Skip, this looks like a known pygtk bug -- fortunately there's a
simple fix

  http://matplotlib.sourceforge.net/faq.html#PYGTK24

If you encounter any solaris specific compile issues that require
workarounds, it might be a good idea to make a few notes
and post them here or on the wiki because a number of people have
reported problems in the past, though I also know a number have
succeeded.

Good luck,
JDH

parse error before `typename' error: command 'gcc' failed

    > with exit status 1

    > Hey Skip, this looks like a known pygtk bug -- fortunately there's
    > a simple fix

    > http://matplotlib.sourceforge.net/faq.html#PYGTK24

Thanks John. The fact that it was a PyGTK bug pointed me in the direction
of switching from gtk 2.4 to gtk 2.6. Problem solved.

On to my next problem ... :slight_smile:

After only a small further amount of wailing and gnashing of teeth I got
matplotlib to build and install (just some -I, -L & -R flags for the
build_ext command). Then I decided to tackle the tutorial. Example 1:

    % python
    Python 2.3.4 (#12, Jul 2 2004, 09:48:10)
    [GCC 3.3.2] on sunos5
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import pygtk
    >>> pygtk.require('2.6')
    >>> from pylab import *
    >>> plot([1,2,3,4])
    [<matplotlib.lines.Line2D instance at 0x8790d6c>]
    >>> show()

    (process:3261): GLib-GObject-CRITICAL **: gtype.c:2253: initialization assertion failed, use g_type_init() prior to this function
    Segmentation Fault (core dumped)

Unfortunately, I'm not sure what further information to give you to help
tracking down the location. I have to run for the train, but will at least
try running under gdb mañana. In the meantime, any suggestions about
potential causes would be gracefully appreciated.

Skip