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

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

Open
PenChien opened this issue Mar 9, 2022 · 8 comments
Open

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

PenChien opened this issue Mar 9, 2022 · 8 comments

Comments

@PenChien
Copy link

PenChien commented Mar 9, 2022

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
Copy link

Same thing here, Ubuntu 21.04

@dudeisbrendan03
Copy link

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

@dudeisbrendan03
Copy link

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
Copy link

Djarid commented Sep 28, 2022

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

@dudeisbrendan03
Copy link

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

@mstrbgn
Copy link

mstrbgn commented Nov 4, 2022

@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
Copy link

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
Copy link

a274688 commented Aug 14, 2023

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.

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

6 participants