aplay fails because of alsa-lib build issue with uclibc and versioned symbols - (Solution included)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
i had tried aplay before built statically with CodeSourcery toolchain and it worked successfully on my arm board.
when i tried aplay built shared with buildroot uclibc arm926ejs toolchain it failed with below error
mnt/mmc # aplay /home/default/10Sec_44.1K.wav
Playing WAVE '/home/default/10Sec_44.1K.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: set_params:1012: unable to install sw params:start_mode: DATAxrun_mode: STOPtstamp_mode: NONEperiod_step: 1sleep_min: 0avail_min: 0xfer_align: 10silence_threshold: 0silence_size: 0
boundary: 1073741824/mnt/mmc #
When i searched on the internet for below error, i found that this error is mainly related to alsa-lib and uclibc and it requires adding --with-versioned=no as an option to alsa-lib ./configure.
http://article.gmane.org/gmane.linux.alsa.devel/50595
i added the same to alsa-lib.mk and now its working fine.
./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \ --prefix=/usr \ --with-versioned=no \ --sysconfdir=/etc \ --enable-shared \ --enable-static \ --disable-docs \ $(DISABLE_NLS) \
Kindly can someone shed some light on this and if required can someone add patch to alsa-lib make file.
Thanks in advance
Regards
Gururaja
Hi,
I was recently faced to the same problem Gururaja encountered some times ago:
(my config is buildroot / uclibc / arm920)
Gururaja Hebbar K R a ?crit :
Quoted 10 lines
when i tried aplay built shared with buildroot uclibc arm926ejs toolchain it failed with below error
mnt/mmc # aplay
/home/default/10Sec_44.1K.wav
Playing WAVE '/home/default/10Sec_44.1K.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: set_params:1012: unable to install sw params:start_mode: DATA
...
aplay fails with a strange error...
Quoted 8 lines
When i searched on the internet for below error, i found that this error is mainly related to alsa-lib and uclibc and it requires adding --with-versioned=no as an option to alsa-lib ./configure.
http://article.gmane.org/gmane.linux.alsa.devel/50595
i added the same to alsa-lib.mk and now its working fine.
Quoted 13 lines
./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \ --prefix=/usr \ --with-versioned=no \ --sysconfdir=/etc \ --enable-shared \ --enable-static \ --disable-docs \ $(DISABLE_NLS) \
Gururaja suggested to add "--with-versioned=no" to alsa-lib configuration. It was the solution for me too, even if I have no idea why yet.
Do the "non-arm" people have the same problem ? Is it related to uclibc for all architectures ?
Should I open a bug report to see this problem corrected ?
Regards,
Julien
http://www.armadeus.com
----- Original Message -----
From: "Julien Boibessot" <[email protected]>
To: "Gururaja Hebbar K R" <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, July 16, 2008 5:47 PM
Subject: Re: [Buildroot] aplay fails because of alsa-lib build issue with uclibc and versioned symbols - (Solution included)
Quoted 39 lines
Hi,
I was recently faced to the same problem Gururaja encountered some times ago:
(my config is buildroot / uclibc / arm920)Gururaja Hebbar K R a ?crit :
Quoted 10 lines
when i tried aplay built shared with buildroot uclibc arm926ejs toolchain it failed with below error
mnt/mmc # aplay
/home/default/10Sec_44.1K.wav
Playing WAVE '/home/default/10Sec_44.1K.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: set_params:1012: unable to install sw params:start_mode: DATA
...aplay fails with a strange error...
Quoted 8 lines
When i searched on the internet for below error, i found that this error is mainly related to alsa-lib and uclibc and it requires adding --with-versioned=no as an option to alsa-lib ./configure.
http://article.gmane.org/gmane.linux.alsa.devel/50595
i added the same to alsa-lib.mk and now its working fine.
Quoted 13 lines
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/usr \
--with-versioned=no \
--sysconfdir=/etc \
--enable-shared \
--enable-static \
--disable-docs \
$(DISABLE_NLS) \
Quoted 5 lines
Gururaja suggested to add "--with-versioned=no" to alsa-lib configuration. It was the solution for me too, even if I have no idea why yet.
Do the "non-arm" people have the same problem ? Is it related to uclibc for all architectures ?
Yes! x86 have the same problem too and "--with-versioned=no" solves the problem.
Quoted 10 lines
Should I open a bug report to see this problem corrected ?
Regards,
Julien
http://www.armadeus.com
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
Regards,
Assen