-
Notifications
You must be signed in to change notification settings - Fork 314
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
Fix trixie compilation #1040
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
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]>
b898e4b
to
e66b0be
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
With the base image upgrade to Trixie, Bookworm-based containers will need to use Boost 1.83. This is because of an incompatibility between rsyslog_plugin that uses Boost 1.83 on Trixie and the eventd container that uses Boost 1.74 on Bookworm; specifically there is an incompatiblity with serialization of objects between the two versions of Boost. Because of this, allow applications to compile with Boost 1.83 headers. Signed-off-by: Saikrishna Arcot <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Cherry-pick PR to msft-202506: Azure/sonic-swss-common.msft#52 |
@prabhataravind What's the reason for needing this in the msft-202506 branch? None of the fixes/changes here should be needed in any current branch, I think. |
@saiarcot895 We usually cherry-pick only smartswitch related and build fixes from master to 202506 branch for swss-common, sairedis and dash-api, dash-ha repos. I took this change to avoid potential conflicts/build issues down the line. |
Make some changes to fix compilation for Debian Trixie. This includes:
BinarySerializer
.<stdexcept>
.SWIG_AppendOutput
instead ofSWIG_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 useSWIG_AppendOutput
.pclose
as a function pointer intostd::unique_ptr
.[1][1] This is based on https://stackoverflow.com/a/76867913