Package: uisp
Version: 20050207-3
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.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  Some background of this can be found at
http://gcc.gnu.org/PR28080

You can reproduce this problem with gcc-snapshot (20070326-1 or higher)
from unstable.

> Automatic build of uisp_20050207-3 on coconut0 by sbuild/ia64 0.49
...
> if ia64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -Wall 
> -O2 -MT Stk500.o -MD -MP -MF ".deps/Stk500.Tpo" \
>         -c -o Stk500.o `test -f 'Stk500.C' || echo './'`Stk500.C; \
>       then mv -f ".deps/Stk500.Tpo" ".deps/Stk500.Po"; \
>       else rm -f ".deps/Stk500.Tpo"; exit 1; \
>       fi
> cc1plus: warnings being treated as errors
> Stk500.C: In member function 'virtual void TStk500::FlushWriteBuffer()':
> Stk500.C:422: error: suggest parentheses around + or - inside shift
> make[3]: *** [Stk500.o] Error 1

(Please make sure I put the parentheses at the right spot!)

--- src/Stk500.C~       2007-04-04 08:50:42.000000000 +0000
+++ src/Stk500.C        2007-04-04 08:56:12.000000000 +0000
@@ -419,7 +419,7 @@
   }
 
   pgsz = prg_part[desired_part].params.pagesize;
-  pagesize = (pgsz[0]) << 8 + pgsz[1];
+  pagesize = pgsz[0] << (8 + pgsz[1]);
 
   if (pagesize == 0) {
     pagesize = 128;

-- 
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