Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40370 - media-sound/xmms-1.2.9-r2 doesn't build with gcc-2.95
Summary: media-sound/xmms-1.2.9-r2 doesn't build with gcc-2.95
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-04 06:18 UTC by Tristan Henderson
Modified: 2004-02-15 05:42 UTC (History)
0 users

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


Attachments
recode-csa27 patch that works with gcc-2.95 (xmms-1.2.9-recode-csa27.patch,437.30 KB, patch)
2004-02-04 06:18 UTC, Tristan Henderson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tristan Henderson 2004-02-04 06:18:11 UTC
This may seem like deja vu :-)
Can't build media-sound/xmms-1.2.9-r2 on my gentoo-1.2 box. The problem this time is xmms-1.2.9-recode-csa27.patch - I've attached a fixed version.

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../xmms -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include -I/usr/include -I/usr/include -I../../intl -I../.. -mcpu=i686 -O3 -pipe -Wall -Wpointer-arith -finline-functions -fomit-frame-pointer -ffast-math -funroll-all-loops -c fileinfo.c -Wp,-MD,.deps/fileinfo.TPlo  -fPIC -DPIC -o fileinfo.lo
fileinfo.c: In function `vorbis_file_info_box':
fileinfo.c:590: warning: passing arg 2 of `g_list_prepend' discards qualifiers from pointer target type
fileinfo.c:919: parse error before `*'
fileinfo.c:920: `cfilename' undeclared (first use in this function)
fileinfo.c:920: (Each undeclared identifier is reported only once
fileinfo.c:920: for each function it appears in.)
make[3]: *** [fileinfo.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/xmms-1.2.9-r2/work/xmms-1.2.9/Input/vorbis'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xmms-1.2.9-r2/work/xmms-1.2.9/Input'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xmms-1.2.9-r2/work/xmms-1.2.9'
make: *** [all] Error 2

!!! ERROR: media-sound/xmms-1.2.9-r2 failed.
!!! Function src_compile, Line 142, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.50_pre21 (default-1.0, gcc-2.95.3, glibc-2.2.5-r9, 2.4.24)
==============================================================
===
System uname: 2.4.24 i686 Transmeta(tm) Crusoe(tm) Processor TM5800
Gentoo Base System version 1.4.3.12
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=i686 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config 
/usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ 
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ 
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=i686 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache digest sandbox strict"
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="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X X509 aalib alsa apache2 apm avi berkdb bonobo cdr crypt cups curses dga dvd emacs 
encode esd ethereal evo fbcon foomaticdb gdbm gif gnome-libs gpm gtk gtk2 gtkhtml guile imap 
imlib java jpeg lcms ldap libg++ libwww mmx motif mpeg mysql nas ncurses odbc oggvorbis oss 
pam pcmcia pda pdflib perl pic plotutils png pnp python quicktime readline samba sdl skey slang 
smooth snmp spell ssl stroke svga tcltk tcpd tetex tiff truetype trusted usb vim-with-x x86 xml xml2 
xmms xv zlib"
Comment 1 Tristan Henderson 2004-02-04 06:18:47 UTC
Created attachment 24940 [details, diff]
recode-csa27 patch that works with gcc-2.95
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-04 19:02:40 UTC
this is totally deja-vu.  I'll test out this updated patch once I get home tonight.

Thanks.
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-04 23:19:34 UTC
in portage cvs now...

Thanks again ;) ... and again... and aga
Comment 4 Tristan Henderson 2004-02-05 06:51:44 UTC
No, thank *YOU* for not ignoring us old-school gcc-2.95 users :-)
Comment 5 Imran Sher Rafique 2004-02-15 05:15:09 UTC
Not out of the woods yet :(

I am also experiencing problems in compiling xmms-1.2.9-r2, with gcc-2.95.3-r8. Relevant info is below - please let me know if I can provide anything else which may be of assistance.

Here are the gcc variables set in my /etc/make.conf:
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686 -march=i686 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-mcpu=i686 -march=i686 -O3 -pipe -fomit-frame-pointer"


Here are the USE flags affecting my build:
$ emerge -pv xmms
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild     U-] media-sound/xmms-1.2.8-r4 [1.2.7-r4] -xml +nls -esd -gnome +opengl -mmx +oggvorbis +3dnow -mikmod -directfb -ipv6 -cjk -gtk2 


And here is the error output from gcc (note that I have replaced repeated errors with '[...]'):

/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../xmms -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include  -I../../intl -I../..    -mcpu=i686 -march=i686 -O3 -pipe -fomit-frame-pointer -Wall -Wpointer-arith -finline-functions -fomit-frame-pointer -ffast-math -funroll-all-loops -c -o audio.lo `test -f 'audio.c' || echo './'`audio.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../xmms -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include -I../../intl -I../.. -mcpu=i686 -march=i686 -O3 -pipe -fomit-frame-pointer -Wall -Wpointer-arith -finline-functions -fomit-frame-pointer -ffast-math -funroll-all-loops -c audio.c -Wp,-MD,.deps/audio.TPlo  -fPIC -DPIC -o audio.lo
audio.c: In function `xrun_recover':
audio.c:123: warning: pointer of type `void *' used in arithmetic
[...]
audio.c: In function `alsa_get_mixer_elem':
audio.c:344: warning: pointer of type `void *' used in arithmetic
[...]
audio.c: In function `alsa_setup':
audio.c:841: warning: pointer of type `void *' used in arithmetic
[...]
audio.c:850: warning: pointer of type `void *' used in arithmetic
audio.c:920: warning: passing arg 3 of `snd_pcm_hw_params_set_channels_near' makes integer from pointer without a cast
audio.c:933: warning: passing arg 3 of `snd_pcm_hw_params_set_rate_near' makes integer from pointer without a cast
audio.c:952: warning: passing arg 3 of `snd_pcm_hw_params_set_buffer_time_near' makes integer from pointer without a cast
audio.c:961: warning: passing arg 3 of `snd_pcm_hw_params_set_period_time_near' makes integer from pointer without a cast
audio.c:976: too many arguments to function `snd_pcm_hw_params_get_buffer_size'
audio.c:984: warning: passing arg 2 of `snd_pcm_hw_params_get_period_size' from incompatible pointer type
audio.c:984: too many arguments to function `snd_pcm_hw_params_get_period_size'
audio.c:994: warning: pointer of type `void *' used in arithmetic
[...]
make[3]: *** [audio.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/xmms-1.2.9-r2/work/xmms-1.2.9/Output/alsa'
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-15 05:35:25 UTC
Imran, this is a different bug, but thanks for catching it... it looks like an alsa-0.9 / alsa-1 problem.

What version of alsa do you have installed?
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-15 05:42:11 UTC
actually... no... my first guess was wrong... it doesn't look to be an alsa-lib version problem.  Can you please open another bug and be sure to provide your version of alsa-lib and the output of 'emerge info'