Bug 233934 - The patch "xen: Add PACKET_AUXDATA cmsg" cause /usr/include/linux/if_packet.h broken
The patch "xen: Add PACKET_AUXDATA cmsg" cause /usr/include/linux/if_packet.h...
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Neil Horman
Martin Jenner
: 236913 236914 241496 (view as bug list)
Depends On:
Blocks: 238749 239547
  Show dependency treegraph
Reported: 2007-03-25 22:13 EDT by Fang Wenqi
Modified: 2007-11-30 17:07 EST (History)
3 users (show)

See Also:
Fixed In Version: RHBA-2007-0959
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-07 14:45:12 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Include linux/types.h for __u32. (335 bytes, patch)
2007-03-26 06:17 EDT, Herbert Xu
no flags Details | Diff

  None (edit)
Description Fang Wenqi 2007-03-25 22:13:19 EDT
Description of problem:
   After RHEL5 kernel-headers-2.6.18-8.1.1.el5 installed, I fail to
build tcpdump-3.9.4-8.1, it reports:
 /usr/include/linux/if_packet.h:52: error: expected specifier-qualifier-list
before '__u32

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
  1. Install kernel-headers-2.6.18-8.1.1.el5
  2. rpmbuild --rebuild tcpdump-3.9.4-8.1.src.rpm
Actual results:
gcc -O2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=
generic -fasynchronous-unwind-tables -I.  -g -D_U_="" -fPIC -DHAVE_CONFIG_H
c ./pcap-linux.c
gcc -O2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=
generic -fasynchronous-unwind-tables -I.  -g -D_U_="" -fPIC -DHAVE_CONFIG_H
c ./fad-getad.c
In file included from ./fad-getad.c:64:
/usr/include/linux/if_packet.h:52: error: expected specifier-qualifier-list
before '__u32'
make: *** [fad-getad.o] Error 1

Expected results:
  rpmbuild finished successfully.

Additional info:

checked /usr/include/linux/if_packet.h:52: 
 50 struct tpacket_auxdata
 51 {   
 52         __u32           tp_status;
 53         __u32           tp_len;
 54         __u32           tp_snaplen;
 55         __u16           tp_mac;
 56         __u16           tp_net;
 57 };

The code segment is introduced by kernel patch
Maybe we have to define __u32 & __u16 for PACKET_AUXDATA in linux/types.h, and 
include it in linux/if_packet.h.
Comment 1 Herbert Xu 2007-03-26 06:17:53 EDT
Created attachment 150888 [details]
Include linux/types.h for __u32.

Thanks for the report.	This patch should fix the build problem.
Comment 2 Fang Wenqi 2007-03-26 21:40:18 EDT
succeed in rebuilding the package with above patch.

Fang Wenqi
Comment 3 Miroslav Lichvar 2007-04-18 10:00:37 EDT
*** Bug 236914 has been marked as a duplicate of this bug. ***
Comment 4 RHEL Product and Program Management 2007-04-24 16:45:35 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
Comment 5 RHEL Product and Program Management 2007-04-26 15:22:06 EDT
This request was evaluated by Red Hat Kernel Team for inclusion in a Red
Hat Enterprise Linux maintenance release, and has moved to bugzilla 
status POST.
Comment 6 Don Zickus 2007-05-01 14:10:41 EDT
in 2.6.18-17.el5
Comment 7 Marcela Mašláňová 2007-05-02 09:05:29 EDT
*** Bug 236913 has been marked as a duplicate of this bug. ***
Comment 12 Miroslav Lichvar 2007-05-28 04:20:36 EDT
*** Bug 241496 has been marked as a duplicate of this bug. ***
Comment 15 errata-xmlrpc 2007-11-07 14:45:12 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


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