Package: w3mmee
Version: 0.3.p24.20-3
User: [EMAIL PROTECTED]
Usertags: ftbfs-gcc-4.4
Tags: patch

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

GCC 4.4 will introduce better checks in the preprocessor.  Your code
does something like:

 #ifdef A
 #elif B
 #endif

but the #elif is wrong: #elif requires a condition whereas you're
trying to test whether B is defined.  You therefore have to use:
 #elif defined(B)

You can reproduce this problem with gcc-snapshot from unstable.

> Automatic build of w3mmee_0.3.p24.20-3 on em64t by sbuild/amd64 0.53
...
> rm -f entity_tab.h
> sh do_mk_btri.sh entity_tab.mk_btri.h > entity_tab.h-new && mv 
> entity_tab.h-new entity_tab.h
> gcc -O2 -DDEBIAN -I/usr/include/gc  -I/usr/include/openssl -I/usr/include  
> -DHAVE_MOE -I/usr/include/moe  -I.     -c -o indep.o indep.c
> indep.c:17:18: error: #elif with no expression
> make[2]: *** [indep.o] Error 1
> make[2]: Leaving directory 
> `/build/tbm/w3mmee-0.3.p24.20/build-tree/w3mmee-p24-20'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory 
> `/build/tbm/w3mmee-0.3.p24.20/build-tree/w3mmee-p24-20'
> make: *** [build-stamp] Error 2

--- w3mmee-p24-20/indep.c~      2008-11-07 15:01:51.000000000 +0000
+++ w3mmee-p24-20/indep.c       2008-11-07 15:02:15.000000000 +0000
@@ -14,7 +14,7 @@
 {
 #ifdef HAVE_STRTOLL
     return strtoll(s, NULL, base);
-#elif HAVE_STRTOQ
+#elif defined(HAVE_STRTOQ)
     return strtoq(s, NULL, base);
 #else
     int minus, digit;

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