[Boost-bugs] [Boost C++ Libraries] #11459: cannot compile date_time_format_parser.cpp

Subject: [Boost-bugs] [Boost C++ Libraries] #11459: cannot compile date_time_format_parser.cpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-07-09 17:41:37


#11459: cannot compile date_time_format_parser.cpp
-------------------------------------------+---------------------
 Reporter: Aparna Kumta <aparna.kumta@…> | Owner: andysem
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: log
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------------+---------------------
 Compiling date_time_format_parser.cpp on SunOS with Oracle Solaris
 Studio12.4, we see

 /ws/pythia/builds/pse/m7/biweekly/latest/inst/sparc-S2/bin/CC -compat=5
 -library=stlport4 -xO4 -mt -erroff=%none -m64 -KPIC -DBOOST_ALL_NO_LIB=1
 -DBOOST_ATOMIC_DYN_LINK=1 -DBOOST_CHRONO_DYN_LINK=1
 -DBOOST_DATE_TIME_DYN_LINK=1 -DBOOST_FILESYSTEM_DYN_LINK=1
 -DBOOST_HAS_ICU=1 -DBOOST_LOG_BUILDING_THE_LIB=1 -DBOOST_LOG_DLL
 -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_EVENT_LOG
 -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DBOOST_SYSTEM_DYN_LINK=1
 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_THREAD_BUILD_DLL=1
 -DBOOST_THREAD_DONT_USE_CHRONO=1 -DBOOST_THREAD_POSIX
 -DBOOST_THREAD_USE_DLL=1 -DDATE_TIME_INLINE -DNDEBUG -D_XOPEN_SOURCE=500
 -D__EXTENSIONS__ -D__typeof__=__typeof__ -I.. -c -o
 ./date_time_format_parser.o ./date_time_format_parser.cpp
 "./date_time_format_parser.cpp", line 399: Error: Linker scopes may not
 change after symbol definition.
 "./date_time_format_parser.cpp", line 412: Error: Linker scopes may not
 change after symbol definition.

 The following change seems to resolve this issue.

 diff date_time_format_parser.cpp date_time_format_parser.cpp_new
 346c346
 < template< typename CharT >
 ---
> template< typename CharT > BOOST_LOG_API
 356c356
 < template< typename CharT >
 ---
> template< typename CharT > BOOST_LOG_API
 366c366
 < template< typename CharT >
 ---
> template< typename CharT > BOOST_LOG_API
 375c375
 < template< typename CharT >
 ---
> template< typename CharT > BOOST_LOG_API

 This prevents building libboost_log.so.1.59.0

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