Received: from gsna31.denet.abb.de by gsna02.denet.abb.de; (5.65v3.2/1.1.8.2/13Jan97-0340PM)
	id AA11536; Fri, 27 Feb 1998 16:15:50 +0100
Received: from localhost by gsna31.denet.abb.de; (5.65/1.1.8.2/26Mar97-1148AM)
	id AA05312; Fri, 27 Feb 1998 16:15:50 +0100
Sender: mherr@gsna31.denet.abb.de
Message-Id: <34F6D8A5.794B@gsna02.denet.abb.de>
Date: Fri, 27 Feb 1998 16:15:49 +0100
From: Manfred Herr <mherr@gsna02.denet.abb.de>
Organization: ABB Netzleittechnik GmbH
X-Mailer: Mozilla 3.0Gold (X11; I; OSF1 V3.2 alpha)
Mime-Version: 1.0
To: Frank Oskar Frenzel <ffrenzel@gsna02.denet.abb.de>
Subject: GIMP
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

35.0.99.18 won't compile for DEC OSF1 V4 (Digital UNIX) 

    This is one of the few platforms where gcc isn't the right answer.
Acording to Stephen Eglen, 

    During compilation, cc doesn't like the following code found in
    app/layer.c (line 56) and app/channel.c (line 45).

    enum {
      LAST_SIGNAL
    };

    static gint layer_signals[LAST_SIGNAL] = { 0 };

    The compiler comes up with the following error:

    cc: Error: layer.c, line 56: In the declaration of "layer_signals",
    the array bound "LAST_SIGNAL" is not a positive integer. 
    static gint layer_signals[LAST_SIGNAL] = { 0 };

    So I changed the line to:            vv
    static gint layer_signals[LAST_SIGNAL+1] = { 0 };
                                         ^^
    which kept the compiler happy, although maybe now that has broken
    something else.

    I also had to use a private colourmap by adding the following to
gimprc:
    VVVV DAS ISSES VVVV
    (install-colormap)
 
    Without this private colourmap, I still get a sigabrt:
    ** ERROR **: BadMatch (invalid parameter attributes)
    gimp fatal error: sigabrt caught

    [Note also that once I got it working with cc, I didn't recompile it
    under gcc to see if gcc works with private colourmaps.]

