Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105478 - alsa-lib-1.0.9 fails to compile with uclibc - no wordexp
Summary: alsa-lib-1.0.9 fails to compile with uclibc - no wordexp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-10 04:21 UTC by Rande Knight
Modified: 2006-02-28 20:44 UTC (History)
2 users (show)

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


Attachments
alsa-lib-1.0.9 uclibc patch (alsa-lib-glob.patch,2.86 KB, patch)
2005-09-10 04:23 UTC, Rande Knight
Details | Diff
alsa-lib-1.0.9-glob.patch (alsa-lib-1.0.9-glob.patch,3.34 KB, patch)
2005-10-10 12:09 UTC, R. Bosch
Details | Diff
alsa-lib-1.0.9.ebuild.patch (alsa-lib-1.0.9.ebuild.patch,946 bytes, patch)
2005-10-10 12:14 UTC, R. Bosch
Details | Diff
Two left overs (alsa-lib-1.0.10_uclibc.patch,494 bytes, patch)
2006-02-02 18: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 Rande Knight 2005-09-10 04:21:16 UTC
Uclibc doesn't use wordexp, and must use glob.

Reproducible: Always
Steps to Reproduce:
1. Using uclibc
2. emerge alsa-lib


Actual Results:  
 gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -Os -march=c3
-m3dnow -mmmx -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-MT pcm_ladspa.lo -MD -MP -MF .deps/pcm_ladspa.Tpo -c pcm_ladspa.c  -fPIC -DPIC
-o .libs/pcm_ladspa.o
pcm_ladspa.c:31:21: wordexp.h: No such file or directory
pcm_ladspa.c: In function `snd_pcm_ladspa_look_for_plugin':
pcm_ladspa.c:797: error: `wordexp_t' undeclared (first use in this function)
pcm_ladspa.c:797: error: (Each undeclared identifier is reported only once
pcm_ladspa.c:797: error: for each function it appears in.)
pcm_ladspa.c:797: error: syntax error before "we"
pcm_ladspa.c:804: error: `we' undeclared (first use in this function)
pcm_ladspa.c:804: error: `WRDE_NOCMD' undeclared (first use in this function)
pcm_ladspa.c:806: error: `WRDE_NOSPACE' undeclared (first use in this function)
make[2]: *** [pcm_ladspa.lo] Error 1
make[2]: Leaving directory
`/var/tmp/portage/alsa-lib-1.0.9/work/alsa-lib-1.0.9/src/pcm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/alsa-lib-1.0.9/work/alsa-lib-1.0.9/src'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/alsa-lib-1.0.9 failed.
!!! Function src_compile, Line 34, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 Rande Knight 2005-09-10 04:23:49 UTC
Created attachment 68099 [details, diff]
alsa-lib-1.0.9 uclibc patch

Tested with alsa-lib-1.0.9
Based on an older patch found on the web.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-09-10 04:26:56 UTC

*** This bug has been marked as a duplicate of 103189 ***
Comment 3 R. Bosch 2005-10-10 12:09:11 UTC
Created attachment 70309 [details, diff]
alsa-lib-1.0.9-glob.patch

Made sure it worked from within an ebuild.
Comment 4 R. Bosch 2005-10-10 12:14:47 UTC
Created attachment 70310 [details, diff]
alsa-lib-1.0.9.ebuild.patch

Patch for the ebuild "alsa-lib-1.0.9.ebuild" to compile without wordexp
support.

- Build system without wordexp support
- patch the als-lib ebuild
- add the alsa-lib-1.0.9-glob.patch in files directory
- ebuild alsa-lib-1.0.9.ebuild digest
- emerge ;)
Comment 5 SpanKY gentoo-dev 2006-01-22 12:44:13 UTC
not a dupe
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-02-02 09:21:07 UTC
I think the wordexp problem was fixed in 1.0.10 or 11_rcX, or is it still a problem?
Comment 7 solar (RETIRED) gentoo-dev 2006-02-02 09:29:21 UTC
There are two methods. 
1) the provided glob patch (which I like)
2) compile uclibc with USE=wordexp (which makes uclibc quite a bit bigger)
Comment 8 Stefan de Konink 2006-02-02 18:40:14 UTC
Created attachment 78774 [details, diff]
Two left overs

Two tiny leftovers in the 'almost' fixed RC.
Comment 9 SpanKY gentoo-dev 2006-02-28 20:44:49 UTC
added the left over patch to 1.0.11 ... thanks :)