]> xenbits.xensource.com Git - libvirt.git/commit
build: fix configure detection of if_bridge.h on RHEL 6
authorEric Blake <eblake@redhat.com>
Tue, 6 Aug 2013 20:15:23 +0000 (14:15 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 6 Aug 2013 20:42:34 +0000 (14:42 -0600)
commit2df8d99138dc8396c7d46c3cceca8ce2e93b605a
treecd3aeab16871988652dad07cdfa215f29eb9e98d
parentd7a45bf22368161869963b92a0a1d5599590fdf5
build: fix configure detection of if_bridge.h on RHEL 6

A fresh checkout on a RHEL 6 machine with these packages:
kernel-headers-2.6.32-405.el6.x86_64
glibc-2.12-1.128.el6.x86_64
failed to configure with this message:
checking for linux/if_bridge.h... no
configure: error: You must install kernel-headers in order to compile libvirt with QEMU or LXC support

Digging in config.log, we see that the problem is identical to
what we fixed earlier in commit d12c2811:

configure:98831: checking for linux/if_bridge.h
configure:98853: gcc -std=gnu99 -c -g -O2  conftest.c >&5
In file included from /usr/include/linux/if_bridge.h:17,
                 from conftest.c:559:
/usr/include/linux/in6.h:31: error: redefinition of 'struct in6_addr'
/usr/include/linux/in6.h:48: error: redefinition of 'struct sockaddr_in6'
/usr/include/linux/in6.h:56: error: redefinition of 'struct ipv6_mreq'
configure:98860: $? = 1

I had not hit it earlier because I was using incremental builds,
where config.cache had shielded me from the kernel-headers breakage.

* configure.ac (if_bridge.h): Avoid conflicting type definitions.

Signed-off-by: Eric Blake <eblake@redhat.com>
configure.ac