Open PenChien opened 2 years ago
Same thing here, Ubuntu 21.04
https://github.com/antirez/sds/ got it!
ld -lsds
CC pam_aad_la-pam_aad.lo
CCLD pam_aad.la
/usr/bin/ld: cannot find -lsds
collect2: error: ld returned 1 exit status
make: *** [Makefile:438: pam_aad.la] Error 1
I'm at the same stage @dudeisbrendan03 did you ever resolve this?
Not something I've touched for a while, https://github.com/antirez/sds could fit the puzzle though
@Djarid @dudeisbrendan03 if you are using ubuntu than search for libsds library in apt cache using "apt search libsds-dev" and install the library using "apt install libsdsl-dev libsdsl3" now create a soft link between libsdsl.so library and libsds.so. because the command "ld -lsds --verbose" point to libsds.so file apt install libsdsl-dev libsdsl3 mkdir -p /usr/local/lib/x86_64-linux-gnu/ ln -s /usr/lib/x86_64-linux-gnu/libsdsl.so /usr/local/lib/x86_64-linux-gnu/libsds.so ln -s /usr/lib/x86_64-linux-gnu/libsdsl.a /usr/local/lib/x86_64-linux-gnu/libsds.a
I am also stuck with the same error, pam_aad.c:4:10: fatal error: sds/sds.h: No such file or directory
@mstrbgn installing libsdsl-dev libsdsl3 and the above commands didnt work
create sds directory in pam_aad directory
create libs directory in pam_aad directory
download aforementioned sds zip file from the git_repo and extract in the sds directory
using libtool to create library object
libtool --mode=compile gcc -g -O -c sds.c
copy sds.lo to the libs directory
remove -lsds from Makefile
make works fine now.
I am add pam_add on ubuntu and met this error as below.
I have google sds/sds.h but no useful result to fix this issue. How can I do for next?