(Sorry I'm replying so late; I've been single-mindedly immersed in fixing an XFS bug.) On Friday 09 May 2003 04:47 am, Wouter Rademaker wrote: > 2. Something with this lines in adriver.h : > #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 3) > #define need_resched() (current->need_resched) > #endif > Because of this error : > /lib/modules/2.4.20/build/include/linux/sched.h:946: Recent kernels (such as 2.4.20) define a need_resched() function in . Apparently, alsa-driver is creating a macro to compensate for kernel versions where this function supposedly does not exist or is not useful for its purposes. alsa-driver apparently thinks kernel 2.5.3 is the earliest version with a useful need_resched() function. It's pretty much right as far as 2.4.x goes--the need_resched() function in 2.4.20 really doesn't do anything more than return current->need_resched. The unlikely() macro makes it look like it does something more, but the unlikely() macro is currently just a straight drop-through. Nevertheless, defining the need_resched() macro in the presence of a need_resched() function apparently confuses gcc/alpha (gcc/i386 doesn't complain). Thus the problem you're having. So commenting out the lines above would work for 2.4.20, although it would add the (minor) expense of yet another function call. It would likely break other kernel versions, though. A more proper fix would be in the patch attached below, which apparently works for 0.9.2, 0.9.3, and 0.9.3a. > 3. Something to solve this error: > memory_wrapper.c: In function > `snd_compat_vmalloc_to_page': memory_wrapper.c:41: `mem_map' > undeclared (first use in this function) memory_wrapper.c:41: > (Each undeclared identifier is reported only once > memory_wrapper.c:41: for each function it appears in.) > memory_wrapper.c:28: warning: `page' might be used > uninitialized in this function > make[1]: *** [memory_wrapper.o] Error 1 > make: *** [compile] Error 1 > Probably can't he find the declaration of mem_map, but I > can't find it either. Including and seems to solve it. Sadly, since my LX164 has no soundcard, I can't actually test all this beyond compilation. :( -- Kelledin "If a server crashes in a server farm and no one pings it, does it still cost four figures to fix?"