Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407875 - net-firewall/iptables-1.4.12.1 with sys-kernel/linux-headers-3.2-r1 - In file included from libxt_pkttype.c:10: /usr/include/linux/if_packet.h:176: error: expected specifier-qualifier-list before ‘__aligned_u64’
Summary: net-firewall/iptables-1.4.12.1 with sys-kernel/linux-headers-3.2-r1 - In file...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-12 05:51 UTC by Mike Thompson
Modified: 2012-05-02 04:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Thompson 2012-03-12 05:51:01 UTC
Hmm--the package was keyworded for a reason!
Compilation of net-firewall/iptables-1.4.12.1 failed when build attempted across 3.2 Linux headers.
Error message:
  /usr/include/linux/if_packet.h:176: error: expected specifier-qualifier-list before ‘__aligned_u64’

Reproducible: Always

Steps to Reproduce:
1. emerge net-firewall/iptables-1.4.12.1

Actual Results:  
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-dependency-tracking --sbindir=/sbin --libexecdir=/lib64 --enable-devel --enable-libipq --enable-shared --enable-static --enable-ipv6 configure: loading site script /usr/share/config.site
configure: loading site script /usr/share/crossdev/include/site/linux configure: loading site script /usr/share/crossdev/include/site/x86_64-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking whether x86_64-pc-linux-gnu-gcc and cc understand -c and -o together... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for x86_64-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking command to parse /usr/bin/nm -B output from x86_64-pc-linux-gnu-gcc object... ok
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether the linker accepts -Wl,--no-as-needed... yes
checking linux/dccp.h usability... yes
checking linux/dccp.h presence... yes
checking for linux/dccp.h... yes
checking linux/ip_vs.h usability... yes
checking linux/ip_vs.h presence... yes
checking for linux/ip_vs.h... yes
checking linux/magic.h usability... yes
checking linux/magic.h presence... yes
checking for linux/magic.h... yes
checking linux/proc_fs.h usability... no
checking linux/proc_fs.h presence... no
checking for linux/proc_fs.h... no
checking size of struct ip6_hdr... 40
checking for x86_64-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libnfnetlink... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating extensions/GNUmakefile
config.status: creating include/Makefile
config.status: creating iptables/Makefile
config.status: creating iptables/xtables.pc
config.status: creating libipq/Makefile
config.status: creating libipq/libipq.pc
config.status: creating libiptc/Makefile
config.status: creating libiptc/libiptc.pc
config.status: creating utils/Makefile
config.status: creating include/xtables.h
config.status: creating include/iptables/internal.h
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-firewall/iptables-1.4.12.1/work/iptables-1.4.12.1 ...
make -j3 V=1
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/net-firewall/iptables-1.4.12.1/work/iptables-1.4.12.1'
Making all in extensions
make[2]: Entering directory `/var/tmp/portage/net-firewall/iptables-1.4.12.1/work/iptables-1.4.12.1/
extensions'
x86_64-pc-linux-gnu-gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT   -
DXTABLES_LIBDIR=\"/usr/lib64/xtables\" -DXTABLES_INTERNAL -I../include -I.. -I../include  -Wp,-MMD,.
/.libxt_tcp.o.d,-MT,libxt_tcp.o -Wall -Waggregate-return -Wmissing-declarations         -Wmissing-pr
ototypes -Wredundant-decls -Wshadow -Wstrict-prototypes         -Winline -pipe -DNO_SHARED_LIBS=1 -D
_INIT=libxt_tcp_init -O3 -march=core2 -pipe -fomit-frame-pointer -o libxt_tcp.o -c libxt_tcp.c;
x86_64-pc-linux-gnu-gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT   -
DXTABLES_LIBDIR=\"/usr/lib64/xtables\" -DXTABLES_INTERNAL -I../include -I.. -I../include  -Wp,-MMD,.
/.libxt_length.o.d,-MT,libxt_length.o -Wall -Waggregate-return -Wmissing-declarations   -Wmissing-pr
ototypes -Wredundant-decls -Wshadow -Wstrict-prototypes         -Winline -pipe -DNO_SHARED_LIBS=1 -D
_INIT=libxt_length_init -O3 -march=core2 -pipe -fomit-frame-pointer -o libxt_length.o -c libxt_lengt
h.c;
x86_64-pc-linux-gnu-gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT   -
DXTABLES_LIBDIR=\"/usr/lib64/xtables\" -DXTABLES_INTERNAL -I../include -I.. -I../include  -Wp,-MMD,.
/.libxt_NOTRACK.o.d,-MT,libxt_NOTRACK.o -Wall -Waggregate-return -Wmissing-declarations         -Wmi
ssing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes         -Winline -pipe -DNO_SHARED_L
IBS=1 -D_INIT=libxt_NOTRACK_init -O3 -march=core2 -pipe -fomit-frame-pointer -o libxt_NOTRACK.o -c l
ibxt_NOTRACK.c;
x86_64-pc-linux-gnu-gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT   -
DXTABLES_LIBDIR=\"/usr/lib64/xtables\" -DXTABLES_INTERNAL -I../include -I.. -I../include  -Wp,-MMD,.
/.libxt_DSCP.o.d,-MT,libxt_DSCP.o -Wall -Waggregate-return -Wmissing-declarations       -Wmissing-pr
ototypes -Wredundant-decls -Wshadow -Wstrict-prototypes         -Winline -pipe -DNO_SHARED_LIBS=1 -D
_INIT=libxt_DSCP_init -O3 -march=core2 -pipe -fomit-frame-pointer -o libxt_DSCP.o -c libxt_DSCP.c;
x86_64-pc-linux-gnu-gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT   -
DXTABLES_LIBDIR=\"/usr/lib64/xtables\" -DXTABLES_INTERNAL -I../include -I.. -I../include  -Wp,-MMD,.
/.libxt_rateest.o.d,-MT,libxt_rateest.o -Wall -Waggregate-return -Wmissing-declarations         -Wmi
ssing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes         -Winline -pipe -DNO_SHARED_L
IBS=1 -D_INIT=libxt_rateest_init -O3 -march=core2 -pipe -fomit-frame-pointer -o libxt_rateest.o -c l
ibxt_rateest.c;
x86_64-pc-linux-gnu-gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT   -
DXTABLES_LIBDIR=\"/usr/lib64/xtables\" -DXTABLES_INTERNAL -I../include -I.. -I../include  -Wp,-MMD,.
/.libxt_statistic.o.d,-MT,libxt_statistic.o -Wall -Waggregate-return -Wmissing-declarations     -Wmi
ssing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes         -Winline -pipe -DNO_SHARED_L
IBS=1 -D_INIT=libxt_statistic_init -O3 -march=core2 -pipe -fomit-frame-pointer -o libxt_statistic.o
-c libxt_statistic.c;
x86_64-pc-linux-gnu-gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT   -DXTABLES_LIBDIR=\"/usr/lib64/xtables\" -DXTABLES_INTERNAL -I../include -I.. -I../include  -Wp,-MMD,./.libxt_mark.o.d,-MT,libxt_mark.o -Wall -Waggregate-return -Wmissing-declarations       -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes         -Winline -pipe -DNO_SHARED_LIBS=1 -D_INIT=libxt_mark_init -O3 -march=core2 -pipe -fomit-frame-pointer -o libxt_mark.o -c libxt_mark.c;
x86_64-pc-linux-gnu-gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT   -DXTABLES_LIBDIR=\"/usr/lib64/xtables\" -DXTABLES_INTERNAL -I../include -I.. -I../include  -Wp,-MMD,./.libxt_CHECKSUM.o.d,-MT,libxt_CHECKSUM.o -Wall -Waggregate-return -Wmissing-declarations       -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes         -Winline -pipe -DNO_SHARED_LIBS=1 -D_INIT=libxt_CHECKSUM_init -O3 -march=core2 -pipe -fomit-frame-pointer -o libxt_CHECKSUM.o -c libxt_CHECKSUM.c;
x86_64-pc-linux-gnu-gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT   -DXTABLES_LIBDIR=\"/usr/lib64/xtables\" -DXTABLES_INTERNAL -I../include -I.. -I../include  -Wp,-MMD,./.libxt_owner.o.d,-MT,libxt_owner.o -Wall -Waggregate-return -Wmissing-declarations     -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes         -Winline -pipe -DNO_SHARED_LIBS=1 -D_INIT=libxt_owner_init -O3 -march=core2 -pipe -fomit-frame-pointer -o libxt_owner.o -c libxt_owner.c;
x86_64-pc-linux-gnu-gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT   -DXTABLES_LIBDIR=\"/usr/lib64/xtables\" -DXTABLES_INTERNAL -I../include -I.. -I../include  -Wp,-MMD,./.libxt_LED.o.d,-MT,libxt_LED.o -Wall -Waggregate-return -Wmissing-declarations         -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes         -Winline -pipe -DNO_SHARED_LIBS=1 -D_INIT=libxt_LED_init -O3 -march=core2 -pipe -fomit-frame-pointer -o libxt_LED.o -c libxt_LED.c;
x86_64-pc-linux-gnu-gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT   -DXTABLES_LIBDIR=\"/usr/lib64/xtables\" -DXTABLES_INTERNAL -I../include -I.. -I../include  -Wp,-MMD,./.libxt_pkttype.o.d,-MT,libxt_pkttype.o -Wall -Waggregate-return -Wmissing-declarations         -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes         -Winline -pipe -DNO_SHARED_LIBS=1 -D_INIT=libxt_pkttype_init -O3 -march=core2 -pipe -fomit-frame-pointer -o libxt_pkttype.o -c libxt_pkttype.c;
In file included from libxt_pkttype.c:10:
/usr/include/linux/if_packet.h:176: error: expected specifier-qualifier-list before ‘__aligned_u64’
make[2]: *** [libxt_pkttype.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/net-firewall/iptables-1.4.12.1/work/iptables-1.4.12.1/extensions'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-firewall/iptables-1.4.12.1/work/iptables-1.4.12.1'
make: *** [all] Error 2
 * ERROR: net-firewall/iptables-1.4.12.1 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of 'emerge --info =net-firewall/iptables-1.4.12.1',
 * the complete build log and the output of 'emerge -pqv =net-firewall/iptables-1.4.12.1'.
 * The complete build log is located at '/var/tmp/portage/net-firewall/iptables-1.4.12.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-firewall/iptables-1.4.12.1/temp/environment'.
 * S: '/var/tmp/portage/net-firewall/iptables-1.4.12.1/work/iptables-1.4.12.1'

>>> Failed to emerge net-firewall/iptables-1.4.12.1, Log file:


Expected Results:  
Successful compilation.  This did happen when I downgraded to linux-headers-3.1.

Sigh.  I wish I kept a copy of /usr/include/linux/if_packet.h before I downgraded to linux-headers-3.1.  I had no problem installing Linux 3.2.1-r1 on my machine, and lines 176 of the if_packet.h file in 3.2.1-r1 looks a lot like what I remembered seeing for the same line of /usr/include/linux/if_packet.h from the linux-headers-3.2-r1 package.

I had thought that the files in the linux-headers packages were simply the .h files copied out of the kernel sources.  Maybe the files are cooked somehow instead.
Comment 1 Adrian Nievergelt 2012-03-17 06:55:03 UTC
I can confirm this bug with sys-kernel/linux-headers-3.2-r1 and net-firewall/iptables-1.4.12.1 on i686.
Comment 2 Jaak Ristioja 2012-04-04 13:19:26 UTC
I can confirm this bug with sys-kernel/linux-headers-3.3, net-firewall/iptables-1.4.12.1 AND net-firewall/ebtables-2.0.9.2-r2.

This means that
 1) ebtables and possibly other packages are affected as well, and
 2) probably >=linux-headers-3.2 is to blame.

Please consider changing the bug summary respectively to better avoid duplicate bugs.
Comment 3 Ian Whyman (thev00d00) (RETIRED) gentoo-dev 2012-04-20 09:12:01 UTC
net-firewall/iptables-1.4.13 builds as expected.
Comment 4 SpanKY gentoo-dev 2012-05-02 04:55:47 UTC
then we'll stable the newer version