On 2/23/2022 5:36 PM, rusty the hermit wrote:
$ git clone https://git.sr.ht/~kennylevinsen/greetd
$ cd greetd/
$ cargo build --release
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/home/gorn/Desktop/git/greeter/greetd/target/release/deps/greetd-a0c6ef9c2ba09bb2.greetd.73906aa5-cgu.0.rcgu.o" "-Wl,--as-needed" "-L" "/home/gorn/Desktop/git/greeter/greetd/target/release/deps" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group"
"-Wl,--end-group" "-Wl,-Bstatic" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-5667a4a7e2c48d47.rlib" "-Wl,-Bdynamic" "-lpam" "-lpam_misc" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr"
"-Wl,-znoexecstack" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/gorn/Desktop/git/greeter/greetd/target/release/deps/greetd-a0c6ef9c2ba09bb2" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs"
= note: /usr/bin/ld: cannot find -lpam: No such file or directory
/usr/bin/ld: cannot find -lpam_misc: No such file or directory
collect2: error: ld returned 1 exit status
warning: `greetd` (bin "greetd") generated 2 warnings
error: could not compile `greetd` due to previous error; 2 warnings emitted
$ ls /usr/lib64|grep pam
lrwxrwxrwx 1 0 0 17 libpamc.so.0 -> libpamc.so.0.82.1*
-rwxr-xr-x 1 0 0 18488 libpamc.so.0.82.1*
lrwxrwxrwx 1 0 0 21 libpam_misc.so.0 -> libpam_misc.so.0.82.1*
-rwxr-xr-x 1 0 0 18512 libpam_misc.so.0.82.1*
lrwxrwxrwx 1 0 0 16 libpam.so.0 -> libpam.so.0.84.2*
-rwxr-xr-x 1 0 0 63624 libpam.so.0.84.2*
the development versions of these libraries (ending in .so) are not installed
in your setup,
only the runtime versions