[quagga-dev 4934] Compile error with Linux kernel headers 2.6.21

Christian Hammers ch at debian.org
Fri Jun 22 18:18:39 BST 2007


Hello

[Please keep above Cc to our bug tracking system]

Trying to build Quagga on the most recent Debian linux, it fails:

I use the most recent Debian Linux "sid" with the new linux-libc-dev_2.6.21
package that will superceed the old linux-kernel-headers_2.6.18 and gcc-4.1.3
on an amd64 host inside an i386 chroot.
It does work with the old 2.6.18 headers.

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


The if_link.h has the following structure around line 43:

  /* The struct should be in sync with struct ifmap */
  struct rtnl_link_ifmap
  {
        __u64   mem_start;
        __u64   mem_end;
        __u64   base_addr;
        __u16   irq;
        __u8    dma;
        __u8    port;
  };

Any ideas?

bye,

-christian-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.quagga.net/pipermail/quagga-dev/attachments/20070622/2aa4f0db/attachment.sig>


More information about the Quagga-dev mailing list