[Alsa-user] Problems compiling alsa-0.9.0rc3
Brought to you by:
perex
From: Vishwanath V. <vishy@MIT.EDU> - 2002-10-22 05:33:57
|
Hello, I am running RedHat 8.0 with kernel-2.4.18-4 and gcc 3.2 20020903. I am a Linux newbie and I had questions about configuring alsa to run on my HP pavilion notebook computer. RedHat detects my card (VIA AC97 VIA82C686) properly, but the test sound, or any sound for that matter, is played as a strange looping sound. This is why I decided to try alsa. When I compile alsa-0.9.0rc3 on my computer using ./configure --with-cards=via686 --with-sequencer=yes --with-kernel=/usr;make;make install I get ---------------------------------------------------------------------- [many warnings omitted] ../alsa-kernel/core/pcm.c:857: dereferencing pointer to incomplete type ../alsa-kernel/core/pcm.c:857: dereferencing pointer to incomplete type ../alsa-kernel/core/pcm.c:872: dereferencing pointer to incomplete type ../alsa-kernel/core/pcm.c:872: dereferencing pointer to incomplete type ../alsa-kernel/core/pcm.c:873: dereferencing pointer to incomplete type ../alsa-kernel/core/pcm.c:873: dereferencing pointer to incomplete type In file included from pcm.c:1: ../alsa-kernel/core/pcm.c: In function `snd_pcm_proc_read': ../alsa-kernel/core/pcm.c:922: `register_mutex' undeclared (first use in this function) ../alsa-kernel/core/pcm.c:928: dereferencing pointer to incomplete type ../alsa-kernel/core/pcm.c:928: dereferencing pointer to incomplete type ../alsa-kernel/core/pcm.c:929: dereferencing pointer to incomplete type ../alsa-kernel/core/pcm.c:930: dereferencing pointer to incomplete type ../alsa-kernel/core/pcm.c:931: dereferencing pointer to incomplete type ../alsa-kernel/core/pcm.c:932: dereferencing pointer to incomplete type In file included from pcm.c:1: ../alsa-kernel/core/pcm.c: At top level: ../alsa-kernel/core/pcm.c:974: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:974: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:974: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:975: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:975: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:975: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:976: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:976: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:976: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:977: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:977: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:977: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:978: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:978: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:978: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:979: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:979: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:979: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:980: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:980: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:980: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:981: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:981: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:981: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:983: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:983: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:983: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:988: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:988: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:988: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:989: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:989: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:989: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:990: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:990: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:990: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:991: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:991: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:991: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:992: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:992: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:992: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:993: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:993: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:993: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:994: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:994: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:994: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:995: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:995: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:995: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:997: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:997: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:997: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:998: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:998: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:998: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:999: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:999: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:999: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:1000: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:1000: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:1000: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:1001: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:1001: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:1001: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:1002: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:1002: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:1002: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:1003: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:1003: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:1003: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:1004: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:1004: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:1004: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:1005: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:1005: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:1005: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:1006: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:1006: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:1006: warning: data definition has no type or storage class ../alsa-kernel/core/pcm.c:1007: parse error before "config_must_be_included_before_module" ../alsa-kernel/core/pcm.c:1007: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' ../alsa-kernel/core/pcm.c:1007: warning: data definition has no type or storage class /usr/src/alsa/alsa-driver-0.9.0rc3/include/sound/pcm.h:334: storage size of `tick_timer' isn't known ../alsa-kernel/core/pcm.c:38: warning: `DECLARE_MUTEX' declared `static' but never defined make[1]: *** [pcm.o] Error 1 make[1]: Leaving directory `/usr/src/alsa/alsa-driver-0.9.0rc3/acore' make: *** [compile] Error 1 ---------------------------------------------------------------------- Any idea why this is occurring? I'd really appreciate some help. I have seen newsgroup postings to the effect that the --with-kernel option may be causing some problem, and that I should ./configure with the --with-sequencer=yes option or simply, no options at all (just a plain ./configure), but none of these have worked. Thanks a lot for your time, and sorry for the long listing of compiler output. Vishy. |