... /usr/src/linux-2.4.22-gentest-r1/include/linux/fs.h:486: warning: unnamed struct/union that defines no instances gcc -D__KERNEL__ -I/usr/src/linux-2.4.22-gentest-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -nostdinc -iwithprefix include -DKBUILD_BASENAME=floppy -c -o floppy.o floppy.c In file included from /usr/src/linux-2.4.22-gentest-r1/include/linux/capability.h:17, from /usr/src/linux-2.4.22-gentest-r1/include/linux/binfmts.h:5, from /usr/src/linux-2.4.22-gentest-r1/include/linux/sched.h:9, from floppy.c:149: /usr/src/linux-2.4.22-gentest-r1/include/linux/fs.h:486: warning: unnamed struct/union that defines no instances gcc -D__KERNEL__ -I/usr/src/linux-2.4.22-gentest-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -nostdinc -iwithprefix include -DKBUILD_BASENAME=rd -c -o rd.o rd.c In file included from /usr/src/linux-2.4.22-gentest-r1/include/linux/capability.h:17, from /usr/src/linux-2.4.22-gentest-r1/include/linux/binfmts.h:5, from /usr/src/linux-2.4.22-gentest-r1/include/linux/sched.h:9, from /usr/src/linux-2.4.22-gentest-r1/include/linux/mm.h:4, from /usr/src/linux-2.4.22-gentest-r1/include/linux/slab.h:14, from rd.c:47: /usr/src/linux-2.4.22-gentest-r1/include/linux/fs.h:486: warning: unnamed struct/union that defines no instances rd.c: In function `rd_ioctl': rd.c:292: structure has no member named `i_bdev' rd.c:293: structure has no member named `i_bdev' rd.c:297: structure has no member named `i_bdev' make[3]: *** [rd.o] Error 1 make[3]: Leaving directory `/usr/src/linux-2.4.22-gentest-r1/drivers/block' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/linux-2.4.22-gentest-r1/drivers/block' make[1]: *** [_subdir_block] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.22-gentest-r1/drivers' make: *** [_dir_drivers] Error 2 It gets this on loop.c if i remove ramdisks, and on different ide stuff if I remove loopback support. 2.4.22-r0 also dies like this, but it compiles ok on a 1.4 system w/ gcc-3.3 Reproducible: Always Steps to Reproduce: Portage 2.0.49-r15 (default-1.0, gcc-2.95.3, glibc-2.2.5-r9, 2.4.20-gentoo-r8a) ================================================================= System uname: 2.4.20-gentoo-r8a i686 AMD Athlon(tm) processor Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=i686 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=i686 -O3 -pipe" DISTDIR="/mnt/linuxback/portage/distfiles" FEATURES="sandbox ccache autoaddcvs digest userpriv usersandbox strict" GENTOO_MIRRORS="http://linux.oit.umass.edu/gentoo/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/mnt/linuxback/portage" PORTDIR_OVERLAY="/mnt/linuxback/portage-local" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 oss 3dnow apm avi crypt cups jpeg libg++ mikmod mmx mpeg ncurses pdflib spell truetype xml2 xmms xv berkdb bonobo cdr directfb esd gdbm ggi gif gnome gnome-libs gpm gtk gtkhtml guile imlib libwww motif mozilla nls oggvorbis opengl pam perl png python readline sdl slang snmp ssl svga tcltk tcpd tiff X -kde -qt -arts -java dvd encode gtk2 -quicktime"
can you attach your .config? Oddly enough, I tried building with a couple of different configs, and they all worked fine. Can you try changing those lines to read like this: /* These three should probably be a union */ struct list_head i_devices; struct pipe_inode_info *i_pipe; struct block_device *i_bdev; struct char_device *i_cdev; unsigned long i_dnotify_mask; /* Directory notify events */ instead of like this: /* These three should probably be a union */ struct list_head i_devices; union { struct pipe_inode_info *i_pipe; struct block_device *i_bdev; struct char_device *i_cdev; }; unsigned long i_dnotify_mask; /* Directory notify events */ And see if it compiles like that?
I changed the lines and it compiles. My .config is the same as I used on gentoo-sources-2.4.20-r8 after a make oldconfig.
Created attachment 21249 [details] .config
iggy: I did as you told Matt and i managed to build the kernel (gcc 2.95 here) but now i cant do nat (i did not change nothing in the network stuff when changing from pfeifer-sources 2.4.21 pre3). iptables -t nat -A POSTROUTING -o eth2 -j SNAT --to 81.84.115.47 iptables: Invalid argument
gustavo, there have been bug reports about this before, you need to remerge iptables
closing since all issues are fixed (this is fixed in the newest gentoo-sources and gentoo-test-sources)