[bind10-dev] Part 2: compiling with SunStudio12.1

Jeremy C. Reed jreed at isc.org
Tue Jun 22 19:28:10 UTC 2010


Without --with-gtest (see earlier email), I get errors in boost:

libtool: compile:  /usr/bin/CC -DHAVE_CONFIG_H -I. -I../../.. 
-I../../../src/lib -I../../../src/lib -I/udir/jreed/pkg/include 
-I../../../ext/asio -g -c base64.cc  -KPIC -DPIC -o .libs/base64.o
"/udir/jreed/pkg/include/boost/detail/iterator.hpp", line 82: Error: 
iterator_traits is not a member of std.
"/udir/jreed/pkg/include/boost/iterator/iterator_traits.hpp", line 30:     
Where: While specializing 
"boost::detail::iterator_traits<::BinaryNormalizer>".
"/udir/jreed/pkg/include/boost/iterator/iterator_traits.hpp", line 30:     
Where: Specialized in boost::iterator_value<::BinaryNormalizer>.
"/udir/jreed/pkg/include/boost/archive/iterators/transform_width.hpp", 
line 45:     Where: Specialized in non-template code.
"/udir/jreed/pkg/include/boost/detail/iterator.hpp", line 82: Error: "," 
expected instead of "<".

(I don't copy all here.)

My boost is built/installed when SunStudio was not installed - just GCC 
then.

Per http://blogs.sun.com/sga/entry/boost_mini_howto
I build with  CXXFLAGS='-library=stlport4 -features=tmplife 
-features=tmplrefstatic'  (I don't think I need the two "features" 
options.)

That resulted in:

libtool: compile:  /usr/bin/CC -DHAVE_CONFIG_H -I. -I../../.. 
-I../../../src/lib -I../../../src/lib -I/udir/jreed/pkg/include 
-I../../../ext/asio -library=stlport4 -features=tmplife 
-features=tmplrefstatic -c hex.cc -o hex.o >/dev/null 2>&1
source='message.cc' object='message.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../../../depcomp \
/bin/bash ../../../libtool --tag=CXX    --mode=compile /usr/bin/CC 
-DHAVE_CONFIG_H -I. -I../../..   -I../../../src/lib -I../../../src/lib 
-I/udir/jreed/pkg/include -I../../../ext/asio  -library=stlport4 
-features=tmplife -features=tmplrefstatic -c -o message.lo message.cc
libtool: compile:  /usr/bin/CC -DHAVE_CONFIG_H -I. -I../../.. 
-I../../../src/lib -I../../../src/lib -I/udir/jreed/pkg/include 
-I../../../ext/asio -library=stlport4 -features=tmplife 
-features=tmplrefstatic -c message.cc  -KPIC -DPIC -o .libs/message.o
"message.cc", line 926: Error: const 
boost::shared_ptr<isc::dns::Question>* is not a structure type.
"message.cc", line 945:     Where: While instantiating 
"isc::dns::SectionIterator<boost::shared_ptr<isc::dns::Question>>::operator->() 
const".
"message.cc", line 945:     Where: Instantiated from non-template code.
1 Error(s) detected.
*** Error code 1
make: Fatal error: Command failed for target `message.lo'
Current working directory 
/export/home/users/jreed/sunstudio-test/src/lib/dns
*** Error code 1





More information about the bind10-dev mailing list