Skip to content

Fix trixie compilation #1040

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

saiarcot895
Copy link
Contributor

Make some changes to fix compilation for Debian Trixie. This includes:

  • Don't mark m_buffer as const, since the memory that it's pointing to is anyways modified by BinarySerializer.
  • Add support for compiling with libhiredis 1.1.0.
  • Add a missing include for <stdexcept>.
  • Use SWIG_AppendOutput instead of SWIG_Python_AppendOutput, as the latter now takes another parameter to indicate if the function's return type is void, and the recommendation appears to be to just use SWIG_AppendOutput.
  • Add a workaround for GCC complaining about attributes being ignored in a template argument when passing in pclose as a function pointer into std::unique_ptr.[1]

[1] This is based on https://stackoverflow.com/a/76867913

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft qiluo-msft enabled auto-merge (squash) July 14, 2025 18:36
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Make some changes to fix compilation for Debian Trixie. This includes:
* Don't mark m_buffer as const, since the memory that it's pointing to
  is anyways modified by `BinarySerializer`.
* Add support for compiling with libhiredis 1.1.0.
* Add a missing include for `<stdexcept>`.
* Use `SWIG_AppendOutput` instead of `SWIG_Python_AppendOutput`, as the
  latter now takes another parameter to indicate if the function's
  return type is void, and the recommendation appears to be to just use
  `SWIG_AppendOutput`.
* Add a workaround for GCC complaining about attributes being ignored in
  a template argument when passing in `pclose` as a function pointer
  into `std::unique_ptr`.[1]

[1] This is based on https://stackoverflow.com/a/76867913

Signed-off-by: Saikrishna Arcot <[email protected]>
@saiarcot895 saiarcot895 force-pushed the fix-trixie-compilation branch from b898e4b to e66b0be Compare July 15, 2025 19:08
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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

Successfully merging this pull request may close these issues.

4 participants