public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/13686] New: Missing symbol in libstdc++ from std::map
@ 2004-01-14 21:19 bangerth at dealii dot org
2004-01-14 21:33 ` [Bug libstdc++/13686] " bangerth at dealii dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bangerth at dealii dot org @ 2004-01-14 21:19 UTC (permalink / raw)
To: gcc-bugs
I have a program that when compiled with present mainline and
run yields this message:
me-tomography/forward> ./forward
./forward: relocation error: /home/bangerth/p/deal.II/1/deal.II/lib/
libdeal_II_3d.so: symbol
_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_, version
GLIBCXX_3.4 not defined in file libstdc++.so.6 with link time reference
The missing symbol is
std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*,
std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)
This function is actually in libstdc++:
gcc-3.4-pre/lib> nm libstdc++.so | grep
_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_
00052770 T _ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_
So it looks like as if it was just not versioned or something.
Since the program is rather large and I have no experience with this
kind of bugs, I thought I'd first ask you libstdc++ people whether this
triggers something with someone. Maybe it is just missing from some kind
of versioning or linker script. If none of you can figure out what's going
wrong, I can still try to come up with something smaller, but I have no
clue where to start.
W.
--
Summary: Missing symbol in libstdc++ from std::map
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13686
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/13686] Missing symbol in libstdc++ from std::map
2004-01-14 21:19 [Bug libstdc++/13686] New: Missing symbol in libstdc++ from std::map bangerth at dealii dot org
@ 2004-01-14 21:33 ` bangerth at dealii dot org
2004-01-14 22:25 ` pinskia at gcc dot gnu dot org
2004-01-14 22:33 ` bangerth at dealii dot org
2 siblings, 0 replies; 4+ messages in thread
From: bangerth at dealii dot org @ 2004-01-14 21:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-01-14 21:33 -------
Actually, this wasn't even so hard. Take this example:
--------------------------
#include <map>
int main ()
{
std::map<int,int> m;
m[1] = 1;
}
--------------------------
This yields:
lib/base> /home/bangerth/bin/gcc-3.4-pre/bin/c++ x.cc
lib/base> ./a.out
./a.out: relocation error: ./a.out: symbol
_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_, version
GLIBCXX_3.4 not defined in file libstdc++.so.6 with link time reference
I'm on x86 linux, btw.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13686
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/13686] Missing symbol in libstdc++ from std::map
2004-01-14 21:19 [Bug libstdc++/13686] New: Missing symbol in libstdc++ from std::map bangerth at dealii dot org
2004-01-14 21:33 ` [Bug libstdc++/13686] " bangerth at dealii dot org
@ 2004-01-14 22:25 ` pinskia at gcc dot gnu dot org
2004-01-14 22:33 ` bangerth at dealii dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-14 22:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-14 22:25 -------
It runs just fine for me on a compiler built last night (yes I am on i686-pc-linux-gnu also), are you
sure that you are running with a new library in your LD_LIBRARY_PATH (which I have).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13686
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/13686] Missing symbol in libstdc++ from std::map
2004-01-14 21:19 [Bug libstdc++/13686] New: Missing symbol in libstdc++ from std::map bangerth at dealii dot org
2004-01-14 21:33 ` [Bug libstdc++/13686] " bangerth at dealii dot org
2004-01-14 22:25 ` pinskia at gcc dot gnu dot org
@ 2004-01-14 22:33 ` bangerth at dealii dot org
2 siblings, 0 replies; 4+ messages in thread
From: bangerth at dealii dot org @ 2004-01-14 22:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-01-14 22:33 -------
Yes, of course, how stupid. I have the libstdc++ from a tree-ssa in front :-(
Unfortunately, they are both versioned libstdc++.so.6.0.0. Maybe time
to bump the version number on tree-ssa just to prevent such accidents for
people who have many trees checked out at the same time?
W.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at tat dot physik
| |dot uni-tuebingen dot de
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13686
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-01-14 22:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-14 21:19 [Bug libstdc++/13686] New: Missing symbol in libstdc++ from std::map bangerth at dealii dot org
2004-01-14 21:33 ` [Bug libstdc++/13686] " bangerth at dealii dot org
2004-01-14 22:25 ` pinskia at gcc dot gnu dot org
2004-01-14 22:33 ` bangerth at dealii dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).