1833034 Members
2519 Online
110049 Solutions
New Discussion

tripwire

 
Allan Darling
New Member

tripwire

Has anyone managed to compile the freeware version of tripwire 1.3.1 on hp-ux 11.0?

I have tried various combinations of cc, yacc, bison, lex and flex but always end up with compilation errors of some sort.
I
4 REPLIES 4
Account Not Used
Frequent Advisor

Re: tripwire

It could be you need to the ansi C compiler and not he compiler used for kernal generation.
"Who moved my cheese?"
Ralf Hildebrandt
Valued Contributor

Re: tripwire

Have you tried AIDE?
Anyway, you need an ANSI cc compiler like HP's ansi c or gcc (GNU cc)
Postfix/BIND/Security/IDS/Scanner, you name it...
Chris Calabrese
Valued Contributor

Re: tripwire

If I remember correctly,
I used regular old cc, but
I had to take gcc out of
my PATH before it worked.
No idea why...
Brainbench MVP for Unix Administration and Internet Security, SANS Review Editor, and Center for Internet Security HP-UX Benchmark project leader
Pasha_2
Occasional Advisor

Re: tripwire

This may be a little late, but for future reference, this is how we managed to compile Tripwire under HP-UX 11.00. This isn't as smooth as a make/make install but hey, it worked for us:

Move the tripwire-1.3.1-1.tar.gz file to /tmp

gunzip tripwire-1.3.1-tar.gz
tar xvf tripwire-1.3.1-tar

cd tw_ASR_1.3.1_src

vi Makefile

Uncomment the following lines and comment out the others around them:

LEX = lex
YACC = yacc
SHELL = /bin/sh
CC = cc
CFLAGS = -g -Ae
CPP = $(CC) ?E
LDFLAGS = -static
LIBS =
INSTALL = /bin/cp
HOSTNAME = ?hostname?

vi configs/conf-hpux.h
Change:
#ifndef __GNUC__
#endif
to
#define _HPUX_SOURCE

vi include/config.h
Change the following lines:
#include ?../configs/conf-hpux.h?

vi src/siggen.c
:%s/sigvector/sigvector1/g
(This is just a vi search & replace command that replaces all occurences of sigvector with sigvector1)

make (this will error out, it is supposed to)

vi src/config.lex.c
Change:
static void __yy__unused() { main(); }
to
static void __yy__unused() { main(0,0); }

make (yes, run make again.)

mkdir /usr/local/bin/tw
mkdir /var/tripwire

cp src/tripwire /usr/local/bin/tw
cp src/siggen /usr/local/bin/tw
cp configs/tw.conf.hpux /usr/local/bin/tw/tw.config

cd /usr/local/bin/tw

./tripwire ?initialize
This will create the database, you will see a series of NO SUCH FILE/DIRECTORY errors. These are OK.
Note these entires and remove them from the /usr/local/bin/tw/tw.config file upon completion

mv databases/tw.db_ /var/tripwire (i.e. mv databases/tw.db_georgetown /var/tripwire)