[Bug libstdc++/43968] undefined references to `std::{num_get, num_put, money_get, money_put} [...] ::id' with -static

2010-05-03 Thread ubizjak at gmail dot com
--- Comment #1 from ubizjak at gmail dot com 2010-05-03 08:14 --- The testcase: #include string #include iostream int main (int argc, char *argv[]) { std::string myStr = Hello, World!; std::cout myStr std::endl; return 0; } --

[Bug libstdc++/43968] undefined references to `std::{num_get, num_put, money_get, money_put} [...] ::id' with -static

2010-05-03 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2010-05-03 10:52 --- Before we do anything here, you should try to explain why the problem happens only on alpha, because on x86_64 it doesn't and those symbols are exported (V). Are the symbols exported on alpha? Are we

[Bug libstdc++/43968] undefined references to `std::{num_get, num_put, money_get, money_put} [...] ::id' with -static

2010-05-03 Thread ubizjak at gmail dot com
--- Comment #3 from ubizjak at gmail dot com 2010-05-03 11:46 --- (In reply to comment #2) Before we do anything here, you should try to explain why the problem happens only on alpha, because on x86_64 it doesn't and those symbols are exported (V). Are the symbols exported on alpha?

[Bug libstdc++/43968] undefined references to `std::{num_get, num_put, money_get, money_put} [...] ::id' with -static

2010-05-03 Thread ubizjak at gmail dot com
--- Comment #4 from ubizjak at gmail dot com 2010-05-03 11:50 --- As shown, these symbols are exported as u: `u' The symbol is a unique global symbol. This is a GNU extension to the standard set of ELF symbol bindings. For such a symbol the dynamic

[Bug libstdc++/43968] undefined references to `std::{num_get, num_put, money_get, money_put} [...] ::id' with -static

2010-05-03 Thread paolo dot carlini at oracle dot com
--- Comment #5 from paolo dot carlini at oracle dot com 2010-05-03 11:52 --- This is what I get on x86_64: nm libstdc++.a | grep _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE U _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE