Re: [Alsa-user] can't compile alsa-driver with 2.6.18-rc1
Brought to you by:
perex
From: Clemens L. <cl...@la...> - 2006-07-21 09:55:18
|
George Nychis wrote: > I am trying desperately to get any sort of alsa-driver version to > compile with 2.6.18-rc1, however the stable release and pre-release all > fail with the same errors: > http://rafb.net/paste/results/nDiLeh36.html > include/asm/rwsem.h: In function '__down_read': > include/asm/rwsem.h:104: error: expected ':' or ')' before 'memory_wrapper' > include/asm/rwsem.h: In function '__down_write_nested': > include/asm/rwsem.h:156: error: expected ':' or ')' before 'memory_wrapper' > include/asm/rwsem.h: In function '__up_read': > include/asm/rwsem.h:198: error: expected ':' or ')' before 'memory_wrapper' > include/asm/rwsem.h:192: warning: unused variable 'tmp' > include/asm/rwsem.h: In function '__up_write': > include/asm/rwsem.h:224: error: expected ':' or ')' before 'memory_wrapper' > include/asm/rwsem.h: In function '__downgrade_write': > include/asm/rwsem.h:249: error: expected ':' or ')' before 'memory_wrapper' These are lines containing the LOCK_SECTION_START macro. The definition in include/linux/spinlock.h uses the KBUILD_BASENAME macro. The error messages may indicate that the code expects the value of the macro to be a string literal (but ALSA's definition isn't). Please try adding quotes around the four KBUILD_BASENAME definitions in alsa-driver/Rules.make, like this: ... -DKBUILD_BASENAME=\"$(subst ...)\" $... HTH Clemens |