Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cryptcat compilation instructions

Status
Not open for further replies.

vlz

IS-IT--Management
Aug 11, 2002
56
0
0
IL
Hi,
I am looking for compilation instructions for cryptcat software. I need to compile it for Solaris,HP-UX and AIX.

Thanks in advance,
Vadim
 
[google]cryptcat[/google]

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Unfortunatelly it's not so simple as you think.
 
What error(s) are you getting? A quick check of the website shows that none of the OSs that you mention are supported.

You are probably missing libraries that are assumed under Linux, but without knowing what error you encounter, it is difficult to tell.


pansophic
 
I send error message I get and also Makefile.
BTW it includes sections for all platforms I need.

Thanks in advance,
Vadim




root@sun # make sunos
make -e cryptcat XFLAGS='-DSUNOS' STATIC=-Bstatic \
XLIBS='-lresolv'
make[1]: Entering directory `/system/netcat/source/unix'
cc -O -c farm9crypt.cc
cc: No input file specified, no output generated
make[1]: *** [farm9crypt.o] Error 1
make[1]: Leaving directory `/system/netcat/source/unix'
make: *** [sunos] Error 2

================ Makefile ==========================
# makefile for netcat, based off same ol' "generic makefile".
# Usually do "make systype" -- if your systype isn't defined, try "generic"
# or something else that most closely matches, see where it goes wrong, fix
# it, and MAIL THE DIFFS back to Hobbit.

### PREDEFINES

# DEFAULTS, possibly overridden by <systype> recursive call:
# pick gcc if you'd rather , and/or do -g instead of -O if debugging
# debugging
# DFLAGS = -DTEST -DDEBUG
DFLAGS = -DGAPING_SECURITY_HOLE
CFLAGS = -O
XFLAGS = # xtra cflags, set by systype targets
XLIBS = # xtra libs if necessary?
# -Bstatic for sunos, -static for gcc, etc. You want this, trust me.
STATIC =
CC = cc $(CFLAGS)
LD = $(CC) -s # linker; defaults to stripped executables
o = o # object extension

ALL = cryptcat

### BOGON-CATCHERS

bogus:
@echo "Usage: make <systype> [options]"

### HARD TARGETS

cryptcat: netcat.c farm9crypt.o twofish2.o
$(LD) $(DFLAGS) $(XFLAGS) $(STATIC) -o cryptcat netcat.c farm9crypt.o twofish2.o $(XLIBS)

nc-dos:
@echo "DOS?! Maybe someday, but not now"

### SYSTYPES -- in the same order as in generic.h, please

# designed for msc and nmake, but easy to change for your compiler.
# Recursive make may fail if you're short on memory -- u-fix!
# Note special hard-target and "quotes" instead of 'quotes' ...
dos:
$(MAKE) -e $(ALL)-dos $(MFLAGS) CC="cl /nologo" XLIBS= \
XFLAGS="/AS -D__MSDOS__ -DMSDOS" o=obj

ultrix:
make -e $(ALL) $(MFLAGS) XFLAGS='-DULTRIX'

# you may need XLIBS='-lresolv -l44bsd' if you have BIND 4.9.x
sunos:
make -e $(ALL) $(MFLAGS) XFLAGS='-DSUNOS' STATIC=-Bstatic \
XLIBS='-lresolv'

# Pick this one ahead of "solaris" if you actually have the nonshared
# libraries [lib*.a] on your machine. By default, the Sun twits don't ship
# or install them, forcing you to use shared libs for any network apps.
# Kludged for gcc, which many regard as the only thing available.
solaris-static:
make -e $(ALL) $(MFLAGS) XFLAGS='-DSYSV=4 -D__svr4__ -DSOLARIS' \
CC=gcc STATIC=-static XLIBS='-lnsl -lsocket -lresolv'

# the more usual shared-lib version...
solaris:
make -e $(ALL) $(MFLAGS) XFLAGS='-DSYSV=4 -D__svr4__ -DSOLARIS' \
CC=gcc STATIC= XLIBS='-lnsl -lsocket -lresolv'

aix:
make -e $(ALL) $(MFLAGS) XFLAGS='-DAIX'

linux:
make -e $(ALL) $(MFLAGS) XFLAGS='-DLINUX' STATIC=-static \
XLIBS='-lstdc++'

# irix 5.2, dunno 'bout earlier versions. If STATIC='-non_shared' doesn't
# work for you, null it out and yell at SGI for their STUPID default
# of apparently not installing /usr/lib/nonshared/*. Sheesh.
irix:
make -e $(ALL) $(MFLAGS) XFLAGS='-DIRIX -DSYSV=4 -D__svr4__' \
STATIC=-non_shared

osf:
make -e $(ALL) $(MFLAGS) XFLAGS='-DOSF' STATIC=-non_shared

# virtually the same as netbsd/bsd44lite/whatever
freebsd:
make -e $(ALL) $(MFLAGS) XFLAGS='-DFREEBSD' STATIC=-static \
XLIBS='-lstdc++'

bsdi:
make -e $(ALL) $(MFLAGS) XFLAGS='-DBSDI' STATIC=-Bstatic

netbsd:
make -e $(ALL) $(MFLAGS) XFLAGS='-DNETBSD' STATIC=-static \
XLIBS='-lstdc++'
openbsd:
@echo "use: make netbsd"
# finally got to an hpux box, which turns out to be *really* warped.
# STATIC here means "linker subprocess gets args '-a archive'" which causes
# /lib/libc.a to be searched ahead of '-a shared', or /lib/libc.sl.
hpux:
make -e $(ALL) $(MFLAGS) XFLAGS='-DHPUX' STATIC="-Wl,-a,archive"

# unixware from bmc@telebase.com; apparently no static because of the
# same idiotic lack of link libraries
unixware:
make -e $(ALL) $(MFLAGS) XFLAGS='-DUNIXWARE -DSYSV=4 -D__svr4__' \
STATIC= XLIBS='-L/usr/lib -lnsl -lsocket -lresolv'

# from Declan Rieb at sandia, for a/ux 3.1.1 [also suggests using gcc]:
aux:
make -e $(ALL) $(MFLAGS) XFLAGS='-DAUX' STATIC=-static CC=gcc

# Nexstep from mudge: NeXT cc is really old gcc
next:
make -e $(ALL) $(MFLAGS) XFLAGS='-DNEXT' STATIC=-Bstatic

farm9crypt.o: farm9crypt.cc farm9crypt.h
${CC} -c farm9crypt.cc

twofish2.o: twofish2.cc twofish2.h
${CC} -c twofish2.cc

# start with this for a new architecture, and see what breaks.
generic:
make -e $(ALL) $(MFLAGS) XFLAGS='-DGENERIC' STATIC=

# Still at large: dgux dynix ???

### RANDOM

clean:
rm -f $(ALL) *.o *.obj

 
I don't know, it seems to work fine on Linux, and the only difference is the compile options.

Are you running make from within the 'unix' directory?

Does the file farm9crypt.cc exist in the 'unix' directory?

The error looks like it can't find the farm9crypt.cc file to compile.

Have you tried the solaris or solaris-static compile options?

Did you try: XLIBS='-lresolv -l44bsd'?


pansophic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top