owl@azdaja:~/c/shadow# gcc -o promenipass promenipass.c -lshadow \ -I/sources/shadow-4.0.2 -I/sources/shadow-4.0.2/lib \ -I/sources/shadow-4.0.2/libmisc /lib/libshadow.a(commonio.o): In function ec_lock_count': commonio.o(.text+0x5f3): undefined reference to scd_flush_cache' commonio.o(.text+0x5ff): undefined reference to scd_flush_cache' collect2: ld returned 1 exit status source _________________________________________________________ promenipass.c // thiese are the include lines from passwd.c #include #include "prototypes.h" #include "defines.h" #include #include #include #include #include #include #include #include "pwauth.h" #include "shadowio.h" #include "pwio.h" #include "getdef.h" int main(void) { struct spwd *sp; if ( lckpwdf() ) { printf ("Shadow fajl nije zakljucan\n"); exit(1); } sp = getspnam("owl"); // just for test I'm not encrypting it sp->sp_pwdp="encpass"; spw_update(sp); if ( ulckpwdf() ) printf ("Now u'r in trouble\n"); return 1; }