1834018 Members
2336 Online
110063 Solutions
New Discussion

Compiling crack

 
SOLVED
Go to solution
Bryan_6
Frequent Advisor

Compiling crack

I'm trying to compile the crack program on HPUX 10.20 and I'm receiving the following error:

cracker.c: In function `Logger':
cracker.c:108: warning: implicit declaration of function `time'
cracker.c: In function `OpenDictStream':
cracker.c:684: warning: implicit declaration of function `popen'
cracker.c:684: warning: assignment makes pointer from integer without a cast
cracker.c:720: warning: implicit declaration of function `pclose'
cracker.c: In function `main':
cracker.c:991: warning: implicit declaration of function `close'
cracker.c:1038: warning: implicit declaration of function `nice'
cracker.c:1061: warning: implicit declaration of function `getpid'
cracker.c:1085: `SIGHUP' undeclared (first use in this function)
cracker.c:1085: (Each undeclared identifier is reported only once
cracker.c:1085: for each function it appears in.)
cracker.c:1087: `SIGQUIT' undeclared (first use in this function)
make[2]: *** [../../run/bin/hp-ux-b-unknown/libdes-cracker] Error 1
make[2]: Leaving directory `/tmp_mnt/net/socuxs03/home/bbaars/security.utils/crack/c50a/src/util'
make[1]: *** [../../run/bin/hp-ux-b-unknown/cracker] Error 2
make[1]: Leaving directory `/home/build/security.utils/crack/c50a/src/util'
make: *** [utils] Error 1

Can anyone give me some guidance on getting this to compile successfully?

Thanks
3 REPLIES 3
harry d brown jr
Honored Contributor

Re: Compiling crack


Yes:

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/crack-5.0/


live free or die
harry
Live Free or Die
Bryan_6
Frequent Advisor

Re: Compiling crack

That appears to be the same doc that comes with the crack source. Unfortunately, there was nothing in there to help.

However, I did edit the cracker.c source to comment out the SIG??? declarations, which helped the compile to complete successfully.
Deepak Extross
Honored Contributor
Solution

Re: Compiling crack

SIG* is defined in /usr/include/sys/signal.h

It looks like your code is missing a
#include

HTH