Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75986 - muse 0.9 build fails
Summary: muse 0.9 build fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-28 22:59 UTC by John Russell
Modified: 2005-01-21 13:29 UTC (History)
1 user (show)

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


Attachments
Ebuild solving the bug + version bump to 0.9.1 (muse-0.9.1.ebuild,1.23 KB, patch)
2005-01-08 09:09 UTC, Jens Lindemann
Details | Diff
Patch necessary for the ebuild (muse-0.9.1-include.patch,549 bytes, patch)
2005-01-08 09:09 UTC, Jens Lindemann
Details | Diff
Misc code fixes patch (muse-0.9.1-miscfixes.patch,1.87 KB, patch)
2005-01-20 06:16 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Russell 2004-12-28 22:59:54 UTC
muse 0.9 ebuild fails with this error:
pipe.cpp: In constructor `Pipe::Pipe(int)':
pipe.cpp:59: error: `errno' undeclared (first use this function)
pipe.cpp:59: error: (Each undeclared identifier is reported only once for each function it appears in.)
pipe.cpp: In member function `int Pipe::read_float_intl(int, float*, int)':
pipe.cpp:121: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp:123: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp:149: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp:150: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp: In member function `int Pipe::read_float_bidi(int, float**, int)':
pipe.cpp:227: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp:229: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp:256: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp:257: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp: In member function `int Pipe::mix16stereo(int, int32_t*)':
pipe.cpp:312: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp:314: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp:327: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp:328: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp: In member function `int Pipe::read(int, void*)':
pipe.cpp:375: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp:377: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp:384: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp:385: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp: In member function `int Pipe::write(int, void*)':
pipe.cpp:421: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp:425: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp:432: error: ISO C++ forbids cast to non-reference type used as lvalue
pipe.cpp:433: error: ISO C++ forbids cast to non-reference type used as lvalue
make[3]: *** [pipe.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/muse-0.9/work/MuSE-0.9/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/muse-0.9/work/MuSE-0.9/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/muse-0.9/work/MuSE-0.9'
make: *** [all] Error 2


Reproducible: Always
Steps to Reproduce:
1.ebuild muse
2.wait
3.

Actual Results:  
see details section for build error

Expected Results:  
successful build
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-12-29 00:51:36 UTC
attach the output of emerge --info
Comment 2 John Russell 2004-12-30 09:46:07 UTC
beethoven:~> emerge --info
Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10 i686)
=================================================================
System uname: 2.6.10 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec 23 2004, 01:06:00)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.9.3, 1.7.9, 1.6.3, 1.5, 1.8.5-r2
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/bugfixes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dfx X aac aalib acl acpi acpi4linux aim alsa apache2 apm arts avi berkdb bitmap-fonts bonobo bootsplash bzip2 c++ cairo cddb cdinstall cdparanoia cdr codecs cpdflib crypt cups dba dga divx4linux emacs encode escreen esd ethereal evo fam ffmpeg flac fluidsynth foomaticdb fortran freetype ftp gd gdbm gif gimp gimpprint gkrellm glade gmail gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal ieee1394 imagemagick imap imlib imlib2 ipv6 jabber jack java joystick jpeg junit kde ladcca ladspa leim libgda libwww lm_sensors mad mbox mikmod mmx mono motif mozcalendar mozdevelop mozilla mp3 mpeg mplayer msn mysql ncurses network nls nntp nptl nptlonly nvidia odbc offensive oggvorbis opengl oss pam pcre pda pdf pdflib perl php png portaudio posix ppds python qt quicktime readline real samba sdl session slang slp sockets spamassassin speex spell sqlite sse ssl svg svga tcltk tetex threads tiff timidity truetype truetype-fonts usb videos vim vim-pager vim-with-x voodoo3 winbind xfs xine xinerama xml xml2 xmms xscreensaver xv xvid yahoo zlib"
Comment 3 Jens Lindemann 2005-01-08 09:09:11 UTC
Created attachment 47944 [details, diff]
Ebuild solving the bug + version bump to 0.9.1

This can be fixed by adding -fpermissive to the CXXFLAGS which turns the errors
into warnings. As there was a new version available, I used it for the new
ebuild. Also had to fix two missing includes. 

(The muse-developer already knows about the problem, see
http://lists.dyne.org/muse/msg00819.php for details)
Comment 4 Jens Lindemann 2005-01-08 09:09:47 UTC
Created attachment 47945 [details, diff]
Patch necessary for the ebuild
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-01-20 06:16:13 UTC
Created attachment 49034 [details, diff]
Misc code fixes patch

The include patch isn't enough, at least with GCC 3.4. The attached patch fixes
invalid C++ syntax used, making MuSE compilable (tried to compile in an amd64
system, but the changes doesn't make differences for x86 systems, instead
64-bit system should now work, fixing the mismatch between gsize and guint).
Comment 6 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-21 13:29:55 UTC
patches added to portage tree. thanks!