Merged
Conversation
Contributor
fengidri
commented
Aug 1, 2025
- fix undefined reference to symbol 'shm_open@@GLIBC_2.2.5'
- fix miss optimus.ops from tests/benchmark/bmk_comm_latency_multiserver.py
Remove unused packet. Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
This project uses the librt interfaces, such as the shm_open family of functions. In some Linux distributions, librt has already been merged into glibc, so the rt library is not explicitly needed. However, in some other distributions, linking errors may occur, such as the one shown below. By adding -lrt during linking, we can ensure better compatibility across different systems. This does not cause any problems on distributions where librt is already included in glibc, as the required symbols are still accessible. /usr/bin/ld: ../../libaf.a(van.cc.o): undefined reference to symbol 'shm_open@@GLIBC_2.2.5' /usr/bin/ld: /usr/lib64/librt.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Collaborator
Collaborator
|
lgtm |
1 similar comment
Collaborator
|
lgtm |
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.