The decnet drives fails to compile correctly. The workaround is easy, disable it since I don't need it. Reproducible: Always Steps to Reproduce: 1. emerge gentoo-sources-2.4.28-r5 2. genkernel --config=<config file I'm attaching> all Actual Results: [...snip...] gcc -D__KERNEL__ -I/usr/src/linux-2.4.28-gentoo-r5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=dn_neigh -c -o dn_neigh.o dn_neigh.c dn_neigh.c:584: error: `THIS_MODULE' undeclared here (not in a function) dn_neigh.c:584: error: initializer element is not constant dn_neigh.c:584: error: (near initialization for `dn_neigh_seq_fops.owner') make[2]: *** [dn_neigh.o] Error 1 make[2]: Leaving directory `/usr/src/linux-2.4.28-gentoo-r5/net/decnet' make[1]: *** [_modsubdir_decnet] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.28-gentoo-r5/net' make: *** [_mod_net] Error 2 [...snip...] * ERROR: Failed to compile the "modules" target... Expected Results: Modules to compile correctly. Portage 2.0.51-r13 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.4.25-gentoo i686) ================================================================= System uname: 2.4.25-gentoo i686 AMD Duron(tm) processor Gentoo Base System version 1.4.16 Python: dev-lang/python-2.2.3-r1,dev-lang/python-2.3.4 [2.3.4 (#1, Jan 14 2005, 04:43:44)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.2.3-r1, 2.3.4 sys-devel/autoconf: 2.59-r5 sys-devel/automake: 1.8.5-r1 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.2-r7 virtual/os-headers: 2.4.19, 2.4.21-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=i686 -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks fixpackages sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo http://mirror.cpsc.ucalgary.ca/mirror/gentoo.org http://lug.mtu.edu/gentoo/ http://gentoo.llarian.net/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/portage/distfiles/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /home/vericgar/portage-overlay/cvs-tree/gentoo-x86 /home/vericgar/portage-overlay/work-tree" SYNC="rsync://10.0.1.5/gentoo-portage" USE="X apm autofs avi berkdb bitmap-fonts cdr crypt cscope cups curl dga directfb dvd encode f77 fbcon flac flash font-server foomaticdb gatos gd gdbm ggi gif gpm gtk gtk2 guile imagemagick imap imlib innodb ipv6 java jikes jpeg junit ldap libwww mad maildir mcal md5sum mikmod mmx mpeg mpi mysql ncurses oav offensive oggvorbis opengl openssh oss pam pdflib perl php png ppds python quicktime rage128 readline ruby samba scanner sdl skey slang snmp spell sqlite sse ssl svga tcltk tcpd tetex tiff transcode truetype truetype-fonts type1-fonts usb v4l videos vim-with-x wxwindows x86 xinerama xml xml2 xmms xosd xv xvid zlib" Unset: LDFLAGS
Created attachment 48916 [details] .config
*** This bug has been marked as a duplicate of 77181 ***
Well, this one and 77181 are all too familiar. The exact same thing is happening to me, except that the solution proposed here does not solve my problem...I still get it. I started to download and install gentoo (it turned out 2.4.28-gentoo-r6)several nights agr, and after getting the error message I came here, downloaded the config file and proceeded as indicated. Except that my genkernel command does not have a "--config" option, so, instead, I am using "--kernel-config". Please, help, I would appreciate further advice.
It's fixed in -r7; please try that.