Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115523 - media-plugins/kipi-plugins-0.1.0_beta2 build fails with undefined reference to `std::basic_istream
Summary: media-plugins/kipi-plugins-0.1.0_beta2 build fails with undefined reference ...
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 159411 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-14 05:22 UTC by Martin Klaffenboeck
Modified: 2006-12-29 16:04 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 Martin Klaffenboeck 2005-12-14 05:22:56 UTC
Hi there!

Maybe a missing dependency, I don't know:

I build kipi-plugin and it fails with:

/bin/sh ../../libtool --silent --mode=link --tag=CXX i686-pc-linux-gnu-g++ 
-Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W
-Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i686
-Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new
-fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION    -o kipiplugin_imagesgallery.la -rpath /usr/lib/kde3
-module -avoid-version -module -no-undefined -Wl,--no-undefined
-Wl,--allow-shlib-undefined -R /usr/lib -R /usr/kde/3.4/lib -R /usr/qt/3/lib -R
/usr/lib  -L/usr/kde/3.4/lib -L/usr/qt/3/lib -L/usr/lib   
plugin_imagesgallery.lo imgallerydialog.lo imagesgallery.lo exifrestorer.lo
-lkparts -lkipi
.libs/exifrestorer.o: In function `ExifRestorer::readFile(QString const&,
ExifRestorer::ReadMode)':exifrestorer.cpp:(.text+0x16ea): undefined reference to
`std::basic_istream<char, std::char_traits<char> >::seekg(long long,
std::_Ios_Seekdir)'
collect2: ld returned 1 exit status
distcc[7366] ERROR: compile (null) on localhost failed
make[3]: *** [kipiplugin_imagesgallery.la] Fehler 1
make[3]: Leaving directory
`/var/tmp/portage/kipi-plugins-0.1.0_beta2/work/kipi-plugins-0.1.0-beta2/kipi-plugins/imagesgallery'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory
`/var/tmp/portage/kipi-plugins-0.1.0_beta2/work/kipi-plugins-0.1.0-beta2/kipi-plugins'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory
`/var/tmp/portage/kipi-plugins-0.1.0_beta2/work/kipi-plugins-0.1.0-beta2'
make: *** [all] Fehler 2

I hope you can help me.

Thanks,
Martin

Reproducible: Always
Steps to Reproduce:
1. emerge kiki-plugins

media-plugins/kipi-plugins-0.1.0_beta2 




Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 Mobile AMD Sempron(tm) Processor 2800+
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
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.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686"
CHOST="i686-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/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=i686"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://130.59.10.35/mirror/gentoo/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
ftp://ftp.linux.ee/pub/gentoo/distfiles/
http://212.219.56.131/sites/www.ibiblio.org/gentoo/
ftp://194.117.143.72/mirrors/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acl acpi aim alsa apache2 apm audiofile avi berkdb bidi bitmap-fonts
blas bonobo bzip2 cddb chroot crypt cups curl dba devfs26 dga dhcp disablexmb
doc dv dvd dvdr dvdread edl eds emacs emboss encode evo exif expat ext-png
extensions fam fame fastcgi ffmpeg flash flatfile fmod foomaticdb fortran ftp
gcj gd gdbm gif gimp gimpprint glade glut gmail gnome gnomedb gphoto2 gpm
graphviz gs gstreamer gtk gtk2 gtkhtml guile hal iconv idea idn image
imagemagick imap imlib imlib2 innodb intl ipalias ipv6 irmc java jpeg junit kde
latex lcms ldap leim libg++ libgda libwww live lmtp lzo mad maildir mbox md5sum
mdb mhash mikmod mime ming mmx mng mono motif moznocompose moznoirc moznomail
moznoxft mozsvg mp3 mpeg mpeg4 mpi mplayer msdav msn mule music mysql mythtv
ncurses nls nntp no-old-linux nojoystick nvidia ofx ogg oggvorbis openal opengl
openssh oss pam parse-clocks pcntl pcre pdf pdfkit pdflib pg-hier pg-vacuumdelay
php plugin png posix ppds print procmail python quicktime readline recode rtc
samba sasl scanner sdl session simplexml smime sndfile soap spamassassin spell
sqlite ssl svg t1lib tcltk tcpd tetex tga theora tidy tiff tokenizer transcode
truetype truetype-fonts type1 type1-fonts udev unicode usb utf8 v4l2 vcd vhosts
videos vorbis wddx webdav wifi wmf xfs xine xml xml2 xmlrpc xscreensaver xsl
xslt xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc"Unset:  ASFLAGS,
CTARGET, LDFLAGS, LINGUAS
Comment 1 Juergen Nagel 2006-01-16 16:01:25 UTC
I experience the same error. In my case, however, the error occurs with kipi-plugins-0.1.0-rc1.


make[3]: Entering directory `/var/tmp/portage/kipi-plugins-0.1.0_rc1/work/kipi-plugins-0.1.0-rc1/kipi-plugins/imagesgallery'
/usr/qt/3/bin/moc ./plugin_imagesgallery.h -o plugin_imagesgallery.moc
/usr/qt/3/bin/moc ./imgallerydialog.h -o imgallerydialog.moc
/usr/qt/3/bin/moc ./imagesgallery.h -o imagesgallery.moc
/bin/sh ../../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I/usr/kde/3.4/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -O2 -pipe -fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -frename-registers -funit-at-a-time -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o exifrestorer.lo exifrestorer.cpp
/bin/sh ../../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I/usr/kde/3.4/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -O2 -pipe -fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -frename-registers -funit-at-a-time -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o plugin_imagesgallery.lo plugin_imagesgallery.cpp
/bin/sh ../../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I/usr/kde/3.4/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -O2 -pipe -fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -frename-registers -funit-at-a-time -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o imgallerydialog.lo imgallerydialog.cpp
/bin/sh ../../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I/usr/kde/3.4/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -O2 -pipe -fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -frename-registers -funit-at-a-time -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o imagesgallery.lo imagesgallery.cpp
/bin/sh ../../libtool --silent --tag=CXX --mode=link i686-pc-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -O2 -pipe -fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -frename-registers -funit-at-a-time -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o kipiplugin_imagesgallery.la -rpath /usr/lib/kde3 -module -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /usr/lib -R /usr/kde/3.4/lib -R /usr/qt/3/lib -R /usr/lib  -L/usr/kde/3.4/lib -L/usr/qt/3/lib -L/usr/lib    plugin_imagesgallery.lo imgallerydialog.lo imagesgallery.lo exifrestorer.lo -lkparts -lkipi
.libs/exifrestorer.o: In function `ExifRestorer::readFile(QString const&, ExifRestorer::ReadMode)':
exifrestorer.cpp:(.text+0x1736): undefined reference to `std::basic_istream<char, std::char_traits<char> >::seekg(long long, std::_Ios_Seekdir)'
collect2: ld returned 1 exit status
make[3]: *** [kipiplugin_imagesgallery.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/kipi-plugins-0.1.0_rc1/work/kipi-plugins-0.1.0-rc1/kipi-plugins/imagesgallery'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kipi-plugins-0.1.0_rc1/work/kipi-plugins-0.1.0-rc1/kipi-plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kipi-plugins-0.1.0_rc1/work/kipi-plugins-0.1.0-rc1'
make: *** [all] Error 2

!!! ERROR: media-plugins/kipi-plugins-0.1.0_rc1 failed.
!!! Function kde_src_compile, Line 175, Exitcode 2
!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, NOT this status message.


Portage 2.0.53 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm) XP 2100+
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
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.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -frename-registers -funit-at-a-time"
CHOST="i686-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 /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="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -frename-registers -funit-at-a-time"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source http://mirror.hamakor.org.il/pub/mirrors/gentoo            ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tiscali.nl/pub/mirror/gentoo                 http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo           http://ftp.tugraz.at/pub/mirror/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="de_DE.utf8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage.local"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac acl acpi alsa apm audiofile avi bash-completion berkdb bitmap-fonts bzip2 caps cdparanoia cdr cjk crypt cscope cups curl dbus dts dvd emboss encode ethereal exif expat fam ffmpeg flac foomaticdb fortran gd gdbm ggi gif glut gmp gnutls gphoto2 gtk gtk2 hal hardened idn imagemagick imap imlib ipv6 jabber java jikes jpeg junit kde kdeenablefinal kdexdeltas lcms ldap lesstif libg++ libwww lm_sensors mad matroska mikmod mmx mng motif mozsvg mp3 mpeg mysql ncurses nptl odbc ogg oggvorbis opengl oss pam pcre pdflib perl pic png postgres ppds python qt quicktime rdesktop readline recode ruby samba sasl scanner sdl slang slp speex spell sse ssl svg svga tcltk tetex theora threads tidy tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis win32codecs wmf wxwindows xine xinerama xml2 xosd xv xvid zlib linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS
Comment 2 rob miller 2006-04-27 06:32:46 UTC
the compile completes with gcc-3.3.6 instead of gcc-3.4.5 on my system (see gcc-config).

rob.
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2006-04-30 09:12:39 UTC
You can't mix c++ libs compiles with gcc 3.3 and 3.4. After upgrading you have to rebuild them all.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-12-29 13:09:24 UTC
*** Bug 159411 has been marked as a duplicate of this bug. ***
Comment 5 Benjamin Schulz 2006-12-29 14:11:04 UTC
can someone tell me what to do?
eg what I have to rebuild? 
Thanks, Benni
Comment 6 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-12-29 16:04:48 UTC
(In reply to comment #5)
> can someone tell me what to do?
> eg what I have to rebuild? 
> Thanks, Benni

Follow the gcc upgrade guide: 

http://www.gentoo.org/doc/en/gcc-upgrading.xml