[quagga-dev 4935] Re: Compile error with Linux kernel headers 2.6.21

Andrew J. Schorr aschorr at telemetry-investments.com
Fri Jun 22 18:52:00 BST 2007


Hi,

On Fri, Jun 22, 2007 at 07:18:39PM +0200, Christian Hammers wrote:
> make[4]: Entering directory `/tmp/quagga-0.99.7/lib'
> if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/quagga/\" -I. -I. -I.. -I.. -I.. -I../lib     -Os -fno-omit-frame-pointer -g -std=c99 -Wall -Wsign-compare -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wcast-qual -MT network.lo -MD -MP -MF ".deps/network.Tpo" -c -o network.lo network.c; \
>         then mv -f ".deps/network.Tpo" ".deps/network.Plo"; else rm -f ".deps/network.Tpo"; exit 1; fi
> mkdir .libs
>  gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/quagga/\" -I. -I. -I.. -I.. -I.. -I../lib -Os -fno-omit-frame-pointer -g -std=c99 -Wall -Wsign-compare -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wcast-qual -MT network.lo -MD -MP -MF .deps/network.Tpo -c network.c  -fPIC -DPIC -o .libs/network.o
> In file included from /usr/include/linux/rtnetlink.h:5,
>                  from ./zebra.h:165,
>                  from network.c:23:
> /usr/include/linux/if_link.h:43: error: expected specifier-qualifier-list before '__u64'
> In file included from /usr/include/linux/rtnetlink.h:7,
>                  from ./zebra.h:165,
>                  from network.c:23:
> /usr/include/linux/neighbour.h:92: error: expected specifier-qualifier-list before '__u64'
> make[4]: *** [network.lo] Error 1

Just after releasing 0.99.7, we applied the attached patch:

        * configure.ac: Change gcc CFLAGS from '-std=c99' to '-std=gnu99'
          to improve portability.

Can you please try again with the attached patch, or with a newer
0.99.7 CVS snapshot?

Regards,
Andy
-------------- next part --------------
Index: configure.ac
===================================================================
RCS file: /var/cvsroot/quagga/configure.ac,v
retrieving revision 1.128
retrieving revision 1.129
diff -b -u -p -r1.128 -r1.129
--- configure.ac	29 Apr 2007 20:13:35 -0000	1.128
+++ configure.ac	30 Apr 2007 19:14:08 -0000	1.129
@@ -5,7 +5,7 @@
 ##  Copyright (c) 1996, 97, 98, 99, 2000 Kunihiro Ishiguro <kunihiro at zebra.org>
 ##  Portions Copyright (c) 2003 Paul Jakma <paul at dishone.st>
 ##
-## $Id: configure.ac,v 1.128 2007/04/29 20:13:35 paul Exp $
+## $Id: configure.ac,v 1.129 2007/04/30 19:14:08 ajs Exp $
 AC_PREREQ(2.53)
 
 AC_INIT(Quagga, 0.99.7, [http://bugzilla.quagga.net])
@@ -119,7 +119,7 @@ if test "x${cflags_specified}" = "x" ; t
         AC_MSG_RESULT([Intel default])
         ;;
     "GCC")
-  	CFLAGS="-Os -fno-omit-frame-pointer -g -std=c99 -Wall"
+  	CFLAGS="-Os -fno-omit-frame-pointer -g -std=gnu99 -Wall"
   	CFLAGS="${CFLAGS} -Wsign-compare -Wpointer-arith"
   	CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings"
   	CFLAGS="${CFLAGS} -Wmissing-prototypes -Wmissing-declarations"


More information about the Quagga-dev mailing list