fletcher / c-sss

Implementation of Shamir's Secret Sharing in C
http://fletcher.github.io/c-sss/
Other
63 stars 24 forks source link

recipe for target 'shamir' failed --> when running make #8

Closed CatspersCoffee closed 4 years ago

CatspersCoffee commented 5 years ago

Hi all,

having a problem building the project using make from /build directory

OS: Ubuntu 18.04.1 LTS cmake version: 3.10.2

Scanning dependencies of target libShamir
[ 11%] Building C object CMakeFiles/libShamir.dir/src/shamir.c.o
[ 22%] Building C object CMakeFiles/libShamir.dir/src/strtok.c.o
[ 33%] Linking C static library libShamir.a
[ 33%] Built target libShamir
Scanning dependencies of target shamir
[ 44%] Building C object CMakeFiles/shamir.dir/src/main.c.o
[ 55%] Building C object CMakeFiles/shamir.dir/src/d_string.c.o
[ 66%] Linking C executable shamir
/usr/bin/ld: cannot find -lbsd
collect2: error: ld returned 1 exit status
CMakeFiles/shamir.dir/build.make:121: recipe for target 'shamir' failed
make[2]: *** [shamir] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/shamir.dir/all' failed
make[1]: *** [CMakeFiles/shamir.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
fletcher commented 5 years ago

Sounds like you need to install libbsd-dev?