Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112705 - Cannot compile alsa-lib-1.0.10-rc3 in a ulibc based system
Summary: Cannot compile alsa-lib-1.0.10-rc3 in a ulibc based system
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
: 246704 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-16 07:51 UTC by Filippo Sallemi
Modified: 2009-01-16 00:16 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Filippo Sallemi 2005-11-16 07:51:02 UTC
compile error in file pcm_ladspa.c while compiling alsa-lib-1.0.10-rc3 in uclibc
system

 i386-gentoo-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I../../include
-I../../include -Os -pipe -MT pcm_hooks.lo -MD -MP -MF .deps/pcm_hooks.Tpo -c
pcm_hooks.c  -fPIC -DPIC -o .libs/pcm_hooks.o
 i386-gentoo-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I../../include
-I../../include -Os -pipe -MT pcm_hooks.lo -MD -MP -MF .deps/pcm_hooks.Tpo -c
pcm_hooks.c -o pcm_hooks.o >/dev/null 2>&1
if /bin/sh ../../libtool --mode=compile i386-gentoo-linux-uclibc-gcc
-DHAVE_CONFIG_H -I. -I. -I../../include -I../../include    -Os -pipe -MT
pcm_lfloat.lo -MD -MP -MF ".deps/pcm_lfloat.Tpo" \
  -c -o pcm_lfloat.lo `test -f 'pcm_lfloat.c' || echo './'`pcm_lfloat.c; \
then mv -f ".deps/pcm_lfloat.Tpo" ".deps/pcm_lfloat.Plo"; \
else rm -f ".deps/pcm_lfloat.Tpo"; exit 1; \
fi
 i386-gentoo-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I../../include
-I../../include -Os -pipe -MT pcm_lfloat.lo -MD -MP -MF .deps/pcm_lfloat.Tpo -c
pcm_lfloat.c  -fPIC -DPIC -o .libs/pcm_lfloat.o
 i386-gentoo-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I../../include
-I../../include -Os -pipe -MT pcm_lfloat.lo -MD -MP -MF .deps/pcm_lfloat.Tpo -c
pcm_lfloat.c -o pcm_lfloat.o >/dev/null 2>&1
if /bin/sh ../../libtool --mode=compile i386-gentoo-linux-uclibc-gcc
-DHAVE_CONFIG_H -I. -I. -I../../include -I../../include    -Os -pipe -MT
pcm_ladspa.lo -MD -MP -MF ".deps/pcm_ladspa.Tpo" \
  -c -o pcm_ladspa.lo `test -f 'pcm_ladspa.c' || echo './'`pcm_ladspa.c; \
then mv -f ".deps/pcm_ladspa.Tpo" ".deps/pcm_ladspa.Plo"; \
else rm -f ".deps/pcm_ladspa.Tpo"; exit 1; \
fi
 i386-gentoo-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I../../include
-I../../include -Os -pipe -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.10_rc3/work/alsa-lib-1.0.10rc3/src/pcm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/alsa-lib-1.0.10_rc3/work/alsa-lib-1.0.10rc3/src'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/alsa-lib-1.0.10_rc3 failed.
!!! Function src_compile, Line 46, Exitcode 2
!!! make failed                                                  

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

Actual Results:  
alsa-lib doesn't compile

Expected Results:  
alsa-lib should compile

Portage 2.0.51.22-r3 (uclibc/x86/2005.1, gcc-3.3.6, uclibc-0.9.27-r0,
2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1, 2.4.2
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.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-Os -pipe"
CHOST="i386-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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="-Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks nodoc noinfo noman sandbox sfperms
strict"GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 alsa bitmap-fonts bzip2 expat minimal ncurses pcre perl python readline
truetype-fonts type1-fonts uclibc udev zlib userland_GNU kernel_linux elibc_uclibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS,
PORTDIR_OVERLAY
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-11-17 03:47:54 UTC
This is matter for who manages uclibc, as I have no clue of if that can be 
fixed and how. 
 
Comment 2 solar (RETIRED) gentoo-dev 2005-11-17 04:46:03 UTC
You need to enable USE=wordexp in uclibc if you plan on using alsa.


--- From the ebuild ---
 # uncomment if you miss wordexp (alsa-lib)
 use wordexp && sed -i -e "s:# UCLIBC_HAS_WORDEXP is not
set:UCLIBC_HAS_WORDEXP=y:" .config

--- The use flag description ---
quse -D wordexp
 local:wordexp:sys-libs/uclibc: add support for word expansion (wordexp.h)

The wordexp function makes uclibc quite a bit bigger in size and it's pretty 
much only needed by alsa-lib, which is why it's not enabled per default.
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2009-01-15 22:04:34 UTC
*** Bug 246704 has been marked as a duplicate of this bug. ***
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-01-16 00:16:29 UTC
Just so people know, since quite a while you can disable plugins on a per-plugin basis, so you could actually just disable the ladspa plugin on uclibc.

On the other hand, the alsa-lib ebuild could add a specific USE-based dep _for just that plugin_ on wordexp when the glibc is uclibc. Up to the ALSA team now though.