Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25731 - alsa-driver-0.9.6 won't compile with wolk-kernel
Summary: alsa-driver-0.9.6 won't compile with wolk-kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
: 22182 24730 25948 29473 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-01 15:58 UTC by Sebastian Held
Modified: 2003-10-17 08:33 UTC (History)
6 users (show)

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


Attachments
wolk-4.3s patch (alsa-driver-0.9.6-wolk.patch,624 bytes, patch)
2003-08-01 16:00 UTC, Sebastian Held
Details | Diff
updated alsa-driver-0.9.6.ebuild (alsa-driver-0.9.6.ebuild,2.03 KB, text/plain)
2003-08-17 12:13 UTC, FL
Details
the correct working patch (adriver.h.patch,494 bytes, patch)
2003-08-17 12:16 UTC, FL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Held 2003-08-01 15:58:23 UTC
apply following patch to ebuild (with epatch ...) 
 
diff -Naur alsa-driver-0.9.6-old/include/adriver.h alsa-driver-0.9.6-new/include/adriver.h 
--- alsa-driver-0.9.6-old/include/adriver.h     2003-07-03 13:36:16.000000000 +0200 
+++ alsa-driver-0.9.6-new/include/adriver.h     2003-08-02 00:27:38.000000000 +0200 
@@ -121,7 +121,7 @@ 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 3) && !defined(need_resched) 
 #define need_resched() (current->need_resched) 
 #endif 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 4) 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 4) && !defined(WE_ARE_WOLKS) 
 #include <linux/fs.h> 
 static inline struct proc_dir_entry *PDE(const struct inode *inode) 
 {
Comment 1 Sebastian Held 2003-08-01 16:00:06 UTC
Created attachment 15345 [details, diff]
wolk-4.3s patch
Comment 2 kfm 2003-08-10 07:08:11 UTC
*** Bug 25948 has been marked as a duplicate of this bug. ***
Comment 3 J. Ellis (RETIRED) gentoo-dev 2003-08-10 17:23:21 UTC
k. i'll try and get this in when i get home from work today.
Comment 4 rob holland (RETIRED) gentoo-dev 2003-08-16 09:13:58 UTC
sorry jon, I couldn't wait for this so I've done it. ta sebastian and kerin :)

I've not bumped the revision as it was only broken for wolk peeps.
Comment 5 FL 2003-08-17 12:13:41 UTC
Created attachment 16220 [details]
updated alsa-driver-0.9.6.ebuild

sry, have it a little longer lying around. cannot test it in course of wolks
problems with gcc-3.3.x (meant that the kernel not recognises with which gcc
version it is compiled)
Comment 6 FL 2003-08-17 12:16:57 UTC
Created attachment 16221 [details, diff]
the correct working patch

please use this patch. it applied correctly.
Comment 7 Arcady Genkin (RETIRED) gentoo-dev 2003-08-18 11:26:27 UTC
*** Bug 22182 has been marked as a duplicate of this bug. ***
Comment 8 Arcady Genkin (RETIRED) gentoo-dev 2003-08-18 11:41:14 UTC
*** Bug 24730 has been marked as a duplicate of this bug. ***
Comment 9 zeist 2003-09-24 06:14:04 UTC
*** Bug 29473 has been marked as a duplicate of this bug. ***
Comment 10 Martin Holzer (RETIRED) gentoo-dev 2003-09-24 08:24:30 UTC
sound guys, how about mark 0.9.6 as stable ?
Comment 11 James Doherty 2003-10-17 02:42:13 UTC
I am getting this problem using the latest gs-sources kernel (2.4.23-pre7)
and alsa 0.9.2. I tried emerging alsa 0.9.7-rc3 and still received the same
error. I have not applied any patches since this bug has apparently been
fixed. This is what I am getting:

<snip />
gcc -D__KERNEL__ -DMODULE=1 -I/var/tmp/portage/alsa-driver-0.9.7-r3/work/alsa-driver-0.9.7c/include
 -I/usr/src/linux/include -O2  -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD  
-DEXPORT_SYMTAB -c hwdep.c
gcc -D__KERNEL__ -DMODULE=1 -I/var/tmp/portage/alsa-driver-0.9.7-r3/work/alsa-driver-0.9.7c/include
 -I/usr/src/linux/include -O2  -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD  
-DEXPORT_SYMTAB -c memalloc.c
In file included from
/var/tmp/portage/alsa-driver-0.9.7-r3/work/alsa-driver-0.9.7c/include/sound/driver.h:42,
                 from hwdep.c:22:
/var/tmp/portage/alsa-driver-0.9.7-r3/work/alsa-driver-0.9.7c/include/adriver.h:134:
redefinition of `PDE'
/usr/src/linux/include/linux/proc_fs.h:213: `PDE' previously defined here
In file included from memalloc.inc:11,
                 from memalloc.c:1:
/var/tmp/portage/alsa-driver-0.9.7-r3/work/alsa-driver-0.9.7c/include/adriver.h:134:
redefinition of `PDE'
/usr/src/linux/include/linux/proc_fs.h:213: `PDE' previously defined here
make[1]: *** [memalloc.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [hwdep.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.7-r3/work/alsa-driver-0.9.7c/acore'
make: *** [compile] Error 1
 
!!! ERROR: media-sound/alsa-driver-0.9.7-r3 failed.
!!! Function src_compile, Line 67, Exitcode 2
!!! Parallel Make Failed
Comment 12 Tim Yamin (RETIRED) gentoo-dev 2003-10-17 08:33:40 UTC
James Doherty: please see bug #29965