# emerge wmsmixer Calculating dependencies ...done! >>> emerge (1 of 1) x11-plugins/wmsmixer-0.5 to / >>> md5 ;-) wmsmixer-0.5.tar.gz >>> Unpacking source... >>> Unpacking wmsmixer-0.5.tar.gz patching file wmsmixer.cc >>> Source unpacked. imake -DUseInstalled -I/usr/X11R6/lib/X11/config /usr/X11R6/lib/X11/config/linux.cf:305: warning: "BuildLibGlxWithoutPIC" redefined patching file Makefile Hunk #1 FAILED at 150. Hunk #2 succeeded at 881 (offset -6 lines). 1 out of 2 hunks FAILED -- saving rejects to file Makefile.rej c++ -O2 -fno-strength-reduce -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -c -o wmsmixer.o wmsmixer.cc rm -f wmsmixer gcc -o wmsmixer -O2 -fno-strength-reduce -L/usr/X11R6/lib wmsmixer.o -lXpm -lXext -lX11 wmsmixer.o(.text+0x3f8): In function `main': : undefined reference to `operator new(unsigned)' wmsmixer.o(.text+0x55f): In function `main': : undefined reference to `operator delete(void*)' wmsmixer.o(.text+0x7bf): In function `main': : undefined reference to `operator delete(void*)' wmsmixer.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status make: *** [wmsmixer] Error 1 !!! ERROR: x11-plugins/wmsmixer-0.5 failed. !!! Function src_compile, Line 32, Exitcode 2 !!! parallel make failed # emerge info Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r3) ================================================================= System uname: 2.4.20 i686 mobile AMD Athlon(tm) XP 1600+ GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages/marsas" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="directfb gdbm slang ggi -3dfx 3dnow aalib -acl acpi -afs -alsa -apache2 apm -arts -atlas avi berkdb -bonobo -canna cdr -cjk crypt -cups dga directf -doc dvd encode esd -etherial -evo -ev6 fbcon flash -freewnn -gb gif -gnome -gphoto2 gpm -gps gtk gtk2 -gtkhtml -guile -icc -icc-pgo -imap imlib innodb ipv6 -java -jikes jpeg -junit -kde -kerberos lcms -ldap -leim -libg++ -libgda libwww -matrox -maildir mbox mikmod mmx motif mozilla mpeg -mule mysql nas ncurses -nls -oav -oci8 -odbc oggvorbis opengl -oss pam pcmcia pdflib perl pic plotutils png -postgres python qt qtmt quicktime readline -ruby samba sasl -scanner sdl slan -slp -snmp -socks5 -spell sse ssl svga tcltk tcpd -tetex tiff -truetype usb -voodoo3 -wavelan wmf X xface xml xml2 xmms xv -zeo zlib x86" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=athlon-xp -O3 -pipe" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache" Reproducible: Always Steps to Reproduce:
looks like it's using gcc when it should be using g++
The makefile patch does not apply to the current source. I am attaching an updated file that should go in /usr/portage/x11-plugins/wmsmixer/files/
Created attachment 12424 [details, diff] makefile.diff This is the updated version of the current makefile.diff that is distributed with the ebuild as $FILESDIR/makefile.diff
fixed. many thanks.
seems it's still broken, shall I open new bug? bash-2.05b# emerge info Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r5) ================================================================= System uname: 2.4.20-gentoo-r5 i686 Celeron (Coppermine) ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi g /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="ftp://ftp.sunbay.crimea.ua/pub/FreeBSD http://gentoo.oregonstate .edu http://www.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 arts avi crypt cups encode foomaticdb gif imlib jpeg libg++ lib www mad mikmod mmx mpeg ncurses nls pdflib png qt quicktime sdl spell svga truet ype xml2 xmms xv zlib gdbm berkdb slang readline java X gpm tcpd pam ssl perl py thon oggvorbis gtk motif opengl -kde -gnome -alsa" bash-2.05b# emerge wmsmixer Calculating dependencies ...done! >>> emerge (1 of 1) x11-plugins/wmsmixer-0.5 to / >>> md5 src_uri ;-) wmsmixer-0.5.tar.gz >>> Unpacking source... >>> Unpacking wmsmixer-0.5.tar.gz to /var/tmp/portage/wmsmixer-0.5/work patching file wmsmixer.cc >>> Source unpacked. imake -DUseInstalled -I/usr/X11R6/lib/X11/config /usr/X11R6/lib/X11/config/linux.cf:323: warning: "BuildLibGlxWithoutPIC" redefined patching file Makefile Hunk #1 FAILED at 154. 1 out of 2 hunks FAILED -- saving rejects to file Makefile.rej c++ -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -c -o wmsmixer.o wmsmixer.cc rm -f wmsmixer gcc -o wmsmixer -O2 -fno-strength-reduce -fno-strict-aliasing -L/usr/X11R6/lib wmsmixer.o -lXpm -lXext -lX11 wmsmixer.o(.text+0x3f8): In function `main': : undefined reference to `operator new(unsigned)' wmsmixer.o(.text+0x55f): In function `main': : undefined reference to `operator delete(void*)' wmsmixer.o(.text+0x7bf): In function `main': : undefined reference to `operator delete(void*)' wmsmixer.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status make: *** [wmsmixer] Error 1 !!! ERROR: x11-plugins/wmsmixer-0.5 failed. !!! Function src_compile, Line 32, Exitcode 2 !!! parallel make failed bash-2.05b#
Created attachment 18032 [details, diff] correct makefile.diff for wmsmixer-0.5
all yours raker.. ;)
wmsmixer-0.5 has been updated in portage. Please test the build. :) No more makefile.diff My first fix was to add CC=g++ to the Imakefile so it propogated properly to the Makefile on running xmkmf but as there is no man page and the Makefile tries to install one I figured it'd just be easier to manually compile and install things. So anyway... I digress.
Tested