Open lzlrd opened 4 years ago
After upgrading, I'm getting the following:
$ make -j$(nproc) gcc -fPIC -fno-stack-protector -c -I/usr/local/ssl/include -DHASH_ROUNDS=1000 -DDB_PATH='"/usr/share/duress"' adduser.c gcc -fPIC -fno-stack-protector -c -I/usr/local/ssl/include -DHASH_ROUNDS=1000 -DDB_PATH='"/usr/share/duress"' deluser.c gcc -fPIC -fno-stack-protector -c -I/usr/local/ssl/include -DHASH_ROUNDS=1000 -DDB_PATH='"/usr/share/duress"' pam_duress.c gcc -L/usr/local/ssl/lib -lcrypto deluser.o -o deluser gcc -L/usr/local/ssl/lib -lcrypto adduser.o -o adduser gcc -L/usr/local/ssl/lib -lcrypto -shared pam_duress.o -o pam_duress.so /usr/bin/ld: deluser.o: in function `sha256hash': deluser.c:(.text+0x75): undefined reference to `SHA256_Init' /usr/bin/ld: deluser.c:(.text+0x97): undefined reference to `SHA256_Update' /usr/bin/ld: deluser.c:(.text+0xaa): undefined reference to `SHA256_Final' /usr/bin/ld: deluser.o: in function `pbkdf2hash': deluser.c:(.text+0xc9): undefined reference to `EVP_sha256' /usr/bin/ld: deluser.c:(.text+0x10a): undefined reference to `PKCS5_PBKDF2_HMAC' collect2: error: ld returned 1 exit status make: *** [Makefile:22: deluser] Error 1 make: *** Waiting for unfinished jobs.... /usr/bin/ld: adduser.o: in function `sha256hash': adduser.c:(.text+0x75): undefined reference to `SHA256_Init' /usr/bin/ld: adduser.c:(.text+0x97): undefined reference to `SHA256_Update' /usr/bin/ld: adduser.c:(.text+0xaa): undefined reference to `SHA256_Final' /usr/bin/ld: adduser.o: in function `pbkdf2hash': adduser.c:(.text+0xc9): undefined reference to `EVP_sha256' /usr/bin/ld: adduser.c:(.text+0x10a): undefined reference to `PKCS5_PBKDF2_HMAC' /usr/bin/ld: adduser.o: in function `genSalt': adduser.c:(.text+0x141): undefined reference to `RAND_bytes' /usr/bin/ld: adduser.o: in function `Encrypt': adduser.c:(.text+0x1fa): undefined reference to `EVP_aes_256_cbc' /usr/bin/ld: adduser.c:(.text+0x203): undefined reference to `EVP_sha256' /usr/bin/ld: adduser.c:(.text+0x34e): undefined reference to `EVP_BytesToKey' /usr/bin/ld: adduser.c:(.text+0x357): undefined reference to `EVP_CIPHER_CTX_new' /usr/bin/ld: adduser.c:(.text+0x3b9): undefined reference to `EVP_CIPHER_CTX_reset' /usr/bin/ld: adduser.c:(.text+0x3be): undefined reference to `EVP_aes_256_cbc' /usr/bin/ld: adduser.c:(.text+0x3e0): undefined reference to `EVP_EncryptInit_ex' /usr/bin/ld: adduser.c:(.text+0x40c): undefined reference to `EVP_EncryptUpdate' /usr/bin/ld: adduser.c:(.text+0x43f): undefined reference to `EVP_CIPHER_CTX_free' /usr/bin/ld: adduser.c:(.text+0x4d8): undefined reference to `EVP_EncryptFinal_ex' /usr/bin/ld: adduser.c:(.text+0x50b): undefined reference to `EVP_CIPHER_CTX_free' /usr/bin/ld: adduser.c:(.text+0x563): undefined reference to `EVP_CIPHER_CTX_free' collect2: error: ld returned 1 exit status make: *** [Makefile:18: adduser] Error 1
libpam-dev (selecting 'libpam0g-dev' instead of 'libpam-dev') and libssl-dev are installed.
selecting 'libpam0g-dev' instead of 'libpam-dev'
Which version of openSSL is on Debian 11 ?
Edit : Nvm gonna try this on a VM rn :smile:
@lazerl0rd You can check PR #12
Need this on Ubuntu 20.04 too.
Snap out of it.
After upgrading, I'm getting the following:
libpam-dev (
selecting 'libpam0g-dev' instead of 'libpam-dev'
) and libssl-dev are installed.