RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 994265 - <linux/if_bridge.h> is broken
Summary: <linux/if_bridge.h> is broken
Keywords:
Status: CLOSED DUPLICATE of bug 981325
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Thomas Graf
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On: 895141 1002735
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-06 22:44 UTC by Eric Blake
Modified: 2014-06-18 08:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-07 10:36:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Eric Blake 2013-08-06 22:44:32 UTC
Description of problem:
Attempts to build libvirt 1.1.1 out of the box on RHEL 6.5 nightlies fail, because of a bug in the <linux/if_bridge.h> header.

Version-Release number of selected component (if applicable):
glibc-2.12-1.128.el6.x86_64
kernel-headers-2.6.32-407.el6.x86_64


How reproducible:
100%

Steps to Reproduce:
1. cat foo.c
2. gcc -o foo -Wall foo.c
3. wget ftp://libvirt.org/libvirt/libvirt-1.1.1.tar.gz; tar xvf libvirt-1.1.1.tar.gz; cd libvirt-1.1.1
4. ./configure

Actual results:
1.
#include <netinet/in.h>
#include <linux/if_bridge.h>
int main(void) { return 0; }
2.
In file included from /usr/include/linux/if_bridge.h:17,
                 from foo.c:2:
/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’
3. ...
4. checking for linux/sockios.h... yes
checking for linux/if_bridge.h... no
configure: error: You must install kernel-headers in order to compile libvirt with QEMU or LXC support


Expected results:
The same program compiles just fine on Fedora 19 (glibc-2.17-11.fc19.x86_64, kernel-headers-3.10.4-300.fc19.x86_64).  libvirt 1.1.1 should compile just fine for RHEL 6.5.


Additional info:
Libvirt.git installed a workaround patch, but we shouldn't have to play games to avoid problems with broken kernel headers:
https://www.redhat.com/archives/libvir-list/2013-August/msg00272.html

Comment 1 Eric Blake 2013-08-06 22:47:17 UTC
This issue first started appearing with bug 895141 in rawhide in Jan 2013; obviously the fact that Fedora 19 does not have the problem means that upstream has managed to figure out a way to avoid the conflict, and that fix needs to be backported to either kernel-headers or glibc (or both) for RHEL.

Comment 3 Thomas Graf 2013-08-07 10:36:50 UTC

*** This bug has been marked as a duplicate of bug 981325 ***


Note You need to log in before you can comment on or make changes to this bug.