According to http://www.mail-archive.com/patches@linuxfromscratch.org/msg00009.html To Build alsa-utils with uclibc you will need the following patch. Other wise it will just fail because of a function. Reproducible: Always Steps to Reproduce: 1. Build a system using uclibc (embedded_gentoo e.g) 2. emerge alsa-utils 3. Wait for problem. Actual Results: alsamixer.c: In function `mixer_signal_handler': alsamixer.c:2210: error: `sys_siglist' undeclared (first use in this function) alsamixer.c:2210: error: (Each undeclared identifier is reported only once alsamixer.c:2210: error: for each function it appears in.) make[1]: *** [alsamixer.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/alsa-utils-1.0.9a/work/alsa-utils-1.0.9a/alsamixer' make: *** [all-recursive] Error 1 !!! ERROR: media-sound/alsa-utils-1.0.9a failed. !!! Function src_compile, Line 25, Exitcode 2 !!! make failed !!! If you need support, post the topmost build error, NOT this status message. Expected Results: Finished the build without any problem. dcmwaicom alsa-utils-1.0.9a # emerge info Portage 2.0.51.22-r2 (uclibc/x86, gcc-3.3.5-20050130, uclibc-0.9.27-r0, 2.6.12-gentoo-r6 i686) ================================================================= System uname: 2.6.12-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 1300MHz Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i386-gentoo-linux-uclibc" CFLAGS="-march=i586 -Os -pipe -fomit-frame-pointer" CHOST="i386-gentoo-linux-uclibc" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=i586 -Os -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg distlocks fixpackages nodoc noinfo noman sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="zh_TW.UTF-8" LC_ALL="zh_TW.UTF-8" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 alsa bitmap-fonts curl minimal mp3 ncurses ogg oss perl python readline truetype-fonts uclibc vorbis zlib userland_GNU kernel_linux elibc_uclibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Created attachment 66429 [details, diff] uclibc patch for alsa-utils-1.0.9a This patch seem to work. but I'm not too sure the effect on normal build.
You need the wordexp use flag enabled for uclibc.
*** Bug 105478 has been marked as a duplicate of this bug. ***
(In reply to comment #2) > You need the wordexp use flag enabled for uclibc. Makes the libc larger. If thsi lib is the ONLY one to use it - so far - wouldn't it be more wise to add this patch? Since uclibc is all about size and all... Who is to say that embedded apps/pc's souldn't have decent sound support? ;)
Created attachment 70318 [details, diff] alsa-utils-1.0.9a.ebuild.patch This patch is for sake of completeness after I did alsa-lib. It assumes the patch is called "alsa-utils-1.0.9a-uclibc.patch". Again, Why use wordexp when you can avoid it. This way you can safe space. Hope this makes it's way into portage...
no app should use sys_siglist[#] but always strsignal(#) ... is that the only change you needed to make to get alsa-utils to work ?
(In reply to comment #6) > change you needed to make to get alsa-utils to work ? Alsamixer works fine under uclibc here. They're build with the patches I posted.
(In reply to comment #7) > (In reply to comment #6) > > change you needed to make to get alsa-utils to work ? > > Alsamixer works fine under uclibc here. > They're build with the patches I posted. That is, That Chan Min Wai and I posted :}
ok, in this case wordexp support is unrelated
fixed in cvs then, thanks
wordexp.h problem is back for alsa-lib-1.0.10.
Created attachment 76421 [details, diff] Patch for alsa-lib-1.0.10 (updated) For the ebuild: if use uclibc ; then epatch ${FILESDIR}/alsa-lib-1.0.10_uclibc.patch || die "uclibc patch failed" fi eautoreconf
unrelated issue, file a new bug