Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34942 - libao fails with the new alsa
Summary: libao fails with the new alsa
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Git (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on: 35412
Blocks:
  Show dependency tree
 
Reported: 2003-12-02 16:51 UTC by merwan kashouty
Modified: 2011-10-30 22:47 UTC (History)
1 user (show)

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


Attachments
Patch to compile against alsa 1.0 (libao-alsa-1.0.patch,277 bytes, patch)
2003-12-05 02:53 UTC, jack_mort
Details | Diff
Updated ebuild to use alsa 1.0 patch (libao-0.8.4.ebuild,854 bytes, text/plain)
2003-12-05 02:54 UTC, jack_mort
Details

Note You need to log in before you can comment on or make changes to this bug.
Description merwan kashouty 2003-12-02 16:51:26 UTC
was in #gentoo and user posted soem output of a failed libao emerge and i ahd
just finished upgrading alsa... trying a re-emerge of libao it also fails for me 


if /bin/sh ../../../libtool --mode=compile gcc -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libao\" -DVERSION=\"0.8.4\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBPTHREAD=1
-DDLOPEN_FLAG=\(RTLD_NOW\ \|\ RTLD_GLOBAL\) -DSHARED_LIB_EXT=\".so\"
-DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_SYS_SOUNDCARD_H=1
-DBROKEN_OSS=1  -I. -I. -I../../../include/ao -I../../../include    -O20
-ffast-math -D_REENTRANT -fsigned-char -march=athlon-xp -Os -pipe
-fomit-frame-pointer -MT ao_alsa09.lo -MD -MP -MF ".deps/ao_alsa09.Tpo" \
  -c -o ao_alsa09.lo `test -f 'ao_alsa09.c' || echo './'`ao_alsa09.c; \
then mv ".deps/ao_alsa09.Tpo" ".deps/ao_alsa09.Plo"; \
else rm -f ".deps/ao_alsa09.Tpo"; exit 1; \
fi
mkdir .libs
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libao\"
-DVERSION=\"0.8.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DHAVE_LIBPTHREAD=1 "-DDLOPEN_FLAG=(RTLD_NOW | RTLD_GLOBAL)"
-DSHARED_LIB_EXT=\".so\" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4
-DHAVE_SYS_SOUNDCARD_H=1 -DBROKEN_OSS=1 -I. -I. -I../../../include/ao
-I../../../include -O20 -ffast-math -D_REENTRANT -fsigned-char -march=athlon-xp
-Os -pipe -fomit-frame-pointer -MT ao_alsa09.lo -MD -MP -MF .deps/ao_alsa09.Tpo
-c ao_alsa09.c  -fPIC -DPIC -o .libs/ao_alsa09.lo
ao_alsa09.c: In function `alsa_set_hwparams':
ao_alsa09.c:234: warning: passing arg 3 of `snd_pcm_hw_params_set_rate_near'
makes pointer from integer without a cast
ao_alsa09.c:241: warning: passing arg 3 of
`snd_pcm_hw_params_set_buffer_time_near' makes pointer from integer without a cast
ao_alsa09.c:256: warning: passing arg 3 of
`snd_pcm_hw_params_set_period_time_near' makes pointer from integer without a cast
ao_alsa09.c:267: error: too few arguments to function
`snd_pcm_hw_params_get_period_size'
ao_alsa09.c:270: error: too few arguments to function
`snd_pcm_hw_params_get_buffer_size'
make[3]: *** [ao_alsa09.lo] Error 1
make[3]: Leaving directory
`/var/tmp/portage/libao-0.8.4/work/libao-0.8.4/src/plugins/alsa09'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/libao-0.8.4/work/libao-0.8.4/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libao-0.8.4/work/libao-0.8.4/src'
make: *** [all-recursive] Error 1
 
!!! ERROR: media-libs/libao-0.8.4 failed.
!!! Function src_compile, Line 24, Exitcode 2
!!! (no error message)
 


Reproducible: Always
Steps to Reproduce:
1.have media-sound/alsa-driver-1.0.0_rc1 installed and emerge libao

2.
3.
Comment 1 Thomas T. Veldhouse 2003-12-04 18:57:37 UTC
A very simple workaround is:

# emerge unmerge alsa-lib
# emerge libao
# emerge alsa-lib
Comment 2 jack_mort 2003-12-05 02:53:53 UTC
Created attachment 21736 [details, diff]
Patch to compile against alsa 1.0

Here's a patch I found by googling around.
Comment 3 jack_mort 2003-12-05 02:54:47 UTC
Created attachment 21737 [details]
Updated ebuild to use alsa 1.0 patch
Comment 4 jack_mort 2003-12-05 02:55:22 UTC
With the two attachments, libao compiled fine. Good luck ;-)
Comment 5 jack_mort 2003-12-05 02:58:30 UTC
I forgot to mention where I found this patch : http://codex.sourcemage.org/test/audio-libs/libao/
Comment 6 Markus Nigbur (RETIRED) gentoo-dev 2003-12-07 04:34:43 UTC
heh. just fixed this in cvs with a patch from the same source :)
Thanks for reporting anyway.