Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103189 - alsa-utils build fail with uclibc
Summary: alsa-utils build fail with uclibc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-20 14:43 UTC by Chan Min Wai
Modified: 2006-01-06 16:54 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
uclibc patch for alsa-utils-1.0.9a (alsa-utils-1.0.9a.patch,501 bytes, patch)
2005-08-20 14:47 UTC, Chan Min Wai
Details | Diff
alsa-utils-1.0.9a.ebuild.patch (alsa-utils-1.0.9a.ebuild.patch,1.06 KB, patch)
2005-10-10 13:07 UTC, R. Bosch
Details | Diff
Patch for alsa-lib-1.0.10 (updated) (alsa-lib-1.0.10_uclibc.patch,2.81 KB, patch)
2006-01-06 16:40 UTC, Stefan de Konink
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chan Min Wai 2005-08-20 14:43:24 UTC
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
Comment 1 Chan Min Wai 2005-08-20 14:47:08 UTC
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.
Comment 2 Brian Jackson (RETIRED) gentoo-dev 2005-08-20 16:11:30 UTC
You need the wordexp use flag enabled for uclibc.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-09-10 04:26:56 UTC
*** Bug 105478 has been marked as a duplicate of this bug. ***
Comment 4 R. Bosch 2005-10-10 11:43:41 UTC
(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? ;)

Comment 5 R. Bosch 2005-10-10 13:07:10 UTC
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...
Comment 6 SpanKY gentoo-dev 2005-10-10 13:21:40 UTC
no app should use sys_siglist[#] but always strsignal(#) ... is that the only
change you needed to make to get alsa-utils to work ?
Comment 7 R. Bosch 2005-10-10 14:39:56 UTC
(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.
Comment 8 R. Bosch 2005-10-10 14:43:34 UTC
(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 :}
Comment 9 SpanKY gentoo-dev 2005-10-10 14:46:24 UTC
ok, in this case wordexp support is unrelated
Comment 10 SpanKY gentoo-dev 2005-10-10 14:54:43 UTC
fixed in cvs then, thanks
Comment 11 Stefan de Konink 2006-01-06 16:19:09 UTC
wordexp.h problem is back for alsa-lib-1.0.10.
Comment 12 Stefan de Konink 2006-01-06 16:40:55 UTC
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
Comment 13 SpanKY gentoo-dev 2006-01-06 16:54:54 UTC
unrelated issue, file a new bug