When I try to compile the standalone pcmcia_cs package under gentoo kernel 2.4.20-r5, the compilation fails with a fatal error. I noticed that the new kernel included an option I hadn't seen before, in the .config, it is labeled CONFIG_HZ. I origionally left it at default(200), compiled, and then tried to build pcmcia_cs, resulting in the error below. In addition, I tried setting this to the previous kernel's default setting(100), this also resulted in the same error. I belive the pcmcia_cs compilation error may be in relation to this new option in the kernel, but it is completely speculation. pcmcia_cs will compile normally under 2.4.20-vanilla, as well as 2.4.21-vanilla, both of which do not have the CONFIG_HZ option in the .config Reproducible: Always Steps to Reproduce: 1. emerge sys-kernel/gentoo-sources 2. Configure kernel without PCMCIA support, compile and install, reboot. 3.Compile standalone pcmcia_cs: 'make config' to configure, then 'make all' to build drivers. Actual Results: A fatal error occured after issuing the 'make all' command, with references to an option in the gentoo r5 kernel config. Complete output pasted : root@dellerium pcmcia-cs-3.2.1 # make all make[1]: Entering directory `/usr/src/pcmcia-cs-3.2.1/modules' cc -MD -O2 -Wall -Wstrict-prototypes -pipe -I../include - I/usr/src/linux/include -D__KERNEL__ -DMODULE -c cs.c In file included from /usr/src/linux/include/linux/rwsem.h:29, from /usr/src/linux/include/asm/semaphore.h:42, from /usr/src/linux/include/linux/fs.h:203, from /usr/src/linux/include/linux/capability.h:17, from /usr/src/linux/include/linux/binfmts.h:6, from /usr/src/linux/include/linux/sched.h:9, from ../include/linux/sched.h:5, from /usr/src/linux/include/linux/mm.h:22, from /usr/src/linux/include/linux/slab.h:14, from ../include/linux/slab.h:9, from cs.c:41: /usr/src/linux/include/asm/rwsem.h: In function `__down_write_trylock': /usr/src/linux/include/asm/rwsem.h:176: warning: implicit declaration of function `cmpxchg' In file included from /usr/src/linux/include/linux/affs_fs_i.h:7, from /usr/src/linux/include/linux/fs.h:309, from /usr/src/linux/include/linux/capability.h:17, from /usr/src/linux/include/linux/binfmts.h:6, from /usr/src/linux/include/linux/sched.h:9, from ../include/linux/sched.h:5, from /usr/src/linux/include/linux/mm.h:22, from /usr/src/linux/include/linux/slab.h:14, from ../include/linux/slab.h:9, from cs.c:41: /usr/src/linux/include/linux/time.h: In function `timespec_to_jiffies': /usr/src/linux/include/linux/time.h:37: `CONFIG_HZ' undeclared (first use in this function) /usr/src/linux/include/linux/time.h:37: (Each undeclared identifier is reported only once /usr/src/linux/include/linux/time.h:37: for each function it appears in.) /usr/src/linux/include/linux/time.h: In function `jiffies_to_timespec': /usr/src/linux/include/linux/time.h:47: `CONFIG_HZ' undeclared (first use in this function) In file included from /usr/src/linux/include/linux/sched.h:14, from ../include/linux/sched.h:5, from /usr/src/linux/include/linux/mm.h:22, from /usr/src/linux/include/linux/slab.h:14, from ../include/linux/slab.h:9, from cs.c:41: /usr/src/linux/include/linux/timex.h:78:3: #error You lose. cs.c: At top level: cs.c:109: `CONFIG_HZ' undeclared here (not in a function) cs.c:110: `CONFIG_HZ' undeclared here (not in a function) cs.c:111: `CONFIG_HZ' undeclared here (not in a function) cs.c:112: `CONFIG_HZ' undeclared here (not in a function) cs.c:114: `CONFIG_HZ' undeclared here (not in a function) cs.c:115: `CONFIG_HZ' undeclared here (not in a function) cs.c: In function `setup_socket': cs.c:479: `CONFIG_HZ' undeclared (first use in this function) make[1]: *** [cs.o] Error 1 make[1]: Leaving directory `/usr/src/pcmcia-cs-3.2.1/modules' make: *** [all] Error 2 Expected Results: pcmcia_cs should have compiled normally, without any fatal errors. pcmcia_cs compiles fine under 2.4.20 vanilla. root@dellerium pcmcia-cs-3.2.1 # uname -a Linux dellerium.localnet.exe 2.4.20-gentoo-r5 #7 Thu Jun 26 13:59:04 CDT 2003 i686 Intel(R) Pentium(R) III Mobile CPU 1200MHz GenuineIntel GNU/Linux root@dellerium pcmcia-cs-3.2.1 # emerge info Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) III Mobile CPU 1200MHz GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/shar e/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm arts avi crypt cups encode gif jpeg kde gnome libg++ libwww mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb alsa gdbm berkdb slang readline aalib svga ggi tcltk java X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gtk qt motif opengl mozilla" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-O2 -mcpu=i686 -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
1) Do you still get this? 2) It looks like you have corruption of headers/kernel source. Remerge both.
Over 2 months with no reponse. Marking INVALID. feel free to reopen if this is still a problem.