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

fix: plugin_loader compilation errors across different version of glibc #81

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

leogr
Copy link
Member

@leogr leogr commented Aug 30, 2023

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area build

/area plugin-sdk

/area tests

What this PR does / why we need it:

This is a follow-up PR for #80

Unfortunately, #80 worked only for glibc >= 2.38. This PR always uses the same strlcpy internal implementation, so it works in any case.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Since we don't use cmake here, we can't just decide a built time which declaration to use (as we do in libs)

Does this PR introduce a user-facing change?:

fix: address `strlcpy` declaration error at compile time

We can't declare this func, since it may be already declared. We will switch to a internal declaration only for the plugin loader.

Signed-off-by: Leonardo Grasso <[email protected]>
@leogr leogr force-pushed the fix/plugin-loader-compilation-errors branch from f489e30 to 3396f99 Compare August 30, 2023 13:08
@poiana poiana added size/L and removed size/M labels Aug 30, 2023
@leogr leogr changed the title wip: fix: plugin_loader compilation errors across different version of glibc fix: plugin_loader compilation errors across different version of glibc Aug 30, 2023
@leogr
Copy link
Member Author

leogr commented Aug 30, 2023

/kind bug

@poiana
Copy link

poiana commented Aug 30, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jasondellaluce, leogr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [jasondellaluce,leogr]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 9130ff4 into main Aug 30, 2023
3 checks passed
@poiana poiana deleted the fix/plugin-loader-compilation-errors branch August 30, 2023 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants