Upgrading my cobalt I ran into this: mipsel-unknown-linux-gnu-gcc -D_GNU_SOURCE -O2 -mips4 -mabi=32 -fomit-frame-pointer -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o m_ipt.o m_ipt.c In file included from ../include/libiptc/libiptc.h:6, from ../include/iptables.h:5, from m_ipt.c:20: ../include/linux/netfilter_ipv4/ip_tables.h:20:38: error: linux/netfilter/x_tables.h: No such file or directory In file included from ../include/libiptc/libiptc.h:6, from ../include/iptables.h:5, from m_ipt.c:20: ../include/linux/netfilter_ipv4/ip_tables.h:87: error: field 'counters' has incomplete type ../include/linux/netfilter_ipv4/ip_tables.h:115:39: error: linux/netfilter/xt_tcpudp.h: No such file or directory ../include/linux/netfilter_ipv4/ip_tables.h:144: error: 'XT_FUNCTION_MAXNAMELEN' undeclared here (not in a function) In file included from m_ipt.c:20: ../include/iptables.h:56: warning: 'struct xt_entry_match' declared inside parameter list ../include/iptables.h:56: warning: its scope is only this definition or declaration, which is probably not what you want ../include/iptables.h:63: warning: 'struct xt_entry_match' declared inside parameter list ../include/iptables.h:70: warning: 'struct xt_entry_match' declared inside parameter list ../include/iptables.h:74: warning: 'struct xt_entry_match' declared inside parameter list m_ipt.c: In function 'build_st': m_ipt.c:356: error: invalid application of 'sizeof' to incomplete type 'struct xt_entry_target' m_ipt.c:360: error: dereferencing pointer to incomplete type m_ipt.c:364: error: dereferencing pointer to incomplete type m_ipt.c:368: error: dereferencing pointer to incomplete type m_ipt.c: In function 'parse_ipt': m_ipt.c:499: error: dereferencing pointer to incomplete type m_ipt.c: In function 'print_ipt': m_ipt.c:547: error: dereferencing pointer to incomplete type m_ipt.c:559: error: dereferencing pointer to incomplete type make[1]: *** [m_ipt.o] Error 1 rm emp_ematch.lex.c emp_ematch.yacc.c make[1]: Leaving directory `/var/tmp/portage/sys-apps/iproute2-2.6.19.20061214/work/iproute2-2.6.19-061214/tc' make: *** [all] Error 2 !!! ERROR: sys-apps/iproute2-2.6.19.20061214 failed. Call stack: ebuild.sh, line 1615: Called dyn_compile ebuild.sh, line 972: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile iproute2-2.6.19.20061214.ebuild, line 69: Called die !!! make !!! 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/sys-apps/iproute2-2.6.19.20061214/temp/build.log'. # emerge --info Portage 2.1.2.7 (default-linux/mips/2006.1/cobalt/o32, gcc-4.1.1, glibc-2.3.6-r5, 2.6.17.10-mipsgit-20060618 mips) ================================================================= System uname: 2.6.17.10-mipsgit-20060618 mips Nevada V10.0 FPU V10.0 Gentoo Base System release 1.12.9 Timestamp of tree: Fri, 25 May 2007 16:00:01 +0000 dev-lang/python: 2.3.5-r2, 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.14.4 ACCEPT_KEYWORDS="mips" AUTOCLEAN="yes" CBUILD="mipsel-unknown-linux-gnu" CFLAGS="-O2 -mips4 -mabi=32 -fomit-frame-pointer" CHOST="mipsel-unknown-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -mips4 -mabi=32 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sfperms strict" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="bash-completion berkdb bitmap-fonts bzip2 cli cobalt cracklib crypt fortran gdbm gpm iconv ipv6 isdnlog libwww md5sum midi mips mudflap ncurses nls objc openmp pam pcre perl pppd python readline reflection sdl session spl ssl tcpd truetype-fonts type1-fonts unicode utf8 xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" 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="dummy fbdev impact newport v4l" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Hrmm... I wonder if this is an issue with the headers? Could you try a newer mips-headers or linux-headers package?
let me finish the update (--resume --skipfirst) and then I'll upgrade mips-headers. which one is being the 'default' by the way? linux-headers or mips-headers?
newer install a new kernel on a machine you don't have physical access to.. Nah.. now I have to get on the serial line.. ;-) I'm not getting next to the machine until next week. Will report back then.
I've got a feeling this is due to mips-headers stopping at 2.6.17, and us switching to linux-headers-2.6.19; and this rev of iproute2 only builds against 2.6.19 headers. I'll mask it and above in the 2007.0 profile, and leave it open in the newer ones.
Test and make sure the 2.6.16 one works for you. If you're feeling brave, switch your profile to the 2007.1-dev mips profile, unmerge mips-headers manually and merge linux-headers, then re-merge glibc (and make sure glibc does not try to pull mips-headers back in), then try the 2.6.19 iproute2. If all that works, rebuild your system (cause of the headers change) :)