pkgsrc-Users archive

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

Re: Build failue for converters/libetonyek



On Thu, May 07, 2020 at 08:35:45AM +0900, Ryo ONODERA wrote:
> Hi,
> 
> Paul Goyette <paul%whooppee.com@localhost> writes:
> 
> > With a amd64 host running NetBSD 9.99.59, and with all dependencies 
> > having already been built clean into an initially empty sandbox, and 
> > with an up-to-date version of pkgsrc, I'm seeing the following error:
> >
> > ...
> > NUM3Parser.cpp: In member function 'virtual bool libetonyek::NUM3Parser::parseDocument()':
> > NUM3Parser.cpp:46:8: error: 'for_each' is not a member of 'std'
> >     std::for_each(sheetListRefs.begin(), sheetListRefs.end(), std::bind(&NUM3Parser::parseSheet, this, std::placeholders::_1));
> >          ^~~~~~~~
> > NUM3Parser.cpp:46:8: note: suggested alternative: 'forward'
> >     std::for_each(sheetListRefs.begin(), sheetListRefs.end(), std::bind(&NUM3Parser::parseSheet, this, std::placeholders::_1));
> >          ^~~~~~~~
> >          forward
> > ...
> >
> > This error is repeatable...
> 
> I have same problem.
> 
> std::for_aech is not defined in USE_LANGUAGES=c++0x case.
> Please try to replace c++0x with c++17 and build again.
> This works for me.
> I will commit the change later.

std::for_each is part of C++98 already. It most definitely should not
require C++17 unless there is something else wrong. Does the source even
include <algorithm>?

Joerg


Home | Main Index | Thread Index | Old Index