[Xapian-tickets] [Xapian] #611: Error in template usage when compiling with Sun Studio 12 and stlport4

Xapian nobody at xapian.org
Thu Jan 24 16:42:35 GMT 2013


#611: Error in template usage when compiling with Sun Studio 12 and stlport4
------------------------+---------------------------------------------------
 Reporter:  dmichelsen  |       Owner:  olly   
     Type:  defect      |      Status:  new    
 Priority:  normal      |   Milestone:         
Component:  Other       |     Version:  1.2.13 
 Severity:  blocker     |    Keywords:         
Blockedby:              |    Platform:  Solaris
 Blocking:              |  
------------------------+---------------------------------------------------
 Hi,

 when I try to compile xapian-core 1.2.13 on Solaris 10 Sparc with Sun
 Studio 12 I get the following template compilation error:
 {{{
 gmake[2]: Entering directory `/home/dam/mgar/pkg/xapian-
 core/trunk/work/solaris10-sparc/build-isa-sparcv8plus/xapian-core-1.2.13'
 source='examples/quest.cc' object='examples/quest.o' libtool=no \
 DEPDIR=.deps depmode=none /bin/bash ./depcomp \
 /opt/SUNWspro/bin/CC -DHAVE_CONFIG_H -I.  -I./common -I./include
 -I/opt/csw/include -library=stlport4 -features=tmplife   -xO3 -m32
 -xarch=sparc -c -o examples/quest.o examples/quest.cc
 "/opt/SUNWspro/prod/include/CC/stlport4/stl/_algobase.c", line 375: Error:
 Formal argument __x of type const char*const& in call to std::less<const
 char*>::operator()(const char*const&, const char*const&) const is being
 passed qp_flag.
 "/opt/SUNWspro/prod/include/CC/stlport4/stl/_algo.h", line 491:     Where:
 While instantiating "std::__lower_bound<qp_flag*, const char*,
 std::less<const char*>, int>(qp_flag*, qp_flag*, const char*const&,
 std::less<const char*>, int*)".
 "/opt/SUNWspro/prod/include/CC/stlport4/stl/_algo.h", line 491:     Where:
 Instantiated from non-template code.
 1 Error(s) detected.
 gmake[2]: *** [examples/quest.o] Error 1
 }}}

-- 
Ticket URL: <http://trac.xapian.org/ticket/611>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list