CyberNinjas / pam_aad

Azure Active Directory PAM Module
GNU General Public License v3.0
55 stars 19 forks source link

sds/sds.h: No such file or directory #65

Open PenChien opened 2 years ago

PenChien commented 2 years ago

I am add pam_add on ubuntu and met this error as below.

pam_aad.c:4:10: fatal error: sds/sds.h: No such file or directory.

I have google sds/sds.h but no useful result to fix this issue. How can I do for next?

dudeisbrendan03 commented 2 years ago

Same thing here, Ubuntu 21.04

dudeisbrendan03 commented 2 years ago

https://github.com/antirez/sds/ got it!

dudeisbrendan03 commented 2 years ago

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
Djarid commented 2 years ago

I'm at the same stage @dudeisbrendan03 did you ever resolve this?

dudeisbrendan03 commented 2 years ago

Not something I've touched for a while, https://github.com/antirez/sds could fit the puzzle though

mstrbgn commented 1 year ago

@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

saranyareddy24 commented 1 year ago

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

a274688 commented 1 year ago

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.