Re: compile errors

2016-11-18 Thread John Ralls

> On Nov 18, 2016, at 2:49 PM, John Ralls  wrote:
> 
> 
>> On Nov 18, 2016, at 12:53 PM, Alex Aycinena  wrote:
>> 
>> 
>> 
>> On Thu, Nov 17, 2016 at 5:10 PM, John Ralls > > wrote:
>> 
>>> On Nov 17, 2016, at 4:54 PM, Alex Aycinena >> > wrote:
>>> 
>>> Hi,
>>> 
>>> I get the following compile errors today:
>>> 
>> 
>>> 
>>> Am I missing a library or something?
>> 
>> Alex,
>> 
>> That didn't take long! ;-)
>> 
>> Only if your compiler doesn't support C++11. More likely your libstdc++ 
>> doesn't pull in  when  is included.
>> 
>> Travis puked test-backend-dbi-basic.c for a similar complaint, this one for 
>> std::for_each. I've just pushed what I hope will fix that and your error.
>> 
>> Regards,
>> John Ralls
>> 
>> 
>> John,
>> 
>> After pulling in your push, I now get:
>> 
>> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbiproviderimpl.hpp:
>>  In member function ‘StrVec GncDbiProviderImpl::get_table_list(dbi_conn, 
>> const string&) [with DbType T = (DbType)0; StrVec = 
>> std::vector; dbi_conn = void*; 
>> std::__cxx11::string = std::__cxx11::basic_string]’:
>> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbiproviderimpl.hpp:245:71:
>>  error: cannot convert ‘std::vector> >::iterator {aka 
>> __gnu_cxx::__normal_iterator> std::vector >}’ to ‘const char*’ for 
>> argument ‘1’ to ‘int remove(const char*)’
>> auto end = std::remove(list.begin(), list.end(), "sqlite_sequence");
>>   ^
>> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbiproviderimpl.hpp:
>>  In member function ‘StrVec GncDbiProviderImpl::get_table_list(dbi_conn, 
>> const string&) [with DbType T = (DbType)2; StrVec = 
>> std::vector; dbi_conn = void*; 
>> std::__cxx11::string = std::__cxx11::basic_string]’:
>> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbiproviderimpl.hpp:266:16:
>>  error: ‘remove_if’ is not a member of ‘std’
>> auto end = std::remove_if (list.begin(), list.end(),
>>^~~
>> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbisqlconnection.cpp:
>>  In member function ‘bool GncDbiSqlConnection::table_operation(const 
>> StrVec&, TableOpType)’:
>> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbisqlconnection.cpp:655:54:
>>  error: no matching function for call to 
>> ‘find(std::vector::iterator, 
>> std::vector::iterator, 
>> std::__cxx11::basic_string&)’
>>   all_tables.end(), table) != all_tables.end())
>>  ^
>> In file included from /usr/include/c++/6.2.1/bits/locale_facets.h:48:0,
>> from /usr/include/c++/6.2.1/bits/basic_ios.h:37,
>> from /usr/include/c++/6.2.1/ios:44,
>> from /usr/include/c++/6.2.1/istream:38,
>> from /usr/include/c++/6.2.1/sstream:38,
>> from 
>> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/sql/gnc-sql-backend.hpp:35,
>> from 
>> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-backend-dbi.hpp:37,
>> from 
>> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbisqlconnection.hpp:30,
>> from 
>> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbisqlconnection.cpp:31:
>> /usr/include/c++/6.2.1/bits/streambuf_iterator.h:369:5: note: candidate: 
>> template typename 
>> __gnu_cxx::__enable_if::__value, 
>> std::istreambuf_iterator<_CharT> >::__type 
>> std::find(std::istreambuf_iterator<_CharT>, 
>> std::istreambuf_iterator<_CharT>, const _CharT2&)
>> find(istreambuf_iterator<_CharT> __first,
>> ^~~~
>> /usr/include/c++/6.2.1/bits/streambuf_iterator.h:369:5: note:   template 
>> argument deduction/substitution failed:
>> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbisqlconnection.cpp:655:54:
>>  note:   ‘__gnu_cxx::__normal_iterator> std::vector >’ is not derived from 
>> ‘std::istreambuf_iterator<_CharT>’
>>   all_tables.end(), table) != all_tables.end())
>>  ^
>> At global scope:
>> cc1plus: error: unrecognized command line option ‘-Wno-deprecated-register’ 
>> [-Werror]
>> cc1plus: all warnings being treated as errors
>> Makefile:678: recipe for target 'gnc-dbisqlconnection.lo' failed
>> 
>> 
>> I'm building on Fedora 24, by the way.
> 
> Alex,
> 
> My first guess would be that 

