Skip to content
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

[202405] Fix compilation error on Buster #1483

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

Junchao-Mellanox
Copy link
Contributor

There is issue causing compilation failures of sairedis on Buster. Since the SONiC PTF container is still based on Buster, sairedis still needs to compile for Buster.

The TestSyncd.cpp file uses the MOCK_METHOD macro. However, this macro is available only from version 1.10 of gmock, but Buster has version 1.8.1. As a simple fix, check to see if MOCK_METHOD is defined; if not, then don't compile this test.

@bingwang-ms
Copy link
Contributor

LGTM. Thanks for the fix!

@kcudnik
Copy link
Collaborator

kcudnik commented Dec 10, 2024

so how come in previous version of ubuntu this compiles fine ? do they downgraded gmock ?

@kcudnik kcudnik merged commit e7dc0d2 into sonic-net:202405 Dec 10, 2024
17 checks passed
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.

3 participants