[alsa-devel] Compiler errors in alsa-lib-1.0.22/test/*.c

John Simpson john at swajime.com
Tue Jul 20 00:54:26 CEST 2010


On 7/19/10, John Simpson <john at swajime.com> wrote:
> On 7/19/10, Jaroslav Kysela <perex at perex.cz> wrote:
>
>> You must force compilation in test directory, for example:
>>
>> cd alsa-lib/test
>> make pcm
>>
>>  					Jaroslav
>>
>
> Ok ... I'm learning :o) (i think)
>
> On my n810 that gives me this:
> [user at nokia ~/src/dsp-alsa/trunk/alsa-lib/test]$ make pcm
> cc     pcm.c   -o pcm
> pcm.c: In function `help':
> pcm.c:719: warning: use of cast expressions as lvalues is deprecated
> /var/tmp/ccQOAYhr.o: In function `generate_sine':pcm.c:(.text+0x140):
> undefined reference to `snd_pcm_format_width'
> :pcm.c:(.text+0x160): undefined reference to `snd_pcm_format_width'
> :pcm.c:(.text+0x378): undefined reference to `sin'
> /var/tmp/ccQOAYhr.o: In function `set_hwparams':pcm.c:(.text+0x5ac):
> undefined reference to `snd_pcm_hw_params_any'
> :pcm.c:(.text+0x5c4): undefined reference to `snd_strerror'
>
> On my ubuntu system:
> john at system76-pc:~/alsa-lib-1.0.23/test$ make pcm
> if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include   -Wall -pipe
> -g -D_GNU_SOURCE -MT pcm.o -MD -MP -MF ".deps/pcm.Tpo" -c -o pcm.o
> pcm.c; \
> 	then mv -f ".deps/pcm.Tpo" ".deps/pcm.Po"; else rm -f
> ".deps/pcm.Tpo"; exit 1; fi
> make: *** No rule to make target `../src/libasound.la', needed by `pcm'.
> Stop.
>
> It works on the ubuntu system only if I run 'make check' first, as
> mentioned by Clemens Ladisch in another post.
>
> I copied the file .deps/pcm.Tpo from the ubunutu system to the n810,
> and pasted the output from the ubuntu command "make pcm" in directly:
> [user at nokia ~/src/dsp-alsa/trunk/alsa-lib/test]$ if gcc
> -DHAVE_CONFIG_H -I. -I. -I../include -I../include   -Wall -pipe -g
> -D_GNU_SOURCE -MT pcm.o -MD -MP -MF ".deps/pcm.Tpo" -c -o pcm.o pcm.c;
> then mv -f ".deps/pcm.Tpo" ".deps/pcm.Po"; else rm -f ".deps/pcm.Tpo";
> exit 1; fi
> pcm.c: In function `help':
> pcm.c:719: warning: use of cast expressions as lvalues is deprecated
>
> Now it looks to me like that generated pcm.o on both machines.  What
> do I do with pcm.o now?
>

I'm going to try 1.0.23 on the n810 again, now that I see it works on
the ubuntu system.

[user at nokia ~/src/dsp-alsa/trunk/alsa-lib]$ cat version
1.0.10


More information about the Alsa-devel mailing list