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

libs: Fix libmagic build on macOS #7915

Merged
merged 1 commit into from
Feb 4, 2023

Conversation

Smjert
Copy link
Member

@Smjert Smjert commented Jan 17, 2023

Only rename strlcat and strlcpy on Linux,
otherwise the library will try to use the renamed functions which are not provided by the library anymore.

The compilation did not fail on the CI due to linker magic that drops functions that call those strlcat and strlcpy functions. When compiling with ASAN enabled though the callers are not dropped anymore, causing a linking error.

Only rename strlcat and strlcpy on Linux,
otherwise the library will try to use the renamed functions
which are not provided by the library anymore.
@Smjert Smjert added bug build libraries For things referring to osquery third party libraries labels Jan 17, 2023
@Smjert Smjert requested review from a team as code owners January 17, 2023 21:32
@Smjert Smjert added this to the 5.8.0 milestone Jan 31, 2023
@Smjert Smjert merged commit f65393f into osquery:master Feb 4, 2023
@Smjert Smjert deleted the stefano/libs/fix-libmagic-macos branch February 4, 2023 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug build libraries For things referring to osquery third party libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants