Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile in Fedora 36 - std::iterator is deprecated #292

Closed
edigiacomo opened this issue Aug 24, 2022 · 2 comments
Closed

Cannot compile in Fedora 36 - std::iterator is deprecated #292

edigiacomo opened this issue Aug 24, 2022 · 2 comments
Assignees

Comments

@edigiacomo
Copy link
Member

From https://simc.arpae.it/moncic-ci/arkimet/202208240820/master/fedora36/build.log:

2022-08-24 10:22:39 INFO system.fedora36 stderr: In file included from core/file.h:4,
2022-08-24 10:22:39 INFO system.fedora36 stderr:                  from core/file.cc:1:
2022-08-24 10:22:39 INFO system.fedora36 stderr: ../arki/utils/sys.h:369:35: error: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Werror=deprecated-declarations]
2022-08-24 10:22:39 INFO system.fedora36 stderr:   369 |     struct iterator : public std::iterator<std::input_iterator_tag, struct dirent>
2022-08-24 10:22:39 INFO system.fedora36 stderr:       |                                   ^~~~~~~~
2022-08-24 10:22:39 INFO system.fedora36 stderr: In file included from /usr/include/c++/12/string:45,
2022-08-24 10:22:39 INFO system.fedora36 stderr:                  from ../arki/utils/sys.h:11:
2022-08-24 10:22:39 INFO system.fedora36 stderr: /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
2022-08-24 10:22:39 INFO system.fedora36 stderr:   127 |     struct _GLIBCXX17_DEPRECATED iterator
2022-08-24 10:22:39 INFO system.fedora36 stderr:       |                                  ^~~~~~~~
2022-08-24 10:22:40 INFO system.fedora36 stderr: cc1plus: all warnings being treated as errors
@spanezz
Copy link
Contributor

spanezz commented Aug 25, 2022

Oddly I cannot reproduce this error on my fedora36 container. However, I did find another missing include on fedora36 that I fixed and pushed

@spanezz
Copy link
Contributor

spanezz commented Aug 25, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants