Hi,

Currently I'm getting:

/usr/include/cppunit/TestAssert.h:101:5: error: no matching function for call 
to 'CppUnit::Asserter::failNotEqual(_STL::string, _STL::string, 
CppUnit::SourceLine&, const std::string&)'
/usr/include/cppunit/Asserter.h:114:27: note: candidate is: static void 
CppUnit::Asserter::failNotEqual(std::string, std::string, const 
CppUnit::SourceLine&, const CppUnit::AdditionalMessage&, std::string)

in starmath when building master.

I'm attaching the full output of 'build' in starmath.

I'm using system-cppunit and internal stlport, and I'm almost sure the
breakage is somehow related to the std vs _STL differences.

The strange thing is that this is usually handled by the extstl headers,
but preextstl.h and postextstl.h is already included before/after the
cppunit headers in qa/cppunit/test_nodetotextvisitors.cxx.

Do you have an idea what can be wrong here? This is with gcc-4.5.2, but
IIRC I already had this with 4.5.1 already.

I tried removing the preextstl.h / postextstl.h headers from the above
file, but that just turned the compile error to a linker one. ;)

Thanks.
build -- version: 275224


=============
Building module starmath
=============
Entering /home/vmiklos/git/libreoffice/master/starmath/inc

Entering /home/vmiklos/git/libreoffice/master/starmath/sdi

Entering /home/vmiklos/git/libreoffice/master/starmath/source

Entering /home/vmiklos/git/libreoffice/master/starmath/util

Entering /home/vmiklos/git/libreoffice/master/starmath/qa/cppunit

Compiling: starmath/qa/cppunit/test_nodetotextvisitors.cxx
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:
 In static member function 'static _STL::string 
CppUnit::assertion_traits<String>::toString(const String&)':
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:73:16:
 error: cannot bind 'std::basic_ostream<char>' lvalue to 
'std::basic_ostream<char>&&'
/usr/include/c++/4.5.2/ostream:579:5: error:   initializing argument 1 of 
'std::basic_ostream<_CharT, _Traits>& 
std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const _Tp&) [with _CharT 
= char, _Traits = std::char_traits<char>, _Tp = _STL::basic_string<char, 
_STL::char_traits<char>, _STL::allocator<char> >]'
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:74:24:
 error: conversion from 'std::basic_ostringstream<char>::__string_type' to 
non-scalar type '_STL::string' requested
In file included from /usr/include/cppunit/TestCase.h:6:0,
                 from 
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:41:
/usr/include/cppunit/TestAssert.h: In function 'void 
CppUnit::assertEquals(const T&, const T&, CppUnit::SourceLine, const 
std::string&) [with T = String, std::string = std::basic_string<char>]':
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:492:5:
   instantiated from here
/usr/include/cppunit/TestAssert.h:101:5: error: no matching function for call 
to 'CppUnit::Asserter::failNotEqual(_STL::string, _STL::string, 
CppUnit::SourceLine&, const std::string&)'
/usr/include/cppunit/Asserter.h:114:27: note: candidate is: static void 
CppUnit::Asserter::failNotEqual(std::string, std::string, const 
CppUnit::SourceLine&, const CppUnit::AdditionalMessage&, std::string)
dmake:  Error code 1, while making 
'../../unxlngi6.pro/slo/test_nodetotextvisitors.obj'
Forcing regeneration of dependency info

----------------------------------------------------------
- start unit test #1 on library
----------------------------------------------------------
: &&     
LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}/home/vmiklos/git/libreoffice/master/clone/writer/starmath/unxlngi6.pro/lib:/home/vmiklos/git/libreoffice/master/solver/330/unxlngi6.pro/lib
  
/home/vmiklos/git/libreoffice/master/solver/330/unxlngi6.pro/bin/cppunittester  
-headless -invisible \
        
-env:UNO_SERVICES=file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit/services.rdb
 \
        
-env:UNO_TYPES="file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit/types.rdb
 
file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit/udkapi.rdb"
 \
        
-env:OOO_BASE_DIR="file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit"
 \
        
-env:BRAND_BASE_DIR="file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit"
 \
        
-env:UNO_USER_PACKAGES_CACHE="file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit"
terminate called after throwing an instance of 
'CppUnit::DynamicLibraryManagerException'
  what():  Failed to load dynamic library: -headless

/bin/sh: line 1:  5462 Aborted                 
LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}/home/vmiklos/git/libreoffice/master/clone/writer/starmath/unxlngi6.pro/lib:/home/vmiklos/git/libreoffice/master/solver/330/unxlngi6.pro/lib
 /home/vmiklos/git/libreoffice/master/solver/330/unxlngi6.pro/bin/cppunittester 
-headless -invisible 
-env:UNO_SERVICES=file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit/services.rdb
 
-env:UNO_TYPES="file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit/types.rdb
 
file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit/udkapi.rdb"
 
-env:OOO_BASE_DIR="file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit"
 
-env:BRAND_BASE_DIR="file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit"
 
-env:UNO_USER_PACKAGES_CACHE="file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit"
dmake:  Error code 134, while making 'test'
Retrying /home/vmiklos/git/libreoffice/master/starmath/qa/cppunit

Making:    all_qa_cppunit.dpslo
Compiling: starmath/qa/cppunit/test_nodetotextvisitors.cxx
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:
 In static member function 'static _STL::string 
CppUnit::assertion_traits<String>::toString(const String&)':
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:73:16:
 error: cannot bind 'std::basic_ostream<char>' lvalue to 
'std::basic_ostream<char>&&'
/usr/include/c++/4.5.2/ostream:579:5: error:   initializing argument 1 of 
'std::basic_ostream<_CharT, _Traits>& 
std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const _Tp&) [with _CharT 
= char, _Traits = std::char_traits<char>, _Tp = _STL::basic_string<char, 
_STL::char_traits<char>, _STL::allocator<char> >]'
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:74:24:
 error: conversion from 'std::basic_ostringstream<char>::__string_type' to 
non-scalar type '_STL::string' requested
In file included from /usr/include/cppunit/TestCase.h:6:0,
                 from 
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:41:
/usr/include/cppunit/TestAssert.h: In function 'void 
CppUnit::assertEquals(const T&, const T&, CppUnit::SourceLine, const 
std::string&) [with T = String, std::string = std::basic_string<char>]':
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:492:5:
   instantiated from here
/usr/include/cppunit/TestAssert.h:101:5: error: no matching function for call 
to 'CppUnit::Asserter::failNotEqual(_STL::string, _STL::string, 
CppUnit::SourceLine&, const std::string&)'
/usr/include/cppunit/Asserter.h:114:27: note: candidate is: static void 
CppUnit::Asserter::failNotEqual(std::string, std::string, const 
CppUnit::SourceLine&, const CppUnit::AdditionalMessage&, std::string)
dmake:  Error code 1, while making 
'../../unxlngi6.pro/slo/test_nodetotextvisitors.obj'

-----------------------------------------------------------------------
        Oh dear - something failed during the build - sorry !
  For more help with debugging build errors, please see the section in:
            http://wiki.documentfoundation.org/Development

 it seems that the error is inside 'starmath', please re-run build
 inside this module to isolate the error and/or test your fix:
-----------------------------------------------------------------------

rm -Rf /home/vmiklos/git/libreoffice/master/starmath/unxlngi6.pro # optional 
module 'clean'
/bin/sh
cd /home/vmiklos/git/libreoffice/master
source ./LinuxX86Env.Set.sh
cd starmath
build

when the problem is isolated and fixed exit and re-run 'make' from the top-level

Attachment: pgpPyHt52SjEY.pgp
Description: PGP signature

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to