Abiword-0.9.2 fails to compile with gcc-3.0 on a Slackware 7.0 Linux 
machine, due to one failed cast and one inconsistent multiple definition.

The following patch (also attached) fixes both problems and yields a 
working 0.9 2 binary.  And, kudos, guys -- it's *fast*.  :)



--- abi/src/af/util/xp/ut_iconv.cpp.orig        Thu Aug 16 01:10:46 2001
+++ abi/src/af/util/xp/ut_iconv.cpp     Thu Aug 16 01:10:42 2001
@@ -137,7 +137,8 @@
 size_t  UT_iconv( UT_iconv_t cd, const char **inbuf, 
                  size_t *inbytesleft, char **outbuf, size_t *outbytesleft )
 {
-    return iconv( cd, const_cast<ICONV_CONST char **>(inbuf),
+    const char **mybuf = inbuf;
+    return iconv( cd, mybuf, 
                  inbytesleft, outbuf, outbytesleft );
 }
 
--- wv/wv.h.orig        Thu Aug 16 01:34:12 2001
+++ wv/wv.h     Thu Aug 16 01:35:56 2001
@@ -11,7 +11,9 @@
 #if !defined(__GLIBC__) || (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 2)
 
     /* #include "getopt.h" */
+#if !defined(_STRING_H)
     int strcasecmp (const char *s1, const char *s2);
+#endif
 #endif
 #endif
 


-- 
 Linux Now!   ..........Because friends don't let friends use Microsoft.
 phil stracchino   --   the renaissance man   --   mystic zen biker geek
        [EMAIL PROTECTED]                [EMAIL PROTECTED]
   2000 CBR929RR, 1991 VFR750F3 (foully murdered), 1986 VF500F (sold)

linux-gcc3-patch.gz

Reply via email to