Skip to content

Boost.Process V2 doesn't compile with musl library #469

Open
@o01eg

Description

@o01eg

If I try to build code which works with glibc freeorion/freeorion#5156 it failes to build on Void linux with musl library:

2025-03-11T03:42:09.7575013Z /usr/include/boost/process/v2/posix/detail/close_handles.ipp: In function 'void boost::process::v2::posix::detail::close_all(const std::vector<int>&, boost::system::error_code&)':
2025-03-11T03:42:09.7576711Z /usr/include/boost/process/v2/posix/detail/close_handles.ipp:128:15: error: '::close_range' has not been declared; did you mean 'copy_range'?
2025-03-11T03:42:09.7578069Z   128 |             ::close_range(0, whitelist.front() - 1, CLOSE_RANGE_UNSHARE);
2025-03-11T03:42:09.7578554Z       |               ^~~~~~~~~~~
2025-03-11T03:42:09.7578891Z       |               copy_range
2025-03-11T03:42:09.7579757Z /usr/include/boost/process/v2/posix/detail/close_handles.ipp:138:19: error: '::close_range' has not been declared; did you mean 'copy_range'?
2025-03-11T03:42:09.7580810Z   138 |                 ::close_range(mine + 1, next - 1, CLOSE_RANGE_UNSHARE);
2025-03-11T03:42:09.7581305Z       |                   ^~~~~~~~~~~
2025-03-11T03:42:09.7581672Z       |                   copy_range
2025-03-11T03:42:09.7582604Z /usr/include/boost/process/v2/posix/detail/close_handles.ipp:142:11: error: '::close_range' has not been declared; did you mean 'copy_range'?
2025-03-11T03:42:09.7583836Z   142 |         ::close_range(whitelist.back() + 1, std::numeric_limits<int>::max(), CLOSE_RANGE_UNSHARE);
2025-03-11T03:42:09.7584466Z       |           ^~~~~~~~~~~
2025-03-11T03:42:09.7584805Z       |           copy_range
2025-03-11T03:42:09.7585693Z /usr/include/boost/process/v2/posix/detail/close_handles.ipp:145:11: error: '::close_range' has not been declared; did you mean 'copy_range'?
2025-03-11T03:42:09.7586932Z   145 |         ::close_range(0, std::numeric_limits<int>::max(), CLOSE_RANGE_UNSHARE);
2025-03-11T03:42:09.7587491Z       |           ^~~~~~~~~~~
2025-03-11T03:42:09.7587829Z       |           copy_range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions