When I try to compile IPTables::IPv4 it fails with the below mentioned error. Reproducible: Always Steps to Reproduce: 1. g-cpan -i IPTables::IPv4 2. sit and wait for it to crash Actual Results: In file included from libip6tc.c:111: libiptc.c: In function 'entry2index': libiptc.c:136: warning: format '%i' expects type 'int', but argument 3 has type 'long int' libiptc.c: In function 'ip6tc_init': libiptc.c:312: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness libip6tc.c: In function 'ipv6_prefix_length': libip6tc.c:121: error: 'const struct in6_addr' has no member named 'in6_u' libip6tc.c:125: error: 'const struct in6_addr' has no member named 'in6_u' libip6tc.c: In function 'dump_entry': libip6tc.c:179: warning: format '%llu' expects type 'long long unsigned int', but argument 2 has type 'u_int64_t' libip6tc.c:179: warning: format '%llu' expects type 'long long unsigned int', but argument 3 has type 'u_int64_t' make[1]: *** [libip6tc.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/perl-gcpan/IPTables-IPv4-0.98/work/IPTables-IPv4-0.98/libiptc' make: *** [libiptc/libiptc.a] Error 2 * * ERROR: perl-gcpan/IPTables-IPv4-0.98 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2459: Called perl-module_src_compile * environment, line 2182: Called die * The specific snippet of code: * make ${mymake} || die "compilation failed"; * The die message: * compilation failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/perl-gcpan/IPTables-IPv4-0.98/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/perl-gcpan/IPTables-IPv4-0.98/temp/environment'. * This ebuild is from an overlay: '/var/tmp/g-cpan/' * Expected Results: Compile cleanly. Portage 2.1.6.4 (default/linux/amd64/2008.0/server, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.26-hardened-r9 x86_64) ================================================================= System uname: Linux-2.6.26-hardened-r9-x86_64-Intel-R-_Xeon-R-_CPU_3040_@_1.86GHz-with-glibc2.2.5 Timestamp of tree: Wed, 18 Feb 2009 17:15:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.4.4-r13, 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ " LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="amd64 apache3 apm bash-completion hardened multilib ncurses nptl nptlonly pam perl pic prelude remote ssl tcpd threads" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 182473 [details] build log
IMO you need contact/post bug to upstream
I'd second that: When I run, as a normal user, $ perl -MCPAN -e "install IPTables::IPv4" I get the same libip6tc.c:121: error: 'const struct in6_addr' has no member named 'in6_u' So this has nothing to do with g-cpan or gentoo. Close with resolution "upstream"?
Upstream hasn't touched the package in 6.5 years. It's for 2.4 kernels, not 2.6 ones.