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

compile with cmake : linking (error) #29

Open
linuxpham opened this issue Jan 9, 2020 · 3 comments
Open

compile with cmake : linking (error) #29

linuxpham opened this issue Jan 9, 2020 · 3 comments

Comments

@linuxpham
Copy link

[100%] Linking CXX executable bin/xapiand
/tmp/ccCJI9fa.ltrans2.ltrans.o: In function main': <artificial>:(.text.startup+0x6bf): undefined reference to cap_init'
:(.text.startup+0x6f5): undefined reference to cap_set_flag' <artificial>:(.text.startup+0x715): undefined reference to cap_set_flag'
:(.text.startup+0x725): undefined reference to cap_set_proc' <artificial>:(.text.startup+0x771): undefined reference to cap_clear'
:(.text.startup+0x7a5): undefined reference to cap_set_flag' <artificial>:(.text.startup+0x7c5): undefined reference to cap_set_flag'
:(.text.startup+0x7d5): undefined reference to `cap_set_proc'
collect2: error: ld returned 1 exit status
CMakeFiles/xapiand.dir/build.make:803: recipe for target 'bin/xapiand' failed
make[2]: *** [bin/xapiand] Error 1
CMakeFiles/Makefile2:243: recipe for target 'CMakeFiles/xapiand.dir/all' failed
make[1]: *** [CMakeFiles/xapiand.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

@Kronuz
Copy link
Owner

Kronuz commented Jan 9, 2020

Please share information about your OS and compiler including exact versions

@linuxpham
Copy link
Author

linuxpham commented Jan 9, 2020

OS : Linux 5.0.0-37-generic #4018.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Compiler :
gcc (Ubuntu 8.3.0-6ubuntu1
18.04.1) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
g++ (Ubuntu 8.3.0-6ubuntu1~18.04.1) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@YosefMac
Copy link
Collaborator

I think It should be fixed by 009cfac Would you have it a try?

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

3 participants