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: Always. 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: + DEFS='-g -D_U_="" -fPIC -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE' + make 'DEFS=-g -D_U_="" -fPIC -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE' LIBMAJOR=0 LIBMINOR=9 LIBSUBMINOR=4 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 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -DPIC - 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 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -DPIC - 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 linux-2.6-xen-add-packet_auxdata-cmsg.patch. Maybe we have to define __u32 & __u16 for PACKET_AUXDATA in linux/types.h, and include it in linux/if_packet.h.
Created attachment 150888 [details] Include linux/types.h for __u32. Thanks for the report. This patch should fix the build problem.
succeed in rebuilding the package with above patch. Thanks, Fang Wenqi
*** Bug 236914 has been marked as a duplicate of this bug. ***
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 release.
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.
in 2.6.18-17.el5
*** Bug 236913 has been marked as a duplicate of this bug. ***
*** Bug 241496 has been marked as a duplicate of this bug. ***
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. http://rhn.redhat.com/errata/RHBA-2007-0959.html