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, 7 May 2020, 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.

Yes, that change makes it work.  Thank you!


+--------------------+--------------------------+-----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost     |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost   |
+--------------------+--------------------------+-----------------------+


Home | Main Index | Thread Index | Old Index