Bug 2199 - iptables-1.4.11 compile failed with toolchain and sdk-image on 20120328 build
Summary: iptables-1.4.11 compile failed with toolchain and sdk-image on 20120328 build
Status: VERIFIED WONTFIX
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Nitin Kamble
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-03-30 07:28 UTC by Yi Zhao
Modified: 2012-04-05 07:45 UTC (History)
9 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2012-03-30 07:28:10 UTC
Tree/branch: poky/1.2_M4
Commit: 4d9f4d6ac25f39fe6d5491d05c7a26195bab648b
Image location:
http://autobuilder.pokylinux.org/nightly/20120328-1/

When we compile iptables-1.4.11 with toolchain or on sdk-image. We got the following error message:
###################
In file included from libxt_pkttype.c:10:0:
/usr/include/linux/if_packet.h:176:2: error: unknown type name '__aligned_u64'
make[2]: *** [libxt_pkttype.oo] Error 1
make[2]: Leaving directory `/opt/tests/compile_packages/compile_packages/test_iptables/iptables-1.4.11/extensions'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/tests/compile_packages/compile_packages/test_iptables/iptables-1.4.11'
make: *** [all] Error 2
Making install in extensions
make[1]: Entering directory `/opt/tests/compile_packages/compile_packages/test_iptables/iptables-1.4.11/extensions'
  CC       libxt_NFLOG.oo
  CCLD     libxt_NFLOG.so
  CC       libxt_string.oo
  CCLD     libxt_string.so
  CC       libxt_length.oo
  CCLD     libxt_length.so
  CC       libxt_iprange.oo
  CCLD     libxt_iprange.so
  CC       libxt_tcpmss.oo
  CCLD     libxt_tcpmss.so
  CC       libxt_owner.oo
  CCLD     libxt_owner.so
  CC       libxt_pkttype.oo
In file included from libxt_pkttype.c:10:0:
/usr/include/linux/if_packet.h:176:2: error: unknown type name '__aligned_u64'
make[1]: *** [libxt_pkttype.oo] Error 1
make[1]: Leaving directory `/opt/tests/compile_packages/compile_packages/test_iptables/iptables-1.4.11/extensions'
make: *** [install-recursive] Error 1
###################

The iptables-1.4.12 also compile failed with the same error. But the iptables-1.4.13 could compile successfully. You can get the iptables-1.4.13 from http://www.netfilter.org/projects/iptables/downloads.html

I noticed there is a related bug 2053 also report the same error in poky. Maybe we need to update the iptables version in our test case.
Comment 1 Richard Purdie 2012-03-30 10:31:19 UTC
I'd suggest you use a recent version of iptables for this since the bug has been fixed in recent versions...
Comment 2 Bruce Ashfield 2012-03-30 12:57:47 UTC
The fix that I put into master:

  1c19181599c41d8f0bd7f06efc654fe61c3d0bb1

is against iptables_1.4.12.2. So as Richard indicated, bumping to that version
should solve this issue.
Comment 3 Richard Purdie 2012-04-04 01:07:53 UTC
Please use a more recent version of iptables for testing.
Comment 4 Hongna Xu 2012-04-05 07:45:07 UTC
With the latest version of iptables project, the bug is fixed and verified.
And i update the case to use the recent version of iptables.
Tree/branch: poky/1.2_M4
Commit: 4d9f4d6ac25f39fe6d5491d05c7a26195bab648b