[Alsa-user] FIXED compile problem with kernel 2.2.17
Brought to you by:
perex
From: Hactar <eb...@ga...> - 2001-07-04 17:12:42
|
Takashi Iwai <ti...@su...> wrote: > At Mon, 2 Jul 2001 00:53:03 +0000, > George Petri wrote: > > > > > > > > I recently ran into trouble compiling either the 0.5.11 and 0.9.0beta4 alsa > > drivers: > > > > gcc -DALSA_BUILD -D__KERNEL__ -O2 -m486 -malign-loops=2 -malign-jumps=2 > > -malign-functions=2 -DCPU=586 -DLINUX -Wall -Wstrict-prototypes > > -fomit-frame-pointer -pipe -I/usr/src/linux/include -I.. -DEXPORT_SYMTAB -c > > sound.c > > In file included from ../sound/driver.h:117, > > from sound.c:23: > > ../sound/compat_22.h:37: warning: `init_MUTEX' redefined > > /usr/src/linux/include/asm/semaphore.h:44: warning: this is the location of > > the previous definition > > make[1]: *** [sound.o] Error 1 > > make[1]: Leaving directory `/usr/local/src/alsa-driver-0.9.0beta4/kernel' > > make: *** [compile] Error 1 > > After pondering over the redef probs up there, I noticed this (twice) in > > sound/compat_22.h: > > > > #if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18) > > > > I am running kernel 2.2.17 in mandrake 7.2 and if I change it (two references > > in fact) to: > > > > #if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,17) > > > > my alsa-drivers actually compile without a single problem. > That's the right fix, but it's not general for all kernels. > The best way would be to check such stuffs in configure script.. Specifically, "--with-sequencer=no". -- -eben eb...@ga... http://home.tampabay.rr.com/hactar/ He who will not reason is a bigot; he who cannot is a fool; and he who dares not is a slave. -Sir William Drummond |