Package: libnids
Version: 1.23-1
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 libnids_1.23-1 on em64t by sbuild/amd64 0.53
...
> ip_options.c:293: warning: dereferencing type-punned pointer will break 
> strict-aliasing rules
> x86_64-linux-gnu-gcc -fPIC -Wall -g -O2 -D_BSD_SOURCE -W -Wall -DLIBNET_VER=1 
> -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include 
> -I/usr/include -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD 
> -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   
> -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -c killtcp.c 
> -o killtcp_pic.o
> killtcp.c:121:6: error: #elif with no expression
> make[2]: *** [killtcp_pic.o] Error 1
> make[2]: Leaving directory `/build/tbm/libnids-1.23/src'
> make[1]: *** [shared] Error 2
> make[1]: Leaving directory `/build/tbm/libnids-1.23'

--- src/killtcp.c~      2008-11-07 15:08:30.000000000 +0000
+++ src/killtcp.c       2008-11-07 15:08:35.000000000 +0000
@@ -118,6 +118,6 @@
     if (initialized)
        abort();
 }
-#elif
+#else
 #error Something wrong with LIBNET_VER
 #endif

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