BIND 10 #3160: boost::lexical_cast failure on Solaris with SunStudio
BIND 10 Development
do-not-reply at isc.org
Thu Sep 12 18:49:34 UTC 2013
#3160: boost::lexical_cast failure on Solaris with SunStudio
-------------------------------------+-------------------------------------
Reporter: muks | Owner:
Type: defect | Status: new
Priority: medium | Milestone: Next-
Component: logging | Sprint-Proposed
Keywords: | Resolution:
Sensitive: 0 | CVSS Scoring:
Sub-Project: DNS | Defect Severity: N/A
Estimated Difficulty: 0 | Feature Depending on Ticket:
Total Hours: 0 | Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
Comment (by jreed):
first patch results in:
{{{
libtool: compile: /usr/bin/CC -DHAVE_CONFIG_H -I. -I../../../..
-I../../../../src/lib -I../../../../src/lib -I../../../../src/lib/dns
-I../../../../src/lib/dns -I/udir/jreed/pkg/include -D_XPG4_2
-D__EXTENSIONS__ -DOS_SUN -DBOOST_DISABLE_THREADS=1 -I../../../../ext/asio
-I../../../../ext/coroutine -DASIO_DISABLE_THREADS=1 -g -library=stlport4
-features=tmplife -features=tmplrefstatic -c zone_finder.cc -KPIC -DPIC
-o .libs/zone_finder.o
"/udir/jreed/pkg/include/boost/lexical_cast.hpp", line 2641: Error: Cannot
define a reference or pointer to a reference.
"/udir/jreed/pkg/include/boost/lexical_cast.hpp", line 2700: Where:
While specializing "boost::detail::lexical_stream<std::string, const
isc::dns::AbstractRRset&, std::char_traits<char>>".
"/udir/jreed/pkg/include/boost/lexical_cast.hpp", line 2700: Where:
Instantiated from boost::lexical_cast<std::string, const
isc::dns::AbstractRRset&>(const isc::dns::AbstractRRset&).
"../../../../src/lib/log/log_formatter.h", line 199: Where:
Instantiated from non-template code.
1 Error(s) detected.
}}}
second patch results in:
{{{
libtool: compile: /usr/bin/CC -DHAVE_CONFIG_H -I. -I../../..
-I../../../src/lib -I../../../src/lib -I../../../src/lib/dns
-I../../../src/lib/dns -I/udir/jreed/pkg/include -I/udir/jreed/pkg/include
-D_XPG4_2 -D__EXTENSIONS__ -DOS_SUN -DBOOST_DISABLE_THREADS=1
-I../../../ext/asio -I../../../ext/coroutine -DASIO_DISABLE_THREADS=1 -g
-library=stlport4 -features=tmplife -features=tmplrefstatic -c database.cc
-KPIC -DPIC -o .libs/database.o
"../../../src/lib/log/log_formatter.h", line 198: Error:
isc::dns::AbstractRRset::AbstractRRset(const isc::dns::AbstractRRset&) is
not accessible from
isc::log::Formatter<isc::log::Logger>::arg<isc::dns::AbstractRRset>(const
isc::dns::AbstractRRset&).
"../../../src/lib/log/log_formatter.h", line 198: Error: Formal argument
arg of type isc::dns::AbstractRRset in call to
boost::lexical_cast<std::string,
isc::dns::AbstractRRset>(isc::dns::AbstractRRset) has an inaccessible copy
constructor.
2 Error(s) detected.
*** Error code 1
}}}
(which appears to be same problem in original report)
--
Ticket URL: <http://bind10.isc.org/ticket/3160#comment:1>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list