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

Error while compiling bear package on termux #475

Closed
mahmood601 opened this issue Aug 8, 2022 · 3 comments
Closed

Error while compiling bear package on termux #475

mahmood601 opened this issue Aug 8, 2022 · 3 comments
Labels

Comments

@mahmood601
Copy link

mahmood601 commented Aug 8, 2022

After I had install dependences and clone the project, I compiled the project and I saw this massage:
[ 44%] Building CXX object intercept/CMakeFiles/exec_a.dir/source/report/libexec/Resolver.cc.o
/data/data/com.termux/files/home/git/Bear/source/intercept/source/report/libexec/Resolver.cc:86:55: error:
use of undeclared identifier '_CS_PATH'
const size_t search_path_length = confstr(_CS_PATH...
^
/data/data/com.termux/files/home/git/Bear/source/intercept/source/report/libexec/Resolver.cc:89:23: error:
no member named 'confstr' in the global namespace
if (::confstr(_CS_PATH, search_path, search_pa...
~~^
/data/data/com.termux/files/home/git/Bear/source/intercept/source/report/libexec/Resolver.cc:89:31: error:
use of undeclared identifier '_CS_PATH'
if (::confstr(_CS_PATH, search_path, search_pa...
^
3 errors generated.
make[5]: *** [intercept/CMakeFiles/exec_a.dir/build.make:160: intercept/CMakeFiles/exec_a.dir/source/report/libexec/Resolver.cc.o] Error 1
make[4]: *** [CMakeFiles/Makefile2:542: intercept/CMakeFiles/exec_a.dir/all] Error 2
make[3]: *** [Makefile:136: all] Error 2
make[2]: *** [CMakeFiles/BearSource.dir/build.make:87: subprojects/Stamp/BearSource/BearSource-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:174: CMakeFiles/BearSource.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

@rizsotto
Copy link
Owner

Hey @mahmood601, please give some context, otherwise I can't help. (Look at the issue template what sort of information would be helpful. Also consider to share the tool names/version for compilation error.)

@mahmood601
Copy link
Author

Environment:

  • OS name: linux
  • OS version: android/termux
  • OS architecture: aarch64
  • Bear version: 3.0.20
  • Bear install method: from source
    Build Tools: cmake version 3.23.2 & make
    (I followed the installation instructions which you had written in the README.md)

@rizsotto
Copy link
Owner

Thanks @mahmood601 to come back with the details... It looks like the Resolver.cc does not check the HAVE_CS_PATH.

@rizsotto rizsotto reopened this Aug 10, 2022
@rizsotto rizsotto added the bug label Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants