Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140579 - net-im/kopete-0.12.1 failed to compile with GCC 4.1
Summary: net-im/kopete-0.12.1 failed to compile with GCC 4.1
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
: 139723 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-15 16:57 UTC by Wai Ling
Modified: 2006-07-28 00:06 UTC (History)
1 user (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 Wai Ling 2006-07-15 16:57:25 UTC
Both Kopete-0.12.0 and Kopete-0.12.1 will not compile on my system, which uses GCC 4.1.  I don't have gcc 3.4 anymore, so I cannot test it out using another compile.  Here's the errors:

/usr/qt/3/bin/moc ./kopetepasswordwidget.h -o kopetepasswordwidget.moc
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../..  -DKDE_NO_COMPAT -DQT_NO_COMPAT -DQT_NO_CAST_ASCII -DQT_NO_ASCII_CAST -I../../../kopete/libkopete -I../../../kopete/libkopete -I../../../kopete/libkopete/avdevice -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/private -I/usr/kde/3.4/include -I/usr/qt/3/include -I.  -I/usr/kde/3.4/include -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -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 -O2 -march=i686 -mtune=athlon -pipe -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 kopetepasswordwidget.lo `test -f 'kopetepasswordwidget.cpp' || echo './'`kopetepasswordwidget.cpp
/usr/qt/3/bin/moc ./accountselector.h -o accountselector.moc
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../..  -DKDE_NO_COMPAT -DQT_NO_COMPAT -DQT_NO_CAST_ASCII -DQT_NO_ASCII_CAST -I../../../kopete/libkopete -I../../../kopete/libkopete -I../../../kopete/libkopete/avdevice -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/private -I/usr/kde/3.4/include -I/usr/qt/3/include -I.  -I/usr/kde/3.4/include -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -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 -O2 -march=i686 -mtune=athlon -pipe -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 accountselector.lo `test -f 'accountselector.cpp' || echo './'`accountselector.cpp
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../..  -DKDE_NO_COMPAT -DQT_NO_COMPAT -DQT_NO_CAST_ASCII -DQT_NO_ASCII_CAST -I../../../kopete/libkopete -I../../../kopete/libkopete -I../../../kopete/libkopete/avdevice -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/private -I/usr/kde/3.4/include -I/usr/qt/3/include -I.  -I/usr/kde/3.4/include -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -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 -O2 -march=i686 -mtune=athlon -pipe -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 kopeteviewplugin.lo `test -f 'kopeteviewplugin.cpp' || echo './'`kopeteviewplugin.cpp
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../..  -DKDE_NO_COMPAT -DQT_NO_COMPAT -DQT_NO_CAST_ASCII -DQT_NO_ASCII_CAST -I../../../kopete/libkopete -I../../../kopete/libkopete -I../../../kopete/libkopete/avdevice -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/private -I/usr/kde/3.4/include -I/usr/qt/3/include -I.  -I/usr/kde/3.4/include -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -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 -O2 -march=i686 -mtune=athlon -pipe -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 addresseeitem.lo `test -f 'addresseeitem.cpp' || echo './'`addresseeitem.cpp
/usr/kde/3.4/include/kresources/manager.h: In member function 
Comment 1 Wai Ling 2006-07-15 16:57:25 UTC
Both Kopete-0.12.0 and Kopete-0.12.1 will not compile on my system, which uses GCC 4.1.  I don't have gcc 3.4 anymore, so I cannot test it out using another compile.  Here's the errors:

/usr/qt/3/bin/moc ./kopetepasswordwidget.h -o kopetepasswordwidget.moc
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../..  -DKDE_NO_COMPAT -DQT_NO_COMPAT -DQT_NO_CAST_ASCII -DQT_NO_ASCII_CAST -I../../../kopete/libkopete -I../../../kopete/libkopete -I../../../kopete/libkopete/avdevice -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/private -I/usr/kde/3.4/include -I/usr/qt/3/include -I.  -I/usr/kde/3.4/include -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -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 -O2 -march=i686 -mtune=athlon -pipe -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 kopetepasswordwidget.lo `test -f 'kopetepasswordwidget.cpp' || echo './'`kopetepasswordwidget.cpp
/usr/qt/3/bin/moc ./accountselector.h -o accountselector.moc
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../..  -DKDE_NO_COMPAT -DQT_NO_COMPAT -DQT_NO_CAST_ASCII -DQT_NO_ASCII_CAST -I../../../kopete/libkopete -I../../../kopete/libkopete -I../../../kopete/libkopete/avdevice -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/private -I/usr/kde/3.4/include -I/usr/qt/3/include -I.  -I/usr/kde/3.4/include -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -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 -O2 -march=i686 -mtune=athlon -pipe -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 accountselector.lo `test -f 'accountselector.cpp' || echo './'`accountselector.cpp
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../..  -DKDE_NO_COMPAT -DQT_NO_COMPAT -DQT_NO_CAST_ASCII -DQT_NO_ASCII_CAST -I../../../kopete/libkopete -I../../../kopete/libkopete -I../../../kopete/libkopete/avdevice -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/private -I/usr/kde/3.4/include -I/usr/qt/3/include -I.  -I/usr/kde/3.4/include -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -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 -O2 -march=i686 -mtune=athlon -pipe -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 kopeteviewplugin.lo `test -f 'kopeteviewplugin.cpp' || echo './'`kopeteviewplugin.cpp
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../..  -DKDE_NO_COMPAT -DQT_NO_COMPAT -DQT_NO_CAST_ASCII -DQT_NO_ASCII_CAST -I../../../kopete/libkopete -I../../../kopete/libkopete -I../../../kopete/libkopete/avdevice -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/private -I/usr/kde/3.4/include -I/usr/qt/3/include -I.  -I/usr/kde/3.4/include -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -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 -O2 -march=i686 -mtune=athlon -pipe -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 addresseeitem.lo `test -f 'addresseeitem.cpp' || echo './'`addresseeitem.cpp
/usr/kde/3.4/include/kresources/manager.h: In member function QStringList KRES::Manager<T>::resourceTypeDescriptions() const:
/usr/kde/3.4/include/kresources/manager.h:338: error: ambiguous overload for operator+ in " (" + ((const KRES::Manager<T>*)this)->KRES::Manager<T>::mFactory->.KRES::Factory::typeDescription((* it))
/usr/qt/3/include/qstring.h:1072: note: candidates are: const QString operator+(QChar, const QString&) <near match>
/usr/qt/3/include/qstring.h:1080: note:                 const QString operator+(char, const QString&) <near match>
make[4]: *** [addresseeitem.lo] Error 1
make[4]: Leaving directory `/var/portage/portage/kopete-0.12.1/work/kopete-0.12.1/kopete/libkopete/ui'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/portage/portage/kopete-0.12.1/work/kopete-0.12.1/kopete/libkopete'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/portage/portage/kopete-0.12.1/work/kopete-0.12.1/kopete'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/portage/portage/kopete-0.12.1/work/kopete-0.12.1'
make: *** [all] Error 2

!!! ERROR: net-im/kopete-0.12.1 failed.
Call stack:
  ebuild.sh, line 1540:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  kopete-0.12.1.ebuild, line 122:   Called kde_src_compile
  kde.eclass, line 164:   Called kde_src_compile 'all'
  kde.eclass, line 306:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 302:   Called die

!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 2 Wai Ling 2006-07-15 16:57:38 UTC
emerge --info
=================================================================
Portage 2.1.1_pre1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r4, 2.6.16-gentoo-r12 i686)
=================================================================
System uname: 2.6.16-gentoo-r12 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.6.15
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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-r3
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=athlon -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -mtune=athlon -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_TW"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-xgl /usr/local/got /usr/local/proaudio"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X acpi alsa apache2 apm avi berkdb bitmap-fonts cairo cjk cli crypt cups dga divx4linux dlloader dri dvd dvdr emboss encode fastcgi flac font-server foomaticdb fortran gif gimp gimpprint glitz gphoto2 gpm gstreamer gtk gtk2 hal imlib input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_wacom ipv6 isdnlog jack java jpeg kde kdehiddenvisibility kipi ladcca lash latex lcms libg++ libwww lm_sensors mad mikmod mmap mmx motif mozilla mp3 mpeg ncurses nls nptl ogg opengl pam pcre pdflib perl png ppds pppd python qt qt3 qt4 quicktime radeon readline reflection samba sdl session spell spl sqlite3 sse ssl svg tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb video_cards_ati vorbis wmf xcomposite xml xmms xorg xscreensaver xv xvid zlib elibc_glibc kernel_linux linguas_zh_TW userland_GNU video_cards_fbdev video_cards_radeon video_cards_vesa video_cards_vga video_cards_v41"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-07-16 00:46:53 UTC
I'm afraid the problem is not with Kopete itself, the error is on one of kde 3.4's headers.

You probably won't be able to build KDE 3.4 with GCC 4.1 anyway, as there were quite a bit of fixes added in 3.5 release to allow it to build correctly; probably the simplest thing you can do is update your KDE to 3.5 version.
Comment 4 Wai Ling 2006-07-16 09:01:09 UTC
Upgrading KDE 3.5 may break other packages that use KDE-3.4.3 and it is very time consuming.  Beside, I don't have any reasons/need for using KDE-3.5.  3.4 works just fine for me.

Anyway, I realized I have a backup copy of gcc-3.4.4.  Using this version of gcc, kopete compiles just fine.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-07-16 11:16:12 UTC
Can't do much about this, if you really want KDE 3.4 you cannot use GCC 4.1, there are other bugs than this one.
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-07-28 00:06:59 UTC
*** Bug 139723 has been marked as a duplicate of this bug. ***