Compilation ends with error because PDE is defined both in adriver.h (alsa-driver) and in proc_fs.h (kernel 2.4.23_pre7-gss): In file included from ../alsa-kernel/core/memalloc.c:27, from memalloc.c:28: /usr/src/linux/include/linux/proc_fs.h:213: redefinition of `PDE' /var/tmp/portage/alsa-driver-0.9.2/work/alsa-driver-0.9.2/include/adriver.h:111: `PDE' previously defined here make[1]: *** [memalloc.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.2/work/alsa-driver-0.9.2/acore' make: *** [compile] Error 1 !!! ERROR: media-sound/alsa-driver-0.9.2 failed. !!! Function src_compile, Line 59, Exitcode 2 !!! Parallel Make Failed Reproducible: Always Steps to Reproduce: 1. Install kernel 2.4.23_pre7-gss and create link from /usr/src/linux to this new kernel 2. emerge -v alsa-driver Actual Results: Compilation for alsa-driver failed Expected Results: Shouldn't fail ;-) I solved the problem by commenting the PDE definition in adriver.h and compilation finished successfully.
*** This bug has been marked as a duplicate of 29965 ***
This bug has been fixed in alsa-driver cvs, so the next release after 0.9.7c should fix it. This is the fix being used in the alsa-driver cvs: - --- configure.in.org 2003-10-20 03:09:17.000000000 -0400 +++ configure.in 2003-10-20 03:10:17.000000000 -0400 @@ -1029,10 +1029,11 @@ #include "$CONFIG_SND_KERNELDIR/include/linux/fs.h" #include "$CONFIG_SND_KERNELDIR/include/linux/proc_fs.h" ],[ - PDE(NULL); + struct proc_dir_entry * (*func)(); + func = PDE; ], - AC_MSG_RESULT("no");pde_defined="0", AC_MSG_RESULT("yes");pde_defined="1", + AC_MSG_RESULT("no");pde_defined="0", AC_MSG_RESULT("unknown");pde_defined="0" ) CFLAGS=$ac_save_CFLAGS