Re: compile errors

2016-11-18 Thread John Ralls

> On Nov 18, 2016, at 12:53 PM, Alex Aycinena  wrote:
> 
> 
> 
> On Thu, Nov 17, 2016 at 5:10 PM, John Ralls  > wrote:
> 
> > On Nov 17, 2016, at 4:54 PM, Alex Aycinena  > > wrote:
> >
> > Hi,
> >
> > I get the following compile errors today:
> >
> 
> >
> > Am I missing a library or something?
> 
> Alex,
> 
> That didn't take long! ;-)
> 
> Only if your compiler doesn't support C++11. More likely your libstdc++ 
> doesn't pull in  when  is included.
> 
> Travis puked test-backend-dbi-basic.c for a similar complaint, this one for 
> std::for_each. I've just pushed what I hope will fix that and your error.
> 
> Regards,
> John Ralls
> 
> 
> John,
> 
> After pulling in your push, I now get:
> 
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbiproviderimpl.hpp:
>  In member function ‘StrVec GncDbiProviderImpl::get_table_list(dbi_conn, 
> const string&) [with DbType T = (DbType)0; StrVec = 
> std::vector; dbi_conn = void*; 
> std::__cxx11::string = std::__cxx11::basic_string]’:
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbiproviderimpl.hpp:245:71:
>  error: cannot convert ‘std::vector >::iterator {aka 
> __gnu_cxx::__normal_iterator std::vector >}’ to ‘const char*’ for 
> argument ‘1’ to ‘int remove(const char*)’
>  auto end = std::remove(list.begin(), list.end(), "sqlite_sequence");
>^
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbiproviderimpl.hpp:
>  In member function ‘StrVec GncDbiProviderImpl::get_table_list(dbi_conn, 
> const string&) [with DbType T = (DbType)2; StrVec = 
> std::vector; dbi_conn = void*; 
> std::__cxx11::string = std::__cxx11::basic_string]’:
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbiproviderimpl.hpp:266:16:
>  error: ‘remove_if’ is not a member of ‘std’
>  auto end = std::remove_if (list.begin(), list.end(),
> ^~~
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbisqlconnection.cpp:
>  In member function ‘bool GncDbiSqlConnection::table_operation(const StrVec&, 
> TableOpType)’:
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbisqlconnection.cpp:655:54:
>  error: no matching function for call to 
> ‘find(std::vector::iterator, 
> std::vector::iterator, 
> std::__cxx11::basic_string&)’
>all_tables.end(), table) != all_tables.end())
>   ^
> In file included from /usr/include/c++/6.2.1/bits/locale_facets.h:48:0,
>  from /usr/include/c++/6.2.1/bits/basic_ios.h:37,
>  from /usr/include/c++/6.2.1/ios:44,
>  from /usr/include/c++/6.2.1/istream:38,
>  from /usr/include/c++/6.2.1/sstream:38,
>  from 
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/sql/gnc-sql-backend.hpp:35,
>  from 
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-backend-dbi.hpp:37,
>  from 
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbisqlconnection.hpp:30,
>  from 
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbisqlconnection.cpp:31:
> /usr/include/c++/6.2.1/bits/streambuf_iterator.h:369:5: note: candidate: 
> template typename 
> __gnu_cxx::__enable_if::__value, 
> std::istreambuf_iterator<_CharT> >::__type 
> std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, 
> const _CharT2&)
>  find(istreambuf_iterator<_CharT> __first,
>  ^~~~
> /usr/include/c++/6.2.1/bits/streambuf_iterator.h:369:5: note:   template 
> argument deduction/substitution failed:
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbisqlconnection.cpp:655:54:
>  note:   ‘__gnu_cxx::__normal_iterator std::vector >’ is not derived from 
> ‘std::istreambuf_iterator<_CharT>’
>all_tables.end(), table) != all_tables.end())
>   ^
> At global scope:
> cc1plus: error: unrecognized command line option ‘-Wno-deprecated-register’ 
> [-Werror]
> cc1plus: all warnings being treated as errors
> Makefile:678: recipe for target 'gnc-dbisqlconnection.lo' failed
> 
> 
> I'm building on Fedora 24, by the way.

