[Boost-bugs] [Boost C++ Libraries] #11560: Error: Linker scopes may not change after symbol definition for serialization.

Subject: [Boost-bugs] [Boost C++ Libraries] #11560: Error: Linker scopes may not change after symbol definition for serialization.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-08-20 01:57:20


#11560: Error: Linker scopes may not change after symbol definition for
serialization.
------------------------------+---------------------------
 Reporter: lcarreon@… | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------
 This is my attempt to separate the serialization issues from the
 regex issues of ticket #11544.

 I compiled Boost 1.59.0 with Solaris Studio 12.4 in C++11 mode and I
 get the following error messages:

 "libs/serialization/src/basic_archive.cpp", line 45: Error: Linker scopes
 may only be more restrictive.
 "libs/serialization/src/basic_archive.cpp", line 79: Error: Linker scopes
 may only be more restrictive.
 "libs/serialization/src/basic_xml_archive.cpp", line 18: Error: Linker
 scopes may only be more restrictive.
 "libs/serialization/src/basic_xml_archive.cpp", line 22: Error: Linker
 scopes may only be more restrictive.
 "libs/serialization/src/void_cast.cpp", line 315: Error: Linker scopes may
 only be more restrictive.
 "libs/serialization/src/void_cast.cpp", line 349: Error: Linker scopes may
 only be more restrictive.

 My temporary solution was to delete the following lines from
 boost/config/compiler/sunpro_cc.hpp:

 {{{
 //
 // Dynamic shared object (DSO) and dynamic-link library (DLL) support
 //
 #if __SUNPRO_CC > 0x500
 # define BOOST_SYMBOL_EXPORT __global
 # define BOOST_SYMBOL_IMPORT __global
 # define BOOST_SYMBOL_VISIBLE __global
 #endif
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11560>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC