pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Build failure for finance/gnucash



> With up-to-date pkgsrc on amd64 running NetBSD 9.99.59 I'm getting a
> repeatable build failure for gnucash.  The first error noted is
> 
> ...
> Scanning dependencies of target gncmod-ledger-core
> /tmp/pkgs/finance/gnucash/work.x86_64/gnucash-3.10/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp: In function 'void csv_price_imp_preview_settings_text_inserted_cb(GtkEditable*, gchar*, gint, gint*, CsvImpPriceAssist*)':
> /tmp/pkgs/finance/gnucash/work.x86_64/gnucash-3.10/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp:270:10: error: 'replace' is not a member of 'std'
>     std::replace (mod_txt.begin(), mod_txt.end(), '[', '(');
>          ^~~~~~~
> /tmp/pkgs/finance/gnucash/work.x86_64/gnucash-3.10/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp:271:10: error: 'replace' is not a member of 'std'
>     std::replace (mod_txt.begin(), mod_txt.end(), ']', ')');
>          ^~~~~~~

Looks like it needs C++17 compiler. Can you try setting:
USE_LANGUAGES= c c++17
?

I guess you are using GCC. Which version?

Kind regards,
Adam


Home | Main Index | Thread Index | Old Index