Operating System - HP-UX
1825701 Members
3295 Online
109686 Solutions
New Discussion

Re: crack-5.0 under hpux-11.00

 
Martin Christov
Advisor

crack-5.0 under hpux-11.00

Hallo folks,
i am trying to compile crack-5.0 using gcc 2.95.2 and binutils 2.9.1. Has somebody already completed these challenge under hpux-11.00? I have tried with
CFLAGS="-g -O2 -Wall $C5FLAGS"
and
CFLAGS="-O4 -fomit-frame-pointer -funroll-loop".
Both returns an error.
Thanks in advance for any advice!
sudo question
2 REPLIES 2
Martin Christov
Advisor

Re: crack-5.0 under hpux-11.00

Yesterday i've installed HP-ANSI/C-Compiler and tried to compile the crack-5.0. This was the solution for my problem.
sudo question
Gram Ludlow
Frequent Advisor

Re: crack-5.0 under hpux-11.00

I just successfully compiled crack 5.0 on HPUX 11.00, using GCC (not asci C compiler). All I id was un-comment out the lines for GCC and commented the lines for cc. I set PATH=$PATH:/opt/gcc/bin:/opt/binutils/bin
and in the crack dir, did a chmod -R 777 *
To allow write-permissions in that dir (I uncompressed as user, compiler as root).

I used the following steps:
i. vi ./Crack

I un-commented this for GCC:

# vanilla unix cc
# CC=cc
# CFLAGS="-g -O $C5FLAGS"
#LIBS=-lcrypt # uncomment only if necessary to use stdlib crypt(), eg: NetBSD MD
5

# gcc 2.7.2
CC=/opt/gcc/bin/gcc
CFLAGS="-g -O2 -Wall $C5FLAGS"
LIBS=-lcrypt # uncomment only if necessary



I then went into ./src/libdes and vi ./Makefile

I changed the commenting into this:

#CC=cc
#CFLAGS= -O $(OPTS) $(CFLAG)

CC=gcc
CFLAGS= -O4 -fomit-frame-pointer -funroll-loops $(OPTS) $(CFLAG)

Hope this works for you, too!
Turning and turning in the widening gyre,