Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31337 - alsa-driver: compilation stops due to redefinition of PDE with kernel 2.4.23_pre7-gss
Summary: alsa-driver: compilation stops due to redefinition of PDE with kernel 2.4.23_...
Status: RESOLVED DUPLICATE of bug 29965
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-17 00:51 UTC by Miroslav Šulc
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2003-10-17 00:51:40 UTC
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.
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2003-10-17 08:32:14 UTC

*** This bug has been marked as a duplicate of 29965 ***
Comment 2 James 2003-10-20 00:14:22 UTC
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