Fix CodeQL cpp build failure by linking libyang#342
Draft
Copilot wants to merge 1 commit into
Draft
Conversation
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job CodeQL / Analyze (cpp)
Fix CodeQL cpp build failure by linking libyang
Jun 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
Resolve the failing
CodeQL / Analyze (cpp)job caused by a link-time dependency gap afterswsscommonmoved tolibyang.so.3.This PR adds
libyangto the link set used forlinkmgrdbinaries.Type of change
Approach
What is the motivation for this PR?
The CodeQL C++ workflow fails during the build phase (before analysis) with undefined
ly_*symbols fromlibswsscommon.so, indicatinglibyangis required but not linked by this repo.Work item tracking
How did you do it?
objects.mkto include-lyanginLIBS.How did you verify/test it?
Confirmed the generated
release-targetslinker command now contains-lyang, which addresses the missinglibyang.so.3symbols seen in the failing job logs.Any platform specific information?
Targets the Ubuntu GitHub Actions environment used by CodeQL where
swsscommonlinks againstlibyang.so.3.Documentation
No documentation update required (build/link dependency correction only).