|
From: Urs M. <new...@bf...> - 2008-08-09 14:32:46
|
Howdy Am Fr, 8.08.2008, 22:50, schrieb Matheus Lima: > On the chpaswd.c file there is a link to this libraries, and when I try to > compile, the erros were: > #include <stdio.h> > #include <time.h> > #include <unistd.h> > > # gcc -lcrypt -O -o chpasswd chpasswd.c > chpasswd.c:11:20: error: unistd.h: No such file or directory > ... > If it means something :) It does... your gcc is missing the appropriate libraries. I guess, you have to install the libc6-dev package. I'll send you via pm a 64Bit compile of chpasswd (on OpenSuSE 11). file chpasswd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), not stripped ldd chpasswd linux-vdso.so.1 => (0x00007fff2f3fe000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fe826e9a000) libc.so.6 => /lib64/libc.so.6 (0x00007fe826b41000) /lib64/ld-linux-x86-64.so.2 (0x00007fe8270d7000) Use it, if you trust me, or try yourself. Regards, Urs |