Skip to content

Slic3r fails to build against Boost 1.88 due removal of asio::io_service #5197

@onitake

Description

@onitake

Describe the bug
asio::io_service was deprecated in Boost 1.66, but it was still available as an alias until Boost 1.87. It was removed in Boost 1.88.
The new name is: asio::io_context

To Reproduce
Steps to reproduce the behavior:

  1. Install Boost 1.88
  2. Build Slic3r against Boost 1.88
  3. Wait for the error:
src/libslic3r/GCodeSender.hpp:40:11: error: ‘io_service’ in namespace 
‘Slic3r::asio’ does not name a type; did you mean ‘use_service’?
   40 |     asio::io_service io;
      |           ^~~~~~~~~~
      |           use_service

3D Model and Slic3r Configuration Export
N/A

Expected behavior
Slic3r should build against Boost 1.88.

Screenshots
N/A

Desktop (please complete the following information):

  • OS: Debian Linux sid/forky
  • Version 1.3.0

Additional context
This problem was discovered during a rebuild of the Debian package of Slic3r against Boost 1.88: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1110676

A similar issue was reported here: chriskohlhoff/asio#1653
Further information and a link to the asio/boost::asio changelog can be found there.

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