Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Errors on AIX with C++20

Open
#445 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp
Domain
networking

Research direction

Start by reproducing the Boost.Beast sample compilation on AIX with C++20 and inspect boost/asio/detail/impl/descriptor_ops.ipp around line 197, where the FIONBIO ioctl call reports the conversion error. Determine the platform-specific cause and verify that the samples compile without the reported error and warning.

Written by the indexing model from the issue text.

Description

I am trying to compile the boost beast sample programs using boost-1.87.0

I am getting the below errors:

In file included from /boost/boost/asio.hpp:38:
In file included from /boost/boost/asio/basic_readable_pipe.hpp:39:
In file included from /boost/boost/asio/detail/reactive_descriptor_service.hpp:32:
In file included from /boost/boost/asio/detail/descriptor_ops.hpp:174:
/boost/boost/asio/detail/impl/descriptor_ops.ipp:197:25: error: implicit conversion from 'unsigned long' to 'int' changes value from 18446744071562356350 to -2147195266 [-Werror,-Wconstant-conversion]
  197 |     result = ::ioctl(d, FIONBIO, &arg);
      |              ~~         ^~~~~~~

So, was wondering if any have faced the same issue?

Dominant language
C++
Stars
1.6k
Forks
485
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/asio

All issues in boostorg/asio

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.