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

Added debug version for library names #227

Merged
merged 1 commit into from
Apr 8, 2020
Merged

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented Apr 8, 2020

I have seen this error on the buildfarm in PluginLib. Requesting for a missing reference class_loader::systemLibrarySuffix this function was removed from class_loader. I integrate this on rcutils

(.text._ZN9pluginlib11ClassLoaderIN9test_base5FubarEE23getAllLibraryPathsToTryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESB_[_ZN9pluginlib11ClassLoaderIN9test_base5FubarEE23getAllLibraryPathsToTryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESB_]+0x415): undefined reference to `class_loader::systemLibrarySuffix[abi:cxx11]()'
21:35:03 /usr/bin/ld: unique_ptr_test.cpp:

Signed-off-by: ahcorde ahcorde@gmail.com

Signed-off-by: ahcorde <ahcorde@gmail.com>
}
#elif _WIN32
if (buffer_size >= (strlen(library_name) + 7)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for the record: the 7 was incorrect before and is being fixed in this patch.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it's just not trivial for me to see, but would it make sense to set this hardcoded numbers to constants to give some semantics to it?

@ahcorde
Copy link
Contributor Author

ahcorde commented Apr 8, 2020

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@ahcorde ahcorde merged commit 2daeb12 into master Apr 8, 2020
@delete-merged-branch delete-merged-branch bot deleted the ahcorde/fix/debug_libraries branch April 8, 2020 21:43
jacobperron added a commit that referenced this pull request Apr 9, 2020
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