Alex,

My first guess would be that gnc-dbiproviderimpl.hpp and 
gnc-dbisqlconnection.hpp need the same treatment, to add "#include  
to the other libstdc++ headers. I'll have to set up a fedora24 VM to duplicate 

Re: compile errors

2016-11-18 Thread Alex Aycinena
On Thu, Nov 17, 2016 at 5:10 PM, John Ralls  wrote:

>
> > On Nov 17, 2016, at 4:54 PM, Alex Aycinena 
> wrote:
> >
> > Hi,
> >
> > I get the following compile errors today:
> >
> 
> >
> > Am I missing a library or something?
>
> Alex,
>
> That didn't take long! ;-)
>
> Only if your compiler doesn't support C++11. More likely your libstdc++
> doesn't pull in  when  is included.
>
> Travis puked test-backend-dbi-basic.c for a similar complaint, this one
> for std::for_each. I've just pushed what I hope will fix that and your
> error.
>
> Regards,
> John Ralls
>
>
John,

After pulling in your push, I now get:

/home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbiproviderimpl.hpp:
In member function ‘StrVec GncDbiProviderImpl::get_table_list(dbi_conn,
const string&) [with DbType T = (DbType)0; StrVec =
std::vector; dbi_conn = void*;
std::__cxx11::string = std::__cxx11::basic_string]’:
/home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbiproviderimpl.hpp:245:71:
error: cannot convert ‘std::vector::iterator {aka
__gnu_cxx::__normal_iterator >}’ to ‘const char*’ for
argument ‘1’ to ‘int remove(const char*)’
 auto end = std::remove(list.begin(), list.end(), "sqlite_sequence");
   ^
/home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbiproviderimpl.hpp:
In member function ‘StrVec GncDbiProviderImpl::get_table_list(dbi_conn,
const string&) [with DbType T = (DbType)2; StrVec =
std::vector; dbi_conn = void*;
std::__cxx11::string = std::__cxx11::basic_string]’:
/home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbiproviderimpl.hpp:266:16:
error: ‘remove_if’ is not a member of ‘std’
 auto end = std::remove_if (list.begin(), list.end(),
^~~
/home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbisqlconnection.cpp:
In member function ‘bool GncDbiSqlConnection::table_operation(const
StrVec&, TableOpType)’:
/home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbisqlconnection.cpp:655:54:
error: no matching function for call to
‘find(std::vector::iterator,
std::vector::iterator,
std::__cxx11::basic_string&)’
   all_tables.end(), table) != all_tables.end())
  ^
In file included from /usr/include/c++/6.2.1/bits/locale_facets.h:48:0,
 from /usr/include/c++/6.2.1/bits/basic_ios.h:37,
 from /usr/include/c++/6.2.1/ios:44,
 from /usr/include/c++/6.2.1/istream:38,
 from /usr/include/c++/6.2.1/sstream:38,
 from
/home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/sql/gnc-sql-backend.hpp:35,
 from
/home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-backend-dbi.hpp:37,
 from
/home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbisqlconnection.hpp:30,
 from
/home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbisqlconnection.cpp:31:
/usr/include/c++/6.2.1/bits/streambuf_iterator.h:369:5: note: candidate:
template typename
__gnu_cxx::__enable_if::__value,
std::istreambuf_iterator<_CharT> >::__type
std::find(std::istreambuf_iterator<_CharT>,
std::istreambuf_iterator<_CharT>, const _CharT2&)
 find(istreambuf_iterator<_CharT> __first,
 ^~~~
/usr/include/c++/6.2.1/bits/streambuf_iterator.h:369:5: note:   template
argument deduction/substitution failed:
/home/gnucash-dev/gitcheckouts/gnucash-clean/src/backend/dbi/gnc-dbisqlconnection.cpp:655:54:
note:   ‘__gnu_cxx::__normal_iterator >’ is not derived from
‘std::istreambuf_iterator<_CharT>’
   all_tables.end(), table) != all_tables.end())
  ^
At global scope:
cc1plus: error: unrecognized command line option ‘-Wno-deprecated-register’
[-Werror]
cc1plus: all warnings being treated as errors
Makefile:678: recipe for target 'gnc-dbisqlconnection.lo' failed


I'm building on Fedora 24, by the way.

Thanks,

Alex
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Still Failing: Gnucash/gnucash#778 (master - 1774de7)

2016-11-18 Thread Rob Gowin
Hi John,

Yeah, I'll do that.

Regards,

Rob

On Thu, Nov 17, 2016 at 9:58 PM, John Ralls  wrote:

> Hey Rob,
>
> This failed because I forgot to update POTFILES for the newly created
> files and ninja check didn't catch it. Can you teach CMake to generate
> intltool checks?
>
> Regards,
> John Ralls
>
> Begin forwarded message:
>
> *From: *Travis CI 
> *Subject: **Still Failing: Gnucash/gnucash#778 (master - 1774de7)*
> *Date: *November 17, 2016 at 5:21:09 PM PST
> *To: *
>
> *Gnucash / gnucash * (master
> )
> Build #778 is still failing.
> 
> 10 minutes and 41 seconds
> *John Ralls* 1774de7
> 
>  Changeset
> → 
>   Fix Travis build errors.
>
> *Want to know about upcoming build environment updates?*
>
> Would you like to stay up-to-date with the upcoming Travis CI build
> environment updates? We set up a mailing list for you! Sign up here
> .
> Documentation  about Travis CI
> Need help? Mail support !
> Choose who receives these build notification emails in your configuration
> file .
>
> *Would you like to test your private code?*
>
> Travis CI for Private Projects
> 
> could be your new best friend!
>
>
>
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Nightly Documentation Builds

2016-11-18 Thread Derek Atkins
... except it failed again last night.

-derek

"Derek Atkins"  writes:

> Huh..  I just ran it by hand and it worked...  Not sure why the nightly
> failed.   I'm trying it again.
>
> -derek
>
> On Wed, November 16, 2016 8:16 pm, Derek Atkins wrote:
>> Hi,
>>
>> Sorry, I should have mentioned it (but I've been busy) --- the docs build
>> is broken.  It takes manual effort to get the error, I only get a "build
>> failed" email (which literally says "gnucash-docs build failed" and
>> nothing more).
>>
>> I'll try to go take a look tonight.
>>
>> -derek
>>
>> On Wed, November 16, 2016 7:57 pm, Chris Good wrote:
>>> Hi,
>>>
>>>
>>>
>>> Re Lots in Account documentation.
>>>
>>> The guide was updated the day after my PR was merged (I think) but the
>>> help
>>> (http://code.gnucash.org/docs/C/gnucash-help.pdf) was merged Nov 14 and
>>> has
>>> not been updated yet.
>>>
>>> Is there something wrong with the Nightly Doc Builds or is it not
>>> automatic?
>>>
>>>
>>>
>>> Regards,
>>>
>>> Chris Good
>>>
>>>
>>>
>>> ___
>>> gnucash-devel mailing list
>>> gnucash-devel@gnucash.org
>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>>>
>>
>>
>> --
>>Derek Atkins 617-623-3745
>>de...@ihtfp.com www.ihtfp.com
>>Computer and Internet Security Consultant
>>
>> ___
>> gnucash-devel mailing list
>> gnucash-devel@gnucash.org
>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>>

-- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   warl...@mit.eduPGP key available
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel