From: David Corbin <gentoo.org@machturtle.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Problem emerging kdebase
Date: Thu, 6 Jul 2006 19:12:42 -0400 [thread overview]
Message-ID: <200607061912.42314.gentoo.org@machturtle.com> (raw)
In-Reply-To: <7573e9640607041736w2d7953c8i5733c7af47444042@mail.gmail.com>
On Tuesday 04 July 2006 20:36, Richard Fish wrote:
> On 7/4/06, David Corbin <gentoo.org@machturtle.com> wrote:
> > Looking closer, my original copy of the error wasn't very complete.
> > There are screenfuls of undefined references to various std:: symbols.
> > Clearly my C++ library is messed up. How do I fix it?
>
Here's a sample of the output:
There are 36 "undefined reference to" errors.
quicklauncher.cpp:
(.gnu.linkonce.t._ZNSt8_Rb_treeI7QStringSt4pairIKS0_iESt10_Select1stIS3_ESt4lessIS0_ESaIS3_EE13insert_uniqueERKS3_+0xab):
undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
.libs/quicklauncher.o: In function `std::_Rb_tree<QString, std::pair<QString
const, int>, std::_Select1st<std::pair<QString const, int> >,
std::less<QString>, std::allocator<std::pair<QString const, int> >
>::insert_unique(std::_Rb_tree_iterator<std::pair<QString const, int> >,
std::pair<QString const, int> const&)':
quicklauncher.cpp:
(.gnu.linkonce.t._ZNSt8_Rb_treeI7QStringSt4pairIKS0_iESt10_Select1stIS3_ESt4lessIS0_ESaIS3_EE13insert_uniqueESt17_Rb_tree_iteratorIS3_ERKS3_+0x42):
undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
.libs/quicklauncher.o: In function `std::_Rb_tree<QuickButton*, QuickButton*,
std::_Identity<QuickButton*>, std::less<QuickButton*>,
std::allocator<QuickButton*> >::_M_insert(std::_Rb_tree_node_base*,
std::_Rb_tree_node_base*, QuickButton* const&)':
quicklauncher.cpp:
(.gnu.linkonce.t._ZNSt8_Rb_treeIP11QuickButtonS1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE9_M_insertEPSt18_Rb_tree_node_baseS9_RKS1_+0x67):
undefined reference to `std::_Rb_tree_insert_and_rebalance(bool,
std::_Rb_tree_node_base*, std::_Rb_tree_node_base*,
std::_Rb_tree_node_base&)'
.libs/quicklauncher.o: In function `std::_Rb_tree<QuickButton*, QuickButton*,
std::_Identity<QuickButton*>, std::less<QuickButton*>,
std::allocator<QuickButton*> >::insert_unique(QuickButton* const&)':
quicklauncher.cpp:
(.gnu.linkonce.t._ZNSt8_Rb_treeIP11QuickButtonS1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE13insert_uniqueERKS1_+0x9f):
undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
.libs/quicklauncher.o: In function `std::_Rb_tree<QString, std::pair<QString
const, QuickButton*>, std::_Select1st<std::pair<QString const, QuickButton*>
>, std::less<QString>, std::allocator<std::pair<QString const, QuickButton*>
> >::_M_insert(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*,
std::pair<QString const, QuickButton*> const&)':
quicklauncher.cpp:
(.gnu.linkonce.t._ZNSt8_Rb_treeI7QStringSt4pairIKS0_P11QuickButtonESt10_Select1stIS5_ESt4lessIS0_ESaIS5_EE9_M_insertEPSt18_Rb_tree_node_baseSD_RKS5_+0x87):
undefined reference to `std::_Rb_tree_insert_and_rebalance(bool,
std::_Rb_tree_node_base*, std::_Rb_tree_node_base*,
std::_Rb_tree_node_base&)'
.libs/quicklauncher.o: In function `std::_Rb_tree<QString, std::pair<QString
const, QuickButton*>, std::_Select1st<std::pair<QString const, QuickButton*>
>, std::less<QString>, std::allocator<std::pair<QString const, QuickButton*>
> >::insert_unique(std::pair<QString const, QuickButton*> const&)':
quicklauncher.cpp:
(.gnu.linkonce.t._ZNSt8_Rb_treeI7QStringSt4pairIKS0_P11QuickButtonESt10_Select1stIS5_ESt4lessIS0_ESaIS5_EE13insert_uniqueERKS5_+0xab):
undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
.libs/quicklauncher.o: In function `std::_Rb_tree<QString, std::pair<QString
const, QuickButton*>, std::_Select1st<std::pair<QString const, QuickButton*>
>, std::less<QString>, std::allocator<std::pair<QString const, QuickButton*>
> >::insert_unique(std::_Rb_tree_iterator<std::pair<QString const,
QuickButton*> >, std::pair<QString const, QuickButton*> const&)':
quicklauncher.cpp:
(.gnu.linkonce.t._ZNSt8_Rb_treeI7QStringSt4pairIKS0_P11QuickButtonESt10_Select1stIS5_ESt4lessIS0_ESaIS5_EE13insert_uniqueESt17_Rb_tree_iteratorIS5_ERKS5_+0x42):
undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
.libs/popularity.o: In function
`PopularityStatisticsImpl::normalizeHistory(PopularityStatisticsImpl::SingleFalloffHistory&)':
popularity.cpp:(.text+0x4f): undefined reference to
`std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
popularity.cpp:(.text+0x81): undefined reference to
`std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
.libs/popularity.o: In function
`PopularityStatisticsImpl::updateServiceRanks()':
popularity.cpp:(.text+0xf6d): undefined reference to
`std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
popularity.cpp:(.text+0x1128): undefined reference to
`std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
.libs/popularity.o: In function `PopularityStatistics::readConfig(Prefs*)':
popularity.cpp:(.text+0x17c9): undefined reference to
`std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
.libs/popularity.o:popularity.cpp:(.text+0x1821): more undefined references to
`std::_Rb_tree_increment(std::_Rb_tree_node_base*)' follow
.libs/popularity.o: In function `PopularityStatistics::moveToTop(QStringList
const&)':
popularity.cpp:(.text+0x209d): undefined reference to
`std::_List_node_base::hook(std::_List_node_base*)'
popularity.cpp:(.text+0x2101): undefined reference to
`std::_List_node_base::hook(std::_List_node_base*)'
popularity.cpp:(.text+0x2118): undefined reference to
`std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*,
std::_Rb_tree_node_base&)'
popularity.cpp:(.text+0x21af): undefined reference to
`std::_List_node_base::hook(std::_List_node_base*)'
popularity.cpp:(.text+0x2202): undefined reference to
`std::_List_node_base::hook(std::_List_node_base*)'
popularity.cpp:(.text+0x24f3): undefined reference to
`std::_List_node_base::hook(std::_List_node_base*)'
.libs/popularity.o: In function `std::_Rb_tree<QString, QString,
std::_Identity<QString>, std::less<QString>, std::allocator<QString>
>::erase(std::_Rb_tree_iterator<QString>, std::_Rb_tree_iterator<QString>)':
popularity.cpp:
(.gnu.linkonce.t._ZNSt8_Rb_treeI7QStringS0_St9_IdentityIS0_ESt4lessIS0_ESaIS0_EE5eraseESt17_Rb_tree_iteratorIS0_ES8_+0x54):
undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
popularity.cpp:
(.gnu.linkonce.t._ZNSt8_Rb_treeI7QStringS0_St9_IdentityIS0_ESt4lessIS0_ESaIS0_EE5eraseESt17_Rb_tree_iteratorIS0_ES8_+0x68):
undefined reference to
`std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*,
std::_Rb_tree_node_base&)'
.libs/popularity.o: In function `std::_Rb_tree<QString, QString,
std::_Identity<QString>, std::less<QString>, std::allocator<QString>
>::erase(QString const&)':
popularity.cpp:
(.gnu.linkonce.t._ZNSt8_Rb_treeI7QStringS0_St9_IdentityIS0_ESt4lessIS0_ESaIS0_EE5eraseERKS0_+0xa4):
undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
.libs/popularity.o: In function `std::_Rb_tree<QString, std::pair<QString
const, double>, std::_Select1st<std::pair<QString const, double> >,
std::less<QString>, std::allocator<std::pair<QString const, double> >
>::_M_insert(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*,
std::pair<QString const, double> const&)':
popularity.cpp:
(.gnu.linkonce.t._ZNSt8_Rb_treeI7QStringSt4pairIKS0_dESt10_Select1stIS3_ESt4lessIS0_ESaIS3_EE9_M_insertEPSt18_Rb_tree_node_baseSB_RKS3_+0x87):
undefined reference to `std::_Rb_tree_insert_and_rebalance(bool,
std::_Rb_tree_node_base*, std::_Rb_tree_node_base*,
std::_Rb_tree_node_base&)'
.libs/popularity.o: In function `std::_Rb_tree<QString, std::pair<QString
const, double>, std::_Select1st<std::pair<QString const, double> >,
std::less<QString>, std::allocator<std::pair<QString const, double> >
>::insert_unique(std::pair<QString const, double> const&)':
popularity.cpp:
(.gnu.linkonce.t._ZNSt8_Rb_treeI7QStringSt4pairIKS0_dESt10_Select1stIS3_ESt4lessIS0_ESaIS3_EE13insert_uniqueERKS3_+0xab):
undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
.libs/popularity.o: In function `std::_Rb_tree<QString, std::pair<QString
const, double>, std::_Select1st<std::pair<QString const, double> >,
std::less<QString>, std::allocator<std::pair<QString const, double> >
>::insert_unique(std::_Rb_tree_iterator<std::pair<QString const, double> >,
std::pair<QString const, double> const&)':
popularity.cpp:
(.gnu.linkonce.t._ZNSt8_Rb_treeI7QStringSt4pairIKS0_dESt10_Select1stIS3_ESt4lessIS0_ESaIS3_EE13insert_uniqueESt17_Rb_tree_iteratorIS3_ERKS3_+0x42):
undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*
> Can you post some of that output? In particular, look for things
> about missing "libstdc++.so.6".
Here's a grep on the output for libstdc++ .
configure: WARNING: Your libstdc++ doesn't appear to be patched for
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld:
warning: libstdc++.so.5, needed by /usr/qt/3/lib/libqt-mt.so, may conflict
with libstdc++.so.6
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld:
warning: libstdc++.so.5, needed by /usr/qt/3/lib/libqt-mt.so, may conflict
with libstdc++.so.6
> It might be just that you need to run
> fix_libtool_files.sh.
>
> If you truly think you have a broken C++ library, which is installed
> as part of gcc, I would suggest:
>
> 1. emerge --oneshot gcc
> 2. Use gcc-config to select the correct/current compiler
> 3. revdep-rebuild --library=libstdc++.so.6
>
I'll try those things out.
> The 3rd command will rebuild all programs and libraries that use C++
> on your system. The first 2 are mostly to make sure you have a usable
> C++
>
> -Richard
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2006-07-06 23:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-24 0:20 [gentoo-user] Problem emerging kdebase David Corbin
2006-06-24 16:45 ` Richard Fish
2006-07-01 21:10 ` David Corbin
2006-07-04 23:58 ` David Corbin
2006-07-05 0:36 ` Richard Fish
2006-07-06 23:12 ` David Corbin [this message]
2006-07-06 23:43 ` Richard Fish
2006-07-08 11:08 ` David Corbin
2006-10-11 4:03 ` Trenton Adams
2006-10-11 4:14 ` Bo Ørsted Andresen
2006-10-11 5:23 ` Trenton Adams
2006-10-11 5:29 ` Bo Ørsted Andresen
2006-10-11 18:38 ` Trenton Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200607061912.42314.gentoo.org@machturtle.com \
--to=gentoo.org@machturtle.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox