Re: Problem building alsa 0.9 on 2.4.20
Lennart Börjeson <[email protected]> Thu, 3 Apr 2003 11:22:01 +0200
| Newsgroups | gmane.linux.suse.axp,gmane.linux.alsa.user |
|---|---|
| Message-ID | <[email protected]> |
What happens if you redefine the macro without arguments, e.g. as #define need_resched (current->need_resched) ? /Lennart torsdagen den 3 april 2003 10.15 skrev [email protected]: > I am trying to use a Soundblaster Live! on a ALPHA 164SX. > > > My main interest is the sequencer support. > > > Before it worked except loading large soundfonts.(> ~2 MB) > > > > > Now when I try to build the latest versions of alsa, it stops with this > errors: > > > > > In file included from /lib/modules/2.4.20/build/include/linux/mm.h:4, > > > from /lib/modules/2.4.20/build/include/linux/slab.h:14, > > > from /usr/local/src/alsa-0.9.2/alsa-driver-0.9. > 2/include/sound/driver.h:53, > > > from ../alsa-kernel/core/hwdep.c:22, > > > from hwdep.c:1: > > > /lib/modules/2.4.20/build/include/linux/sched.h:946: arguments given to > macro `need_resched' > > > In file included from /lib/modules/2.4.20/build/include/linux/mm.h:4, > > > from /lib/modules/2.4.20/build/include/linux/slab.h:14, > > > from /usr/local/src/alsa-0.9.2/alsa-driver-0.9. > 2/include/sound/driver.h:53, > > > from ../alsa-kernel/core/hwdep.c:22, > > > from hwdep.c:1: > > > /lib/modules/2.4.20/build/include/linux/sched.h:946: parse error before > `->' > > > make[1]: *** [hwdep.o] Error 1 > > > make: *** [compile] Error 1 > > > > > > > When I comment out this line in adriver.h: > > > > > /* #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 3) > > > #define need_resched() (current->need_resched) > > > #endif */ > > > > > it goes a little bit further but stops with this errors: > > > > > > > In file included from /lib/modules/2.4.20/build/include/linux/highmem.h:5, > > > from memory_wrapper.c:23: > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h: In function > `flush_icache_user_range': > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h:84: dereferencing pointer > to incomplete type > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h:84: `VM_EXEC' undeclared > (first use in this function) > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h:84: (Each undeclared > identifier is reported only once > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h:84: for each function it > appears in.) > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h:85: dereferencing pointer > to incomplete type > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h: In function > `ev4_flush_tlb_current_page': > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h:112: dereferencing pointer > to incomplete type > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h:112: `VM_EXEC' undeclared > (first use in this function) > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h: In function > `ev5_flush_tlb_current_page': > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h:124: dereferencing pointer > to incomplete type > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h:124: `VM_EXEC' undeclared > (first use in this function) > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h: In function > `flush_tlb_page': > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h:201: dereferencing pointer > to incomplete type > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h: In function > `free_pgd_slow': > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h:276: warning: implicit > declaration of function `free_page' > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h: In function > `pmd_alloc_one': > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h:281: warning: implicit > declaration of function `__get_free_page' > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h:281: `GFP_KERNEL' > undeclared (first use in this function) > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h:281: warning: cast to > pointer from integer of different size > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h: In function > `pte_alloc_one': > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h:313: `GFP_KERNEL' > undeclared (first use in this function) > > > /lib/modules/2.4.20/build/include/asm/pgalloc.h:313: warning: cast to > pointer from integer of different size > > > In file included from memory_wrapper.c:23: > > > /lib/modules/2.4.20/build/include/linux/highmem.h: In function `kmap': > > > /lib/modules/2.4.20/build/include/linux/highmem.h:68: warning: implicit > declaration of function `page_address' > > > /lib/modules/2.4.20/build/include/linux/highmem.h:68: warning: return makes > pointer from integer without a cast > > > memory_wrapper.c: In function `snd_compat_vmalloc_to_page': > > > memory_wrapper.c:32: warning: implicit declaration of function > `VMALLOC_VMADDR' > > > memory_wrapper.c:36: warning: implicit declaration of function `pgd_offset' > > > memory_wrapper.c:36: warning: assignment makes pointer from integer without > a cast > > > memory_wrapper.c:37: warning: implicit declaration of function `pmd_offset' > > > memory_wrapper.c:37: warning: assignment makes pointer from integer without > a cast > > > memory_wrapper.c:38: warning: implicit declaration of function `pte_offset' > > > memory_wrapper.c:38: warning: assignment makes pointer from integer without > a cast > > > memory_wrapper.c:42: warning: implicit declaration of function `pte_page' > > > memory_wrapper.c:42: warning: assignment makes pointer from integer without > a cast > > > make[1]: *** [memory_wrapper.o] Error 1 > > > make: *** [compile] Error 1 > > > > > > > > > > > 1. is there a way to get alsa working again on ALPHA or > > > 2. which combination of alsa and kernel is know to work on ALPHA and can > load large soundfonts? > > > > > > > > > Met Vriendelijke Zwerversgroeten > > > > > > Wouter Rademaker > > > > > Snel-post: [email protected] > > > > > \ / \ / > > >O< >O< > > *{_} {_}* > > > > > > > > > > > > > > ------------------------------------------ > This message was sent by Scoutnet Webmail. > http://www.scoutnet.nl -- !++ ! Lennart Börjeson ! Partner, Developer ! Cinnober Financial Technology AB ! Industrigatan 2A ! S-112 46 STOCKHOLM ! Sverige/Sweden/Schweden/Suède ! mailto:[email protected] ! phone:+46-8-50304700 ! fax:+46-8-50304701 ! http://www.cinnober.com !--