At Wed, 30 Jan 2008 21:03:45 +0000, Alan Horstmann wrote:
On Wednesday 30 January 2008 13:03, you wrote:
At Wed, 30 Jan 2008 12:41:46 +0000,
Alan Horstmann wrote:
On Wednesday 30 January 2008 11:21, Takashi wrote:
Could you apply the patch below and use ./hgcompile to configure?
thanks,
Takashi
Patch applied OK. Unfortunately, hgcompile complains that the Autoconf version is too old on this system -needs >2.59 (looks like I have 1.4o). What is the difference using that rather than straight configure?
You need to regenerate the configure script itself.
Is there a way to work round it?
Remove the line "AC_PREREQ(2.59)" in configure.in.
Thanks. However, I could not get (the old) autoconf to produce a working configure script due to 'AS_HELP_STRING', so I added #define CONFIG_HAVE_FFS to the patched adriver.h and used the original configure script, to proceed for now (which it did).
Unfortunately make didn't get much further, having more ??historic kernel?? trouble in memalloc:
memalloc.c: In function `snd_mem_proc_open': memalloc.c:611: warning: implicit declaration of function `single_open' memalloc.c: At top level: memalloc.c:715: error: `single_release' undeclared here (not in a function) memalloc.c:715: error: initializer element is not constant memalloc.c:715: error: (near initialization for `snd_mem_proc_fops.release') memalloc.c: In function `snd_mem_init': memalloc.c:731: warning: assignment discards qualifiers from pointer target type
Then the patch below should work. Give it a try.
Takashi
---
diff -r e600ecb8fbd7 acore/memalloc.patch --- a/acore/memalloc.patch Wed Jan 30 08:36:00 2008 +0100 +++ b/acore/memalloc.patch Thu Jan 31 12:39:11 2008 +0100 @@ -189,7 +189,7 @@
#ifdef CONFIG_PROC_FS -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 0) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) /* * proc file interface */ @@ -205,7 +205,7 @@ static int __init snd_mem_init(void) { #ifdef CONFIG_PROC_FS -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 0) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) snd_mem_proc = create_proc_entry(SND_MEM_PROC_FILE, 0644, NULL); if (snd_mem_proc) snd_mem_proc->proc_fops = &snd_mem_proc_fops; @@ -216,7 +216,7 @@
static void __exit snd_mem_exit(void) { -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 0) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) remove_proc_entry(SND_MEM_PROC_FILE, NULL); +#endif free_all_reserved_pages();