Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6998: visibility problems on Mac OS X / GCC
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-06-19 12:40:19
#6998: visibility problems on Mac OS X / GCC
-------------------------------+--------------------------------------------
Reporter: mgaunard | Owner: vladimir_prus
Type: Bugs | Status: new
Milestone: To Be Determined | Component: program_options
Version: Boost 1.49.0 | Severity: Problem
Resolution: | Keywords: visibility gcc mac
-------------------------------+--------------------------------------------
Description changed by mgaunard:
Old description:
> When an application built with -fvisibility=hidden is linked against
> libboost_program_options.dylib (built with default visibility), the
> linker emits the following warning:
>
> {{{
> ld: warning: direct access in
> __static_initialization_and_destruction_0(int, int) to global weak symbol
> boost::program_options::options_description::~options_description() means
> the weak symbol cannot be overridden at runtime. This was likely caused
> by different translation units being compiled with different visibility
> settings.
> }}}
>
> Even if the two are built with different visibility settings the
> program_options headers should force whatever needs to be visible to be.
New description:
When an application built with -fvisibility=hidden is linked against
libboost_program_options.dylib (built with default visibility), the linker
emits the following warning:
ld: warning: direct access in
!__static_initialization_and_destruction_0(int, int) to global weak symbol
boost::program_options::options_description::~options_description() means
the weak symbol cannot be overridden at runtime. This was likely caused by
different translation units being compiled with different visibility
settings.
Even if the two are built with different visibility settings the
program_options headers should force whatever needs to be visible to be.
-- -- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6998#comment:1> 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:09 UTC