Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19024 - imp3sh should use g++ for C++ link stage, not gcc
Summary: imp3sh should use g++ for C++ link stage, not gcc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Matt Keadle
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-09 00:28 UTC by Boyd Waters
Modified: 2003-06-18 22:10 UTC (History)
0 users

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 Boyd Waters 2003-04-09 00:28:35 UTC
default distro of media-sound/imp3sh fails to compile:

 # gcc  -march=pentium3 -O3 -pipe -Llib -o imp3sh -L./lib main.o dbuf.o buff.o
command.o intdec.o event.o tags.o info.o proc.o keys.o extdec.o list.o
listmanip.o listfile.o listlogic.o queue.o stream.o shell.o expl.o util.o
vorbis_codec.o vcedit.o -logg -lvorbis -lm -lvorbisfile -lxaudio -ldl -lncurses
-lvorbisenc
vorbis_codec.o(.text+0x3b4): In function `codec_new(XA_CodecInstance**, char
const*, char const*, XA_CodecModuleClassInfo*, XA_DecoderInfo*)':
: undefined reference to `operator new(unsigned)'
vorbis_codec.o(.text+0x414): In function `codec_new(XA_CodecInstance**, char
const*, char const*, XA_CodecModuleClassInfo*, XA_DecoderInfo*)':
: undefined reference to `__cxa_begin_catch'
vorbis_codec.o(.text+0x41f): In function `codec_new(XA_CodecInstance**, char
const*, char const*, XA_CodecModuleClassInfo*, XA_DecoderInfo*)':
: undefined reference to `__cxa_end_catch'
vorbis_codec.o(.text+0xf1): In function `VorbisCodec::~VorbisCodec [in-charge
deleting]()':
: undefined reference to `operator delete(void*)'
vorbis_codec.o(.gnu.linkonce.d._ZTI11VorbisCodec+0x0): undefined reference to
`vtable for __cxxabiv1::__class_type_info'
vorbis_codec.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status


RESOLUTION:

Replace 'gcc' with 'g++' in the link step to handle the C++ binary, vorbis_codec.o:

# g++  -march=pentium3 -O3 -pipe -Llib -o imp3sh -L./lib main.o dbuf.o buff.o
command.o intdec.o event.o tags.o info.o proc.o keys.o extdec.o list.o
listmanip.o listfile.o listlogic.o queue.o stream.o shell.o expl.o util.o
vorbis_codec.o vcedit.o -logg -lvorbis -lm -lvorbisfile -lxaudio -ldl -lncurses 



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




# emerge info
Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-xfs-r2 i686 Pentium III (Coppermine)
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
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow apm arts avi crypt cups encode gif jpeg kde libg++ libwww
mikmod mmx motif mpeg ncurses nls pdflib png qt quicktime sdl spell truetype
xml2 xmms xv zlib gdbm berkdb slang readline java X gpm tcpd pam ssl python
imlib oggvorbis gtk opengl acpi alsa cdr dga directfb doc fbcon -gnome gtk2 imap
junit ldap maildir nptl pcmcia pda perl sse -svga tetex tiff usb wmf xface"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-march=pentium3 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox buildpkg ccache distcc"
Comment 1 Boyd Waters 2003-04-09 00:32:00 UTC
The Changelog states:

*imp3sh-0.2.3 (16 Mar 2003)
  
  16 Mar 2003; Matt Keadle <mkeadle@gentoo.org> imp3sh-0.2.3.ebuild :

  There are currently issues with gcc 3.x. Author contacted.


Oops. Maybe I should read. ;-) Hopefully my report will help...
Comment 2 Matt Keadle 2003-06-18 22:10:21 UTC
this may be a dead project. no response from author and this release is now a year old. closing this bug for now to be potentially reopened later.