Re: [Boost-bugs] [Boost C++ Libraries] #4594: Boost exception classes do not have GCC default visibility

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4594: Boost exception classes do not have GCC default visibility
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-07-15 17:31:16


#4594: Boost exception classes do not have GCC default visibility
------------------------------------------------------------+---------------
  Reporter: Jonathan Jones <jonathan.jones@…> | Owner: emildotchevski
      Type: Patches | Status: reopened
 Milestone: To Be Determined | Component: exception
   Version: Boost 1.47.0 | Severity: Showstopper
Resolution: | Keywords:
------------------------------------------------------------+---------------
Changes (by Ethan Tira-Thompson <ejt@…>):

 * cc: ejt@… (added)
  * status: closed => reopened
  * version: Boost 1.40.0 => Boost 1.47.0
  * resolution: fixed =>

Comment:

 I confirm Mark's error, I see the same error also with Boost 1.47
 (building Ogre3D on Xcode 4, gcc 4.2.1).

 I notice some visibility stuff was added to exception.hpp, but this is not
 enough. Apparently, error_info_injector and clone_impl (in
 exception/exception.hpp) both need to be wrapped with visibility pragmas
 in order to fix that error.

 Further, thread/exceptions.hpp also needs to be wrapped with visibility,
 or you will get:

 {{{ld: bad codegen, pointer diff in
 boost::thread_exception::thread_exception()to global weak symbol vtable
 for boost::thread_exceptionfor architecture i386}}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4594#comment:12>
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:07 UTC