[GNC] Fwd: The two modules

Stephen M. Butler kg7je at arrl.net
Wed Jun 20 18:01:32 EDT 2018


Found libofx7 and installed that instead of libofx6 and libofx4.

After a few other missed steps I now have completed the "cmake
../gnucash-3.1" step  However the "make" step has problems:

...

[ 29%] Built target test-core-guile
Scanning dependencies of target scm-test-core
[ 29%] Generating
../../lib/gnucash/scm/ccache/2.0/gnucash/unittest-support.go
wrote
`/home/steve/Projects/GnuCash/mybuild/lib/gnucash/scm/ccache/2.0/gnucash/unittest-support.go'
[ 29%] Built target scm-test-core
Scanning dependencies of target gtest
[ 29%] Building CXX object
common/test-core/CMakeFiles/gtest.dir/usr/src/gtest/src/gtest-all.cc.o
In file included from /usr/src/gtest/src/gtest-all.cc:42:0:
/usr/src/gtest/src/gtest.cc: In destructor ‘virtual testing::Test::~Test()’:
/usr/src/gtest/src/gtest.cc:1897:10: error: type ‘const class
testing::internal::scoped_ptr<testing::internal::GTestFlagSaver>’
argument given to ‘delete’, expected pointer
   delete gtest_flag_saver_;
          ^~~~~~~~~~~~~~~~~
/usr/src/gtest/src/gtest.cc: At global scope:
/usr/src/gtest/src/gtest.cc:2177:1: error: prototype for
‘testing::TestInfo::TestInfo(const string&, const string&, const char*,
const char*, testing::internal::TypeId,
testing::internal::TestFactoryBase*)’ does not match any in class
‘testing::TestInfo’
 TestInfo::TestInfo(const std::string& a_test_case_name,
 ^~~~~~~~
In file included from
/home/steve/Projects/googletest/googletest/include/gtest/internal/gtest-internal.h:39:0,
                 from
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:58,
                 from /usr/src/gtest/src/gtest-all.cc:39:
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:801:35:
error: candidates are: testing::TestInfo::TestInfo(const testing::TestInfo&)
   GTEST_DISALLOW_COPY_AND_ASSIGN_(TestInfo);
                                   ^
/home/steve/Projects/googletest/googletest/include/gtest/internal/gtest-port.h:918:3:
note: in definition of macro ‘GTEST_DISALLOW_COPY_AND_ASSIGN_’
   type(type const &) GTEST_CXX11_EQUALS_DELETE_; \
   ^~~~
In file included from /usr/src/gtest/src/gtest-all.cc:39:0:
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:756:3:
error:                 testing::TestInfo::TestInfo(const string&, const
string&, const char*, const char*, testing::internal::CodeLocation,
testing::internal::TypeId, testing::internal::TestFactoryBase*)
   TestInfo(const std::string& test_case_name,
   ^~~~~~~~
In file included from /usr/src/gtest/src/gtest-all.cc:42:0:
/usr/src/gtest/src/gtest.cc: In function ‘testing::TestInfo*
testing::internal::MakeAndRegisterTestInfo(const char*, const char*,
const char*, const char*, testing::internal::TypeId,
testing::internal::SetUpTestCaseFunc,
testing::internal::TearDownTestCaseFunc,
testing::internal::TestFactoryBase*)’:
/usr/src/gtest/src/gtest.cc:2227:45: error: no matching function for
call to ‘testing::TestInfo::TestInfo(const char*&, const char*&, const
char*&, const char*&, const void*&, testing::internal::TestFactoryBase*&)’
                    fixture_class_id, factory);
                                             ^
In file included from /usr/src/gtest/src/gtest-all.cc:39:0:
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:756:3:
note: candidate: testing::TestInfo::TestInfo(const string&, const
string&, const char*, const char*, testing::internal::CodeLocation,
testing::internal::TypeId, testing::internal::TestFactoryBase*)
   TestInfo(const std::string& test_case_name,
   ^~~~~~~~
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:756:3:
note:   candidate expects 7 arguments, 6 provided
In file included from /usr/src/gtest/src/gtest-all.cc:42:0:
/usr/src/gtest/src/gtest.cc: At global scope:
/usr/src/gtest/src/gtest.cc:3486:76: error: definition of
‘testing::ScopedTrace::ScopedTrace(const char*, int, const
testing::Message&)’ is not in namespace enclosing ‘testing::ScopedTrace’
[-fpermissive]
 ScopedTrace::ScopedTrace(const char* file, int line, const Message&
message)
                                                                           
^
/usr/src/gtest/src/gtest.cc:3486:1: error: prototype for
‘testing::ScopedTrace::ScopedTrace(const char*, int, const
testing::Message&)’ does not match any in class ‘testing::ScopedTrace’
 ScopedTrace::ScopedTrace(const char* file, int line, const Message&
message)
 ^~~~~~~~~~~
In file included from
/home/steve/Projects/googletest/googletest/include/gtest/internal/gtest-internal.h:39:0,
                 from
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:58,
                 from /usr/src/gtest/src/gtest-all.cc:39:
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:2182:35:
error: candidates are: testing::ScopedTrace::ScopedTrace(const
testing::ScopedTrace&)
   GTEST_DISALLOW_COPY_AND_ASSIGN_(ScopedTrace);
                                   ^
/home/steve/Projects/googletest/googletest/include/gtest/internal/gtest-port.h:918:3:
note: in definition of macro ‘GTEST_DISALLOW_COPY_AND_ASSIGN_’
   type(type const &) GTEST_CXX11_EQUALS_DELETE_; \
   ^~~~
In file included from /usr/src/gtest/src/gtest-all.cc:39:0:
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:2169:3:
error:                 testing::ScopedTrace::ScopedTrace(const char*,
int, const string&)
   ScopedTrace(const char* file, int line, const std::string& message) {
   ^~~~~~~~~~~
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:2159:3:
error:                 testing::ScopedTrace::ScopedTrace(const char*,
int, const char*)
   ScopedTrace(const char* file, int line, const char* message) {
   ^~~~~~~~~~~[ 29%] Built target test-core-guile
Scanning dependencies of target scm-test-core
[ 29%] Generating
../../lib/gnucash/scm/ccache/2.0/gnucash/unittest-support.go
wrote
`/home/steve/Projects/GnuCash/mybuild/lib/gnucash/scm/ccache/2.0/gnucash/unittest-support.go'
[ 29%] Built target scm-test-core
Scanning dependencies of target gtest
[ 29%] Building CXX object
common/test-core/CMakeFiles/gtest.dir/usr/src/gtest/src/gtest-all.cc.o
In file included from /usr/src/gtest/src/gtest-all.cc:42:0:
/usr/src/gtest/src/gtest.cc: In destructor ‘virtual testing::Test::~Test()’:
/usr/src/gtest/src/gtest.cc:1897:10: error: type ‘const class
testing::internal::scoped_ptr<testing::internal::GTestFlagSaver>’
argument given to ‘delete’, expected pointer
   delete gtest_flag_saver_;
          ^~~~~~~~~~~~~~~~~
/usr/src/gtest/src/gtest.cc: At global scope:
/usr/src/gtest/src/gtest.cc:2177:1: error: prototype for
‘testing::TestInfo::TestInfo(const string&, const string&, const char*,
const char*, testing::internal::TypeId,
testing::internal::TestFactoryBase*)’ does not match any in class
‘testing::TestInfo’
 TestInfo::TestInfo(const std::string& a_test_case_name,
 ^~~~~~~~
In file included from
/home/steve/Projects/googletest/googletest/include/gtest/internal/gtest-internal.h:39:0,
                 from
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:58,
                 from /usr/src/gtest/src/gtest-all.cc:39:
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:801:35:
error: candidates are: testing::TestInfo::TestInfo(const testing::TestInfo&)
   GTEST_DISALLOW_COPY_AND_ASSIGN_(TestInfo);
                                   ^
/home/steve/Projects/googletest/googletest/include/gtest/internal/gtest-port.h:918:3:
note: in definition of macro ‘GTEST_DISALLOW_COPY_AND_ASSIGN_’
   type(type const &) GTEST_CXX11_EQUALS_DELETE_; \
   ^~~~
In file included from /usr/src/gtest/src/gtest-all.cc:39:0:
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:756:3:
error:                 testing::TestInfo::TestInfo(const string&, const
string&, const char*, const char*, testing::internal::CodeLocation,
testing::internal::TypeId, testing::internal::TestFactoryBase*)
   TestInfo(const std::string& test_case_name,
   ^~~~~~~~
In file included from /usr/src/gtest/src/gtest-all.cc:42:0:
/usr/src/gtest/src/gtest.cc: In function ‘testing::TestInfo*
testing::internal::MakeAndRegisterTestInfo(const char*, const char*,
const char*, const char*, testing::internal::TypeId,
testing::internal::SetUpTestCaseFunc,
testing::internal::TearDownTestCaseFunc,
testing::internal::TestFactoryBase*)’:
/usr/src/gtest/src/gtest.cc:2227:45: error: no matching function for
call to ‘testing::TestInfo::TestInfo(const char*&, const char*&, const
char*&, const char*&, const void*&, testing::internal::TestFactoryBase*&)’
                    fixture_class_id, factory);
                                             ^
In file included from /usr/src/gtest/src/gtest-all.cc:39:0:
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:756:3:
note: candidate: testing::TestInfo::TestInfo(const string&, const
string&, const char*, const char*, testing::internal::CodeLocation,
testing::internal::TypeId, testing::internal::TestFactoryBase*)
   TestInfo(const std::string& test_case_name,
   ^~~~~~~~
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:756:3:
note:   candidate expects 7 arguments, 6 provided
In file included from /usr/src/gtest/src/gtest-all.cc:42:0:
/usr/src/gtest/src/gtest.cc: At global scope:
/usr/src/gtest/src/gtest.cc:3486:76: error: definition of
‘testing::ScopedTrace::ScopedTrace(const char*, int, const
testing::Message&)’ is not in namespace enclosing ‘testing::ScopedTrace’
[-fpermissive]
 ScopedTrace::ScopedTrace(const char* file, int line, const Message&
message)
                                                                           
^
/usr/src/gtest/src/gtest.cc:3486:1: error: prototype for
‘testing::ScopedTrace::ScopedTrace(const char*, int, const
testing::Message&)’ does not match any in class ‘testing::ScopedTrace’
 ScopedTrace::ScopedTrace(const char* file, int line, const Message&
message)
 ^~~~~~~~~~~
In file included from
/home/steve/Projects/googletest/googletest/include/gtest/internal/gtest-internal.h:39:0,
                 from
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:58,
                 from /usr/src/gtest/src/gtest-all.cc:39:
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:2182:35:
error: candidates are: testing::ScopedTrace::ScopedTrace(const
testing::ScopedTrace&)
   GTEST_DISALLOW_COPY_AND_ASSIGN_(ScopedTrace);
                                   ^
/home/steve/Projects/googletest/googletest/include/gtest/internal/gtest-port.h:918:3:
note: in definition of macro ‘GTEST_DISALLOW_COPY_AND_ASSIGN_’
   type(type const &) GTEST_CXX11_EQUALS_DELETE_; \
   ^~~~
In file included from /usr/src/gtest/src/gtest-all.cc:39:0:
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:2169:3:
error:                 testing::ScopedTrace::ScopedTrace(const char*,
int, const string&)
   ScopedTrace(const char* file, int line, const std::string& message) {
   ^~~~~~~~~~~
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:2159:3:
error:                 testing::ScopedTrace::ScopedTrace(const char*,
int, const char*)
   ScopedTrace(const char* file, int line, const char* message) {
   ^~~~~~~~~~~
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:2154:3:
error:                 template<class T>
testing::ScopedTrace::ScopedTrace(const char*, int, const T&)
   ScopedTrace(const char* file, int line, const T& message) {
   ^~~~~~~~~~~
In file included from /usr/src/gtest/src/gtest-all.cc:42:0:
/usr/src/gtest/src/gtest.cc:3497:27: error: definition of
‘testing::ScopedTrace::~ScopedTrace()’ is not in namespace enclosing
‘testing::ScopedTrace’ [-fpermissive]
 ScopedTrace::~ScopedTrace()
                           ^
/usr/src/gtest/src/gtest.cc: In function ‘void
testing::internal::InitGoogleTestImpl(int*, CharType**)’:
/usr/src/gtest/src/gtest.cc:4983:3: error: ‘g_argvs’ was not declared in
this scope
   g_argvs.clear();
   ^~~~~~~
/usr/src/gtest/src/gtest.cc:4983:3: note: suggested alternative: ‘argv’
   g_argvs.clear();
   ^~~~~~~
   argv
In file included from /usr/src/gtest/src/gtest-all.cc:43:0:
/usr/src/gtest/src/gtest-death-test.cc: In function ‘void
testing::internal::SplitString(const string&, char,
std::vector<std::__cxx11::basic_string<char> >*)’:
/usr/src/gtest/src/gtest-death-test.cc:1208:13: error: ‘void
testing::internal::SplitString(const string&, char,
std::vector<std::__cxx11::basic_string<char> >*)’ was declared ‘extern’
and later ‘static’ [-fpermissive]
 static void SplitString(const ::std::string& str, char delimiter,
             ^~~~~~~~~~~
In file included from
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:58:0,
                 from /usr/src/gtest/src/gtest-all.cc:39:
/home/steve/Projects/googletest/googletest/include/gtest/internal/gtest-internal.h:595:6:
note: previous declaration of ‘void testing::internal::SplitString(const
string&, char, std::vector<std::__cxx11::basic_string<char> >*)’
 void SplitString(const ::std::string& str, char delimiter,
      ^~~~~~~~~~~
In file included from /usr/src/gtest/src/gtest-all.cc:45:0:
/usr/src/gtest/src/gtest-port.cc: In function ‘const
std::vector<std::__cxx11::basic_string<char> >&
testing::internal::GetInjectableArgvs()’:
/usr/src/gtest/src/gtest-port.cc:689:49: error: ambiguating new
declaration of ‘const std::vector<std::__cxx11::basic_string<char> >&
testing::internal::GetInjectableArgvs()’
 const ::std::vector<testing::internal::string>& GetInjectableArgvs() {
                                                 ^~~~~~~~~~~~~~~~~~
In file included from
/home/steve/Projects/googletest/googletest/include/gtest/internal/gtest-internal.h:39:0,
                 from
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:58,
                 from /usr/src/gtest/src/gtest-all.cc:39:
/home/steve/Projects/googletest/googletest/include/gtest/internal/gtest-port.h:1549:26:
note: old declaration ‘std::vector<std::__cxx11::basic_string<char> >
testing::internal::GetInjectableArgvs()’
 std::vector<std::string> GetInjectableArgvs();
                          ^~~~~~~~~~~~~~~~~~
In file included from /usr/src/gtest/src/gtest-all.cc:48:0:
/usr/src/gtest/src/gtest-typed-test.cc: In member function ‘const char*
testing::internal::TypedTestCasePState::VerifyRegisteredTestNames(const
char*, int, const char*)’:
/usr/src/gtest/src/gtest-typed-test.cc:71:31: error:
‘defined_test_names_’ was not declared in this scope
     for (DefinedTestIter it = defined_test_names_.begin();
                               ^~~~~~~~~~~~~~~~~~~
/usr/src/gtest/src/gtest-typed-test.cc:71:31: note: suggested
alternative: ‘DefinedTestIter’
     for (DefinedTestIter it = defined_test_names_.begin();
                               ^~~~~~~~~~~~~~~~~~~
                               DefinedTestIter
/usr/src/gtest/src/gtest-typed-test.cc:88:29: error:
‘defined_test_names_’ was not declared in this scope
   for (DefinedTestIter it = defined_test_names_.begin();
                             ^~~~~~~~~~~~~~~~~~~
/usr/src/gtest/src/gtest-typed-test.cc:88:29: note: suggested
alternative: ‘DefinedTestIter’
   for (DefinedTestIter it = defined_test_names_.begin();
                             ^~~~~~~~~~~~~~~~~~~
                             DefinedTestIter
common/test-core/CMakeFiles/gtest.dir/build.make:62: recipe for target
'common/test-core/CMakeFiles/gtest.dir/usr/src/gtest/src/gtest-all.cc.o'
failed
make[2]: ***
[common/test-core/CMakeFiles/gtest.dir/usr/src/gtest/src/gtest-all.cc.o]
Error 1
CMakeFiles/Makefile2:1776: recipe for target
'common/test-core/CMakeFiles/gtest.dir/all' failed
make[1]: *** [common/test-core/CMakeFiles/gtest.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:2154:3:
error:                 template<class T>
testing::ScopedTrace::ScopedTrace(const char*, int, const T&)
   ScopedTrace(const char* file, int line, const T& message) {
   ^~~~~~~~~~~
In file included from /usr/src/gtest/src/gtest-all.cc:42:0:
/usr/src/gtest/src/gtest.cc:3497:27: error: definition of
‘testing::ScopedTrace::~ScopedTrace()’ is not in namespace enclosing
‘testing::ScopedTrace’ [-fpermissive]
 ScopedTrace::~ScopedTrace()
                           ^
/usr/src/gtest/src/gtest.cc: In function ‘void
testing::internal::InitGoogleTestImpl(int*, CharType**)’:
/usr/src/gtest/src/gtest.cc:4983:3: error: ‘g_argvs’ was not declared in
this scope
   g_argvs.clear();
   ^~~~~~~
/usr/src/gtest/src/gtest.cc:4983:3: note: suggested alternative: ‘argv’
   g_argvs.clear();
   ^~~~~~~
   argv
In file included from /usr/src/gtest/src/gtest-all.cc:43:0:
/usr/src/gtest/src/gtest-death-test.cc: In function ‘void
testing::internal::SplitString(const string&, char,
std::vector<std::__cxx11::basic_string<char> >*)’:
/usr/src/gtest/src/gtest-death-test.cc:1208:13: error: ‘void
testing::internal::SplitString(const string&, char,
std::vector<std::__cxx11::basic_string<char> >*)’ was declared ‘extern’
and later ‘static’ [-fpermissive]
 static void SplitString(const ::std::string& str, char delimiter,
             ^~~~~~~~~~~
In file included from
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:58:0,
                 from /usr/src/gtest/src/gtest-all.cc:39:
/home/steve/Projects/googletest/googletest/include/gtest/internal/gtest-internal.h:595:6:
note: previous declaration of ‘void testing::internal::SplitString(const
string&, char, std::vector<std::__cxx11::basic_string<char> >*)’
 void SplitString(const ::std::string& str, char delimiter,
      ^~~~~~~~~~~
In file included from /usr/src/gtest/src/gtest-all.cc:45:0:
/usr/src/gtest/src/gtest-port.cc: In function ‘const
std::vector<std::__cxx11::basic_string<char> >&
testing::internal::GetInjectableArgvs()’:
/usr/src/gtest/src/gtest-port.cc:689:49: error: ambiguating new
declaration of ‘const std::vector<std::__cxx11::basic_string<char> >&
testing::internal::GetInjectableArgvs()’
 const ::std::vector<testing::internal::string>& GetInjectableArgvs() {
                                                 ^~~~~~~~~~~~~~~~~~
In file included from
/home/steve/Projects/googletest/googletest/include/gtest/internal/gtest-internal.h:39:0,
                 from
/home/steve/Projects/googletest/googletest/include/gtest/gtest.h:58,
                 from /usr/src/gtest/src/gtest-all.cc:39:
/home/steve/Projects/googletest/googletest/include/gtest/internal/gtest-port.h:1549:26:
note: old declaration ‘std::vector<std::__cxx11::basic_string<char> >
testing::internal::GetInjectableArgvs()’
 std::vector<std::string> GetInjectableArgvs();
                          ^~~~~~~~~~~~~~~~~~
In file included from /usr/src/gtest/src/gtest-all.cc:48:0:
/usr/src/gtest/src/gtest-typed-test.cc: In member function ‘const char*
testing::internal::TypedTestCasePState::VerifyRegisteredTestNames(const
char*, int, const char*)’:
/usr/src/gtest/src/gtest-typed-test.cc:71:31: error:
‘defined_test_names_’ was not declared in this scope
     for (DefinedTestIter it = defined_test_names_.begin();
                               ^~~~~~~~~~~~~~~~~~~
/usr/src/gtest/src/gtest-typed-test.cc:71:31: note: suggested
alternative: ‘DefinedTestIter’
     for (DefinedTestIter it = defined_test_names_.begin();
                               ^~~~~~~~~~~~~~~~~~~
                               DefinedTestIter
/usr/src/gtest/src/gtest-typed-test.cc:88:29: error:
‘defined_test_names_’ was not declared in this scope
   for (DefinedTestIter it = defined_test_names_.begin();
                             ^~~~~~~~~~~~~~~~~~~
/usr/src/gtest/src/gtest-typed-test.cc:88:29: note: suggested
alternative: ‘DefinedTestIter’
   for (DefinedTestIter it = defined_test_names_.begin();
                             ^~~~~~~~~~~~~~~~~~~
                             DefinedTestIter
common/test-core/CMakeFiles/gtest.dir/build.make:62: recipe for target
'common/test-core/CMakeFiles/gtest.dir/usr/src/gtest/src/gtest-all.cc.o'
failed
make[2]: ***
[common/test-core/CMakeFiles/gtest.dir/usr/src/gtest/src/gtest-all.cc.o]
Error 1
CMakeFiles/Makefile2:1776: recipe for target
'common/test-core/CMakeFiles/gtest.dir/all' failed
make[1]: *** [common/test-core/CMakeFiles/gtest.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2




More information about the gnucash-user mailing list