Package: pcp
Version: 2.7.4-20080507
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.  The problem
is pretty obvious: you're using a #elif without any condition when
you really want a #else.

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

> Automatic build of pcp_2.7.4-20080507 on em64t by sbuild/amd64 0.53
...
> pdubuf.c:22:2: warning: #ident is a deprecated GCC extension
> gcc -g -O2 -fpic -fno-strict-aliasing  -Wall -g -DPCP_DEBUG 
> -DPCP_VERSION=\"2.7.4\" -D_GNU_SOURCE -I./src/include  -fpic 
> -fno-strict-aliasing  -Wall -g -DPCP_DEBUG -DPCP_VERSION=\"2.7.4\" 
> -D_GNU_SOURCE -I../src/include  -fpic -fno-strict-aliasing  -Wall -g 
> -DPCP_DEBUG -DPCP_VERSION=\"2.7.4\" -D_GNU_SOURCE -I../../src/include  -fpic 
> -fno-strict-aliasing '-DCPP_SIMPLE="/lib/cpp"' 
> '-DCPP_SIMPLE_ARGS="-traditional -undef"' -Wall -g -DPCP_DEBUG 
> -DPCP_VERSION=\"2.7.4\" -D_GNU_SOURCE -I../../../src/include    -c -o pmns.o 
> pmns.c
> pmns.c:22:2: warning: #ident is a deprecated GCC extension
> pmns.c:2747:6: error: #elif with no expression
> make[4]: *** [pmns.o] Error 1
> make[3]: *** [default] Error 2
> make[2]: *** [default_pcp] Error 2
> make[2]: Leaving directory `/build/tbm/pcp-2.7.4/src'

--- src/libpcp/src/pmns.c~      2008-11-07 15:46:09.000000000 +0000
+++ src/libpcp/src/pmns.c       2008-11-07 15:46:30.000000000 +0000
@@ -2744,7 +2744,7 @@
                     free(l_name);
                 }
            }
-#elif
+#else
            else {
                sts = PM_ERR_NAME;
                pmidlist[i] = PM_ID_NULL;

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