From patchwork Fri Jul 2 11:46:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [build,doc,v3] Support Sun symbol versioning in libstdc++-v3, rev. 2 From: Rainer Orth X-Patchwork-Id: 57652 Message-Id: To: Paolo Carlini Cc: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org, Paolo Bonzini , Jonathan Wakely Date: Fri, 02 Jul 2010 13:46:14 +0200 Paolo Carlini writes: >> Rainer, are you *sure* that HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT >> is actually defined somewhere on, eg, linux, for use in gnu.ver etc? >> Because I did a quick build on x86_64-linux and inside the libstdc++-v3 >> build dir I only see >> _GLIBCXX_HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT defined, in >> config.h + _GLIBCXX__GLIBCXX_HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT >> in c++config.h. Something seems fishy... >> > And abi_check fails. Something is badly wrong on linux. Of course always > test on linux too when testing this kind of change!!!! Please fix > quickly or revert, thanks. I think I see now what's going on. The following patch should fix it: * There was a syntax error in acinclude.m4: a missing ;; in the default case. * I AC_DEFINE'd the _GLIBCXX_-prefixed symbol in acinclude.m4, while the files under src include c++config.h which adds another level of prefixing. Could you please test this for me? I don't have ready access to GNU/Linux. Sorry for the mess. Rainer diff -r 08cc828c8afb libstdc++-v3/acinclude.m4 --- a/libstdc++-v3/acinclude.m4 Mon Jun 28 16:33:40 2010 +0200 +++ b/libstdc++-v3/acinclude.m4 Fri Jul 02 13:43:56 2010 +0200 @@ -2998,9 +2998,9 @@ symvers_renaming=no ;; # Other platforms with GNU symbol versioning (GNU/Linux, more?) do. *) - AC_DEFINE(_GLIBCXX_HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT, 1, + AC_DEFINE(HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT, 1, [Define to 1 if the target runtime linker supports binding the same symbol to different versions.]) - symvers_renaming=yes + symvers_renaming=yes ;; esac fi GLIBCXX_CONDITIONAL(ENABLE_SYMVERS_SOL2, test $symvers_renaming = no)