[Gtk-sharp-list] 0.15 compile error under RH7.3/gcc 2.96

John D. Hardin jhardin@impsec.org
Sat, 17 Jan 2004 14:59:03 -0800 (PST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--17484032-1488434214-1074380290=:13473
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.4.10.10401171458261.13473@gypsy.impsec.org>

G'day.

There aren't binary RPMs for RH7.3 available for download so I'm
compiling from source, and I ran across a problem in glue/type.c where
variable declarations are being made after code statements rather than
before. gcc 2.96 does not like this.

See attached patch.

--
 John Hardin KA7OHZ    ICQ#15735746    http://www.impsec.org/~jhardin/
 jhardin@impsec.org                        pgpk -a jhardin@impsec.org
 key: 0xB8732E79 - 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  The fetters imposed on liberty at home have ever been forged out
  of the weapons provided for defense against real, pretended, or
  imaginary dangers from abroad.
                                            -- James Madison, 1799
-----------------------------------------------------------------------
   290 days until the Presidential Election

--17484032-1488434214-1074380290=:13473
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="gtksharp-glue-declarations.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.10.10401171458100.13473@gypsy.impsec.org>
Content-Description: 
Content-Disposition: ATTACHMENT; FILENAME="gtksharp-glue-declarations.patch"

KioqIGdsdWUvdHlwZS5jCTIwMDQvMDEvMTcgMjI6NDM6MzQJMS4xDQotLS0g
Z2x1ZS90eXBlLmMJMjAwNC8wMS8xNyAyMjo0NDoyMw0KKioqKioqKioqKioq
KioqDQoqKiogNzEsNzkgKioqKg0KICB2b2lkDQogIGd0a3NoYXJwX292ZXJy
aWRlX3ZpcnR1YWxfbWV0aG9kIChHVHlwZSBnX3R5cGUsIGNvbnN0IGdjaGFy
ICpuYW1lLCBHQ2FsbGJhY2sgY2FsbGJhY2spDQogIHsNCi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