Hello,
I want to cross compile alsa-driver for my arm9 custom board , when I build it, I get the following errors:
CC [M] /home/zb/alsa/alsa-driver-1.0.17/acore/memory_wrapper.oIn file included from /home/zb/alsa/alsa-driver-1.0.17/acore/memory_wrapper.c:25:/home/zb/alsa/alsa-driver-1.0.17/include/adriver.h:828: error: static declaration of 'jiffies_to_msecs' follows non-static declarationinclude/linux/jiffies.h:264: error: previous declaration of 'jiffies_to_msecs' was here/home/zb/alsa/alsa-driver-1.0.17/include/adriver.h:847: error: static declaration of 'msecs_to_jiffies' follows non-static declarationinclude/linux/jiffies.h:266: error: previous declaration of 'msecs_to_jiffies' was hereIn file included from /home/zb/alsa/alsa-driver-1.0.17/acore/memory_wrapper.c:25:/home/zb/alsa/alsa-driver-1.0.17/include/adriver.h:1552:1: warning: "page_to_pfn" redefinedIn file included from include/asm/memory.h:329, from include/asm/system.h:6, from include/linux/list.h:9, from include/linux/module.h:9, from /home/zb/alsa/alsa-driver-1.0.17/include/adriver.h:26, from /home/zb/alsa/alsa-driver-1.0.17/acore/memory_wrapper.c:25:include/asm-generic/memory_model.h:79:1: warning: this is the location of the previous definitionIn file included from /home/zb/alsa/alsa-driver-1.0.17/acore/memory_wrapper.c:26:include/linux/mm.h: In function 'lowmem_page_address':include/linux/mm.h:538: error: implicit declaration of function 'page_to_pfn'/home/zb/alsa/alsa-driver-1.0.17/acore/memory_wrapper.c: In function 'snd_compat_vmalloc_to_page':/home/zb/alsa/alsa-driver-1.0.17/acore/memory_wrapper.c:44: error: implicit declaration of function 'VMALLOC_VMADDR'/home/zb/alsa/alsa-driver-1.0.17/acore/memory_wrapper.c:50: error: implicit declaration of function 'pte_offset'/home/zb/alsa/alsa-driver-1.0.17/acore/memory_wrapper.c:50: warning: assignment makes pointer from integer without a cast
I use the following configure options:
export $PREFIX=/opt/alsaexport ARCH=armexport CROSS_COMPILE=/opt/arm-linux/bin/arm-linux- ./configure --prefix=$PREFIX --host=arm-linux --enable-shared --enable-static \ --with-cross=$CROSS_COMPILE \ --with-kernel=/home/zb/embedded/linux-2.6.24.7 \ --with-debug=verbose \ --with-isapnp=no \ --with-cards=s3c2410,soc,s3c24xx-soc,s3c24xx-soc-neo1973-wm8753,s3c24xx-soc-smdk2443-wm9710,s3c24xx-soc-ln2440sbc-alc650
how can is solve this problem ?
Thanks _________________________________________________________________ 这里好多好玩的视频,用鼠标点到视频看看,有惊喜! http://cnweb.search.live.com/video/results.aspx?q=%E5%A5%A5%E8%BF%90%E5%9C%A...