The error is: /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -I/usr/ include/xmms -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/incl ude -I/usr/X11R6/include -DPLUGINDRAIN=NULL -march=athlon-tbird -O2 -pipe -c -o init.lo `test -f init.c || echo './'`init.c audio.c: In function `alsa_setup': audio.c:649: warning: passing arg 3 of `snd_pcm_hw_params_set_rate_near' makes p ointer from integer without a cast audio.c:673: warning: passing arg 3 of `snd_pcm_hw_params_set_rate_near' makes p ointer from integer without a cast audio.c:682: warning: passing arg 3 of `snd_pcm_hw_params_set_buffer_time_near' makes pointer from integer without a cast audio.c:698: warning: passing arg 3 of `snd_pcm_hw_params_set_period_time_near' makes pointer from integer without a cast audio.c:707: too few arguments to function `snd_pcm_hw_params_get_buffer_size' audio.c:708: too few arguments to function `snd_pcm_hw_params_get_period_size' make[2]: *** [audio.lo] Fehler 1 make[2]: *** Warte auf noch nicht beendete Prozesse... gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -I/usr/include/xmms -I/usr/include/gtk-1.2 - I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -DPLUGINDRAI N=NULL -march=athlon-tbird -O2 -pipe -c init.c -MT init.lo -MD -MP -MF .deps/ini t.TPlo -fPIC -DPIC -o init.lo make[2]: Leaving directory `/var/tmp/portage/alsa-xmms-0.9.12/work/alsa-xmms-0.9 .12/src' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/var/tmp/portage/alsa-xmms-0.9.12/work/alsa-xmms-0.9 .12' make: *** [all] Fehler 2 !!! ERROR: media-plugins/alsa-xmms-0.9.12 failed. !!! Function src_compile, Line 391, Exitcode 2 !!! emake failed Reproducible: Always Steps to Reproduce:
Hi. I see that also on Alsa-1.0.0rc2. I would very much like to see this fixed as the xmms usage of Alsa-OSS is not working well at all on my hardware. Thanks. /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -I/usr/ include/xmms -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/incl ude -I/usr/X11R6/include -DPLUGINDRAIN=NULL -mcpu=athlon-xp -O3 -pipe -c -o init .lo `test -f init.c || echo './'`init.c audio.c: In function `alsa_setup': audio.c:649: warning: passing arg 3 of `snd_pcm_hw_params_set_rate_near' makes p ointer from integer without a cast audio.c:673: warning: passing arg 3 of `snd_pcm_hw_params_set_rate_near' makes p ointer from integer without a cast audio.c:682: warning: passing arg 3 of `snd_pcm_hw_params_set_buffer_time_near' makes pointer from integer without a cast audio.c:698: warning: passing arg 3 of `snd_pcm_hw_params_set_period_time_near' makes pointer from integer without a cast audio.c:707: error: too few arguments to function `snd_pcm_hw_params_get_buffer_ size' audio.c:708: error: too few arguments to function `snd_pcm_hw_params_get_period_ size' make[2]: *** [audio.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -I/usr/include/xmms -I/usr/include/gtk-1.2 - I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -DPLUGINDRAI N=NULL -mcpu=athlon-xp -O3 -pipe -c init.c -MT init.lo -MD -MP -MF .deps/init.TP lo -fPIC -DPIC -o init.lo make[2]: Leaving directory `/var/tmp/portage/alsa-xmms-0.9.12/work/alsa-xmms-0.9 .12/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/alsa-xmms-0.9.12/work/alsa-xmms-0.9 .12' make: *** [all] Error 2 !!! ERROR: media-plugins/alsa-xmms-0.9.12 failed. !!! Function src_compile, Line 391, Exitcode 2 !!! emake failed Wizard root # Wizard root # emerge info Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.4.20-gentoo-r9) ================================================================= System uname: 2.4.20-gentoo-r9 i686 AMD Athlon(TM) XP 2600+ Gentoo Base System version 1.4.3.11 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ libwww mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa gdbm berkdb slang readline arts aalib bonobo svga tcltk java guile X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gtk qt kde motif opengl mozilla cdr jack-caps" Wizard root #
Created attachment 21841 [details, diff] Fixes compilation for alsa-lib-1.0.0. There was a change in alsa-lib-1.0.0 ; basically you have to define a few values to allow for compilation to succed w/ the old alsa-lib HW paramaters api. This patch is just the necessary definitions if the alsa-lib version is >=1.0.0
I've created an eclass fixes this in a more general way (rather then having to create a crapload of package/version specific patches)- bug #35412.
This applies to almost all alsa-compatible packages. Had to add the #defines on esound-0.2.29, esound-0.2.32 too, for example (file audio_alsa09.c) Sebastian
Created attachment 22166 [details] new ebuild applies patch use this ebuild in conjuction with previously attached patch. patch contents would be in, e.g. /usr/local/portage/media-plugins/alsa-xmms/files/alsa-xmms-alsa-lib-1.0.patch
Sweep seems to have the same isssue. I posted this in bug 36550
Okay, what exactly do I have to do, to get rid of this problem? Could you please post a detail list of steps to do?
now in cvs thx