[alsa-devel] [alsa-lib][PATCH] test: add linker flag with pthread for pcm-multi-thread stress test

Takashi Iwai tiwai at suse.de
Thu Jul 7 23:49:52 CEST 2016


On Thu, 07 Jul 2016 23:43:51 +0200,
Takashi Sakamoto wrote:
> 
> This test program is a pthread application, while Makefile has no flags
> for linker about pthread library. This can cause below error.
> 
> $ make pcm-multi-thread
>   CCLD     pcm-multi-thread
> /usr/bin/ld: pcm-multi-thread.o: undefined reference to symbol 'pthread_cancel@@GLIBC_2.2.5'
> //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
> collect2: error: ld returned 1 exit status
> Makefile:523: recipe for target 'pcm-multi-thread' failed
> make: *** [pcm-multi-thread] Error 1
> 
> This commit fixes the bug by adding a corresponding flag.
> 
> Fixes: 147093ac5b8d('test: Add pcm-multi-thread program')
> Signed-off-by: Takashi Sakamoto <o-takashi at sakamocchi.jp>

Applied, thanks.


Takashi


More information about the Alsa-devel mailing list