Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90478 - musicbrainz-2.1.1 fails to compile with gcc-4
Summary: musicbrainz-2.1.1 fails to compile with gcc-4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
: 139286 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-26 04:12 UTC by Johannes Hirte
Modified: 2006-07-12 02:46 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 Johannes Hirte 2005-04-26 04:12:52 UTC
musicbrainz-2.1.1 fails to compile because of char* to int cast



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

Actual Results:  
if /bin/sh ../libtool --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H 
-I. -I. -I.. -I../include/musicbrainz    -O2 -march=k8 -pipe -ftracer -fweb 
-Wall -MT comsocket.lo -MD -MP -MF ".deps/comsocket.Tpo" -c -o comsocket.lo 
comsocket.cpp; \ 
then mv -f ".deps/comsocket.Tpo" ".deps/comsocket.Plo"; else rm -f 
".deps/comsocket.Tpo"; exit 1; fi 
if /bin/sh ../libtool --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H 
-I. -I. -I.. -I../include/musicbrainz    -O2 -march=k8 -pipe -ftracer -fweb 
-Wall -MT diskid.lo -MD -MP -MF ".deps/diskid.Tpo" -c -o diskid.lo diskid.cpp; 
\ 
then mv -f ".deps/diskid.Tpo" ".deps/diskid.Plo"; else rm -f 
".deps/diskid.Tpo"; exit 1; fi 
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include/musicbrainz 
-O2 -march=k8 -pipe -ftracer -fweb -Wall -MT comsocket.lo -MD -MP 
-MF .deps/comsocket.Tpo -c comsocket.cpp  -fPIC -DPIC -o .libs/comsocket.o 
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include/musicbrainz 
-O2 -march=k8 -pipe -ftracer -fweb -Wall -MT diskid.lo -MD -MP 
-MF .deps/diskid.Tpo -c diskid.cpp  -fPIC -DPIC -o .libs/diskid.o 
comhttpsocket.cpp: In member function 'int MBCOMHTTPSocket::NBRead(char*, int, 
int*, int)': 
comhttpsocket.cpp:197: error: cast from 'char*' to 'int' loses precision 
comhttpsocket.cpp:197: error: cast from 'char*' to 'int' loses precision 
make[2]: *** [comhttpsocket.lo] Error 1 
make[2]: *** Waiting for unfinished jobs.... 
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include/musicbrainz 
-O2 -march=k8 -pipe -ftracer -fweb -Wall -MT c_wrapper.lo -MD -MP 
-MF .deps/c_wrapper.Tpo -c c_wrapper.cpp -o c_wrapper.o >/dev/null 2>&1 
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include/musicbrainz 
-O2 -march=k8 -pipe -ftracer -fweb -Wall -MT comsocket.lo -MD -MP 
-MF .deps/comsocket.Tpo -c comsocket.cpp -o comsocket.o >/dev/null 2>&1 
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include/musicbrainz 
-O2 -march=k8 -pipe -ftracer -fweb -Wall -MT diskid.lo -MD -MP 
-MF .deps/diskid.Tpo -c diskid.cpp -o diskid.o >/dev/null 2>&1 
make[2]: Leaving directory 
`/var/tmp/portage/musicbrainz-2.1.1/work/libmusicbrainz-2.1.1/lib' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory 
`/var/tmp/portage/musicbrainz-2.1.1/work/libmusicbrainz-2.1.1' 
make: *** [all] Error 2 
 

Expected Results:  
build without any error 

Portage 2.0.51.20-r4 (default-linux/amd64/2005.0, gcc-4.0.0, glibc-2.3.5-r0, 
2.6.12-rc2 x86_64) 
================================================================= 
System uname: 2.6.12-rc2 x86_64 AMD Opteron(tm) Processor 144 
Gentoo Base System version 1.6.11 
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.4 [disabled] 
dev-lang/python:     2.3.5 
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.5 
sys-devel/binutils:  2.15.92.0.2-r8 
sys-devel/libtool:   1.5.14 
virtual/os-headers:  2.6.11 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-O2 -march=k8 -pipe -ftracer -fweb" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" 
CXXFLAGS="-O2 -march=k8 -pipe -ftracer -fweb" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig distlocks fixpackages sandbox strict" 
GENTOO_MIRRORS="ftp://ftp.tu-ilmenau.de/Mirrors/gentoo" 
MAKEOPTS="-j4" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="amd64 X acpi alsa apache2 avi berkdb bitmap-fonts bzlib cdr crypt cups 
curl dba dv dvd dvdread encode fam flac font-server fortran gcj gd gdbm gif 
gpm imagemagick imlib ipv6 java jp2 jpeg junit kde libwww lzw lzw-tiff mad 
motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl pam perl png 
posix python qt readline rtc samba sasl smime ssl tcpd tetex theora tiff 
truetype truetype-fonts type1-fonts usb userlocales vorbis xml2 xpm xrandr xv 
xvid zlib" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-27 00:21:50 UTC
Thanks, I've added a patch to -r1 of musicbrainz which fixes the compilation issue and should also fix the wrong behaviour it was having before.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-07-05 03:39:32 UTC
*** Bug 139286 has been marked as a duplicate of this bug. ***
Comment 3 Dizzy 2006-07-12 02:46:10 UTC
Ok so time has passed (a year and some) and -r1 is still not marked stable (not mentioning 2.1.2 which has a fix from the upstream).

So what about making stable -r1 or 2.1.2 for amd64 and other 64 bit machines for which 2.1.1 does not compile ?

Thanks!