Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35266 - alsa-xmms-0.9.12 wont compile with alsa-lib-1.0.0rc1
Summary: alsa-xmms-0.9.12 wont compile with alsa-lib-1.0.0rc1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on: 35412
Blocks:
  Show dependency tree
 
Reported: 2003-12-07 09:36 UTC by alex f
Modified: 2004-01-03 04:58 UTC (History)
1 user (show)

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


Attachments
Fixes compilation for alsa-lib-1.0.0. (alsa-1.0.0-fix.patch,478 bytes, patch)
2003-12-07 20:06 UTC, Brian Harring (RETIRED)
Details | Diff
new ebuild applies patch (alsa-xmms-0.9.12-r1.ebuild,796 bytes, text/plain)
2003-12-13 20:07 UTC, j.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alex f 2003-12-07 09:36:41 UTC
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:
Comment 1 Mark Knecht 2003-12-07 10:00:33 UTC
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 # 
Comment 2 Brian Harring (RETIRED) gentoo-dev 2003-12-07 20:06:28 UTC
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
Comment 3 Brian Harring (RETIRED) gentoo-dev 2003-12-08 20:36:40 UTC
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.
Comment 4 Sebastian Voitzsch 2003-12-10 10:38:42 UTC
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
Comment 5 j. 2003-12-13 20:07:21 UTC
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
Comment 6 David Li 2003-12-26 15:32:40 UTC
Sweep seems to have the same isssue.
I posted this in bug 36550
Comment 7 Rene Androsch 2004-01-03 03:47:30 UTC
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?
Comment 8 Martin Holzer (RETIRED) gentoo-dev 2004-01-03 04:58:04 UTC
now in cvs

thx