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

Still have same issue as link error shown(libsecurity.so) during compilation in Ubuntu 16.04 #31

Closed
doc321 opened this issue Jun 10, 2018 · 2 comments

Comments

@doc321
Copy link

doc321 commented Jun 10, 2018

Please use this template for reporting suspected bugs or requests for help.

Issue Description

Still have same issue as link error shown(libsecurity.so) during compilation in Ubuntu 16.04
after try on 6/10 version

Environment

  • tag or commit hash on which this occured
  • OS version: <e.g. ubuntu-16.04>
    ...
    Ubuntu-16.04 on VitrualBox

Minimal test code / Steps to reproduce the issue

sudo bash build_openr.sh

What's the actual result?

[ 69%] Linking CXX executable netlink_route_socket_test [ 69%] Built target netlink_route_socket_test Scanning dependencies of target health_checker_test [ 70%] Building CXX object CMakeFiles/health_checker_test.dir/health-checker/tests/HealthCheckerTest.cpp.o [ 71%] Linking CXX executable health_checker_test [ 71%] Built target health_checker_test Scanning dependencies of target link_monitor_test [ 71%] Building CXX object CMakeFiles/link_monitor_test.dir/link-monitor/tests/LinkMonitorTest.cpp.o [ 72%] Building CXX object CMakeFiles/link_monitor_test.dir/link-monitor/tests/MockNetlinkSystemHandler.cpp.o [ 72%] Linking CXX executable link_monitor_test /usr/local/lib/libsecurity.so: undefined reference to `error_message(long)' collect2: error: ld returned 1 exit status CMakeFiles/link_monitor_test.dir/build.make:143: recipe for target 'link_monitor_test' failed make[2]: *** [link_monitor_test] Error 1 CMakeFiles/Makefile2:554: recipe for target 'CMakeFiles/link_monitor_test.dir/all' failed make[1]: *** [CMakeFiles/link_monitor_test.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2

What's the expected result?

Compile Successfully

@saifhhasan
Copy link
Contributor

Oh .. I fixed workflow for fbcode_builder. If you pull latest krb5 library from source, build it and install it and follow open/r build workflow then it should succeed.

c6f6b63 will do that for you. Pull latest code and try building again. If it succeed you can close this task, if it fails we would encourage you contribute pull request fixes if you have cycles for it.

@doc321
Copy link
Author

doc321 commented Jun 13, 2018

Clone the lastest code, compile successfully now. Thanks your new commit, Saifhhasan.

@doc321 doc321 closed this as completed Jun 13, 2018
Atry added a commit to Atry/openr that referenced this issue Sep 1, 2022
…g::glog (facebook#31)

Summary:
X-link: facebook/fb303#31

Previously Folly provided a polyfill of the `GflagsFlagSaver` symbol, which was removed since facebook/folly@4dadde1. Therefore, the `glog` should solve the `GflagsFlagSaver` symbol from `gflags`.

This diff added `gflags` libraries as a dependency of the CMake project `glog::glog` into `fbcode_builder`'s `FindGlog.cmake`, so that the `fbcode_builder` users will be able to automatically link with `gflags`.

Differential Revision: D39220438

fbshipit-source-id: 579c3b8c4a9ee9f250c6678f28d40b8269bc4c4a
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

No branches or pull requests

2 participants