[Bug libstdc++/54314] [4.8 Regression] undefined references to 'construction vtable for std::ostream-in-std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'

bkoz at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 26 19:06:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54314

Benjamin Kosnik <bkoz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bkoz at gcc dot gnu.org

--- Comment #13 from Benjamin Kosnik <bkoz at gcc dot gnu.org> 2012-09-26 19:06:12 UTC ---

Hey P, I think you mean:

diff --git a/libstdc++-v3/config/abi/pre/gnu.ver
b/libstdc++-v3/config/abi/pre/g
index 5265b21..396feec 100644
--- a/libstdc++-v3/config/abi/pre/gnu.ver
+++ b/libstdc++-v3/config/abi/pre/gnu.ver
@@ -1322,6 +1322,7 @@ GLIBCXX_3.4.17 {
 } GLIBCXX_3.4.16;

 GLIBCXX_3.4.18 {
+
   global:

     # Names inside the 'extern' block are demangled names.
@@ -1330,6 +1331,9 @@ GLIBCXX_3.4.18 {
       std::random_device::*;
     };

+    # construction vtable
+    _ZTCSt*;
+
 } GLIBCXX_3.4.17;

 # Symbols in the support library (libsupc++) have their own tag.


ie, not in CXXABI for std:: non-support things.

This is an interesting thread thanks for the info Kai, very informative. The
analysis looks good and patch looks correct, modulo above.

Anyway, i have to add this export to gnu-versioned as well, so if it's ok with
you I'll check in this modified patch along with the gnu-versioned-namespace
one.

best,
Benjamin



More information about the Gcc-bugs mailing list