Xapiand icon indicating copy to clipboard operation
Xapiand copied to clipboard

compile with cmake : linking (error)

Open linuxpham opened this issue 5 years ago • 3 comments

[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

linuxpham avatar Jan 09 '20 16:01 linuxpham

Please share information about your OS and compiler including exact versions

Kronuz avatar Jan 09 '20 18:01 Kronuz

OS : Linux 5.0.0-37-generic #40~18.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.

linuxpham avatar Jan 09 '20 18:01 linuxpham

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

YosefMac avatar Jan 10 '20 15:01 YosefMac