Package: swig1.3
Version: 1.3.31-1
Usertags: ftbfs-gcc-4.3
Tags: patch

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.

You can reproduce this problem with gcc-snapshot (20070422-1 or higher)
from unstable. (Currently not available for i386, but for amd64, powerpc
and ia64.  I hope to have i386 binaries in the archive in the near
future.)

> Automatic build of swig1.3_1.3.31-1 on em64t by sbuild/amd64 0.53
...
> depbase=`echo Modules/modula3.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \
>       if g++ -DHAVE_CONFIG_H     -I../Source/Include -I../Source/CParse 
> -I../Source/Include -I../Source/DOH -I../Source/CParse 
> -I../Source/Preprocessor -I../Source/Swig -I../Source/Modules  -g -O2 -Wall 
> -W -ansi -pedantic -MT Modules/modula3.o -MD -MP -MF "$depbase.Tpo" -c -o 
> Modules/modula3.o Modules/modula3.cxx; \
>       then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; 
> exit 1; fi
> Modules/modula3.cxx:144: error: extra ';'
> Modules/modula3.cxx:148: error: extra ';'
> Modules/modula3.cxx:167: error: extra ';'
> Modules/modula3.cxx:654: error: extra ';'
> make[3]: *** [Modules/modula3.o] Error 1
> make[3]: Leaving directory `/build/tbm/swig1.3-1.3.31/Source'


--- Source/Modules/modula3.cxx~ 2007-05-03 12:55:24.000000000 +0000
+++ Source/Modules/modula3.cxx  2007-05-03 12:56:06.000000000 +0000
@@ -141,11 +141,11 @@
     /* VC++ 6 doesn't allow the access to 'no_block'
        if it is a private member of MODULA3 class */
      M3File():f(NewString("")), import(NewHash()), bt(no_block) {
-    };
+    }
     ~M3File() {
       Delete(f);
       Delete(import);
-    };
+    }
 
     /* 
-----------------------------------------------------------------------------
      * enterBlock()
@@ -164,7 +164,7 @@
        Append(f, ident[newbt]);
        bt = newbt;
       };
-    };
+    }
 
   };
 
@@ -651,7 +651,7 @@
     String *mode, *name, *type, *value;
     bool hold;
      writeArgState():mode(NIL), name(NIL), type(NIL), value(NIL), hold(false) {
-    };
+    }
   };
 
   void writeArg(File *f, writeArgState & state, String *mode, String *name, 
String *type, String *value) {
--- Source/Modules/r.cxx~       2007-05-03 13:02:56.000000000 +0000
+++ Source/Modules/r.cxx        2007-05-03 13:03:03.000000000 +0000
@@ -331,7 +331,7 @@
     
     class_name = NULL;
     return status;
-  };
+  }
 
   // Not used:
   String *runtimeCode();
@@ -388,7 +388,7 @@
           "contains = 'CRoutinePointer')\n\n##\n", NIL);
     
     return SWIG_OK;
-  };
+  }
   
 
   void addSMethodInfo(String *name, 

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to