slmodem (both stable and unstable) fails to compile when KBUILD_OUTPUT variable is used ... CC /var/tmp/portage/net-dialup/slmodem-2.9.11_pre20070505/work/ungrab-winmodem-20070505/ungrab-winmodem.mod.o LD [M] /var/tmp/portage/net-dialup/slmodem-2.9.11_pre20070505/work/ungrab-winmodem-20070505/ungrab-winmodem.ko make[1]: Leaving directory `/usr/src/linux-2.6.20-hardened-r5' * Preparing slamr module i386-gentoo-linux-uclibc-gcc -I/usr/src/linux/include -o kernel-ver kernel-ver.c kernel-ver.c:9:30: linux/utsrelease.h: No such file or directory kernel-ver.c: In function `main': kernel-ver.c:14: error: `UTS_RELEASE' undeclared (first use in this function) kernel-ver.c:14: error: (Each undeclared identifier is reported only once kernel-ver.c:14: error: for each function it appears in.) make: *** [kernel-ver] Error 1 !!! ERROR: net-dialup/slmodem-2.9.11_pre20070505 failed. In drivers/Makefile it is wrongly assumed that there are no KBUILD_OUTPUT: kernel-ver:: $(CC) -I$(KERNEL_DIR)/include -o $@ $@.c $(KBUILD_OUTPUT)/include should be used instead of $(KERNEL_DIR)/include when KBUILD_OUTPUT is set.
thank you, I fixed it in the ebuild by using KV_OUT_DIR instead of KV_DIR