[Boost-bugs] [Boost C++ Libraries] #8607: Duplicate Symbols when using Parameter or Graph Library on HP-UX

Subject: [Boost-bugs] [Boost C++ Libraries] #8607: Duplicate Symbols when using Parameter or Graph Library on HP-UX
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-22 20:44:05


#8607: Duplicate Symbols when using Parameter or Graph Library on HP-UX
----------------------------------------------------+-----------------------
 Reporter: James Hugard <james_hugard@…> | Owner: danielw
     Type: Patches | Status: new
Milestone: To Be Determined | Component: parameter
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: HP-UX hpux hppa link linker gcc |
----------------------------------------------------+-----------------------
 On HP-UX 11i v2 (B.11.23), using gcc 4.0.1 and the native linker (ld
 B.11.59)

 When linking a shared library which has multiple object files using the
 Boost Graph library or other code using the Parameter library, the link
 process fails with several dozen "duplicate symbol" errors, such as:

 [18:50:06]/usr/ccs/bin/ld: Duplicate symbol
 "boost::graph::keywords::(anonymous namespace)::_vertices_equivalent" in
 files .libs/a.o and .libs/b.o

 Root cause seems to be that the linker has an issue collapsing variables
 defined with a templated type into a single definition; specifically when
 boost/parameter/name.hpp is included in multiple files.

 This also appears to be an issue with versions of MSVC before 1300.

 The attached patch file corrects the issue by enabling the same fix for
 MSVC <1300 when compiled on HPPA systems.

 Note that this issue does not appear on HPUX 11.23 Itanium (ia64), which
 has a different native linker implementation.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8607>
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:13 UTC