Hello,

I am trying to compile alsa-drivers-0.5.12 on Red Hat Linux 7.2.
The gcc is from RPM package gcc-2.96-98. I am trying to use an
Aztech 2320 sound card, and ALSA appears to be the only project
that has working drivers for it.

./configure appears to work fine (once I installed the kernel source
to get /usr/src/linux/include/linux/version.h)

make produces errors though, and I don't know enough about compiling
to figure out what is wrong. Does anyone have any idea what is going
wrong and what I can do to fix it?

The full output of ./configure and make can be found at 
http://www.burr.cc/~egburr/alsa-compile.txt

Briefly, it seems to be complaining a lot about "warning: extra tokens
at end of #endif directive" and then ending with:
-----------------------------------------------------------------------
make[1]: Entering directory `/usr/install/alsa/alsa-driver-0.5.12/kernel'
gcc   -DALSA_BUILD -D__KERNEL__ -O2  -DLINUX -Wall -Wstrict-prototypes -fomit-fr
ame-pointer -pipe -I/usr/src/linux/include -I.. -DEXPORT_SYMTAB -c sound.c
In file included from ../include/driver.h:66,
                 from sound.c:23:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-hea
ders system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an appropri
ate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or
 similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/in
clude
/usr/include/linux/modversions.h:5:2: #error to build against the currently-runn
ing kernel.
make[1]: *** [sound.o] Error 1
make[1]: Leaving directory `/usr/install/alsa/alsa-driver-0.5.12/kernel'
make: *** [compile] Error 1
-----------------------------------------------------------------------

The file  /usr/include/linux/modversions.h consists of just five lines:
-----------------------------------------------------------------------
#error Modules should never use kernel-headers system headers,
#error but rather headers from an appropriate kernel-source package.
#error Change -I/usr/src/linux/include (or similar) to
#error -I/lib/modules/$(uname -r)/build/include
#error to build against the currently-running kernel.
-----------------------------------------------------------------------
I even tried following these instructions (by modifying the relevant
line in Makefile.conf, but that didn't change anything.

Thanks in advance,
Edward Burr
[EMAIL PROTECTED]

_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to