Opened 7 years ago

Closed 7 years ago

#11460 closed Bugs (duplicate)

cannot compile date_time_format_parser.cpp

Reported by: Aparna Kumta <aparna.kumta@…> Owned by: Andrey Semashev
Milestone: To Be Determined Component: log
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

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 -DEXTENSIONS -Dtypeof=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

Change History (1)

comment:1 by Andrey Semashev, 7 years ago

Resolution: duplicate
Status: newclosed

Duplicates #11459.

Note: See TracTickets for help on using tickets.