I've got two servers running RedHat 9 and am unable to
compile ipaudit. I have libpcap installed both from the
RPMs that came with the system:
------------------------------------------------------
-----------------------------------
[root@cerberus ipaudit-0.95]# rpm -qa |grep -i libpcap
libpcap-0.7.2-1
------------------------------------------------------
-----------------------------------
and downloaded and installed from:
http://www-nrg.ee.lbl.gov/nrg.html at
ftp://ftp.ee.lbl.gov/libpcap.tar.Z
[root@cerberus libpcap-0.4]# make
gcc -O2 -I. -Ilinux-include -DHAVE_MALLOC_H=1 -
DHAVE_ETHER_HOSTTON=1
-DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1 -
c ./pcap-linux.c
gcc -O2 -I. -Ilinux-include -DHAVE_MALLOC_H=1 -
DHAVE_ETHER_HOSTTON=1
-DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1 -
c ./pcap.c
gcc -O2 -I. -Ilinux-include -DHAVE_MALLOC_H=1 -
DHAVE_ETHER_HOSTTON=1
-DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1 -
c ./inet.c
gcc -O2 -I. -Ilinux-include -DHAVE_MALLOC_H=1 -
DHAVE_ETHER_HOSTTON=1
-DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1 -
c ./gencode.c
gcc -O2 -I. -Ilinux-include -DHAVE_MALLOC_H=1 -
DHAVE_ETHER_HOSTTON=1
-DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1 -
c ./optimize.c
gcc -O2 -I. -Ilinux-include -DHAVE_MALLOC_H=1 -
DHAVE_ETHER_HOSTTON=1
-DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1 -
c ./nametoaddr.c
gcc -O2 -I. -Ilinux-include -DHAVE_MALLOC_H=1 -
DHAVE_ETHER_HOSTTON=1
-DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1 -
c ./etherent.c
gcc -O2 -I. -Ilinux-include -DHAVE_MALLOC_H=1 -
DHAVE_ETHER_HOSTTON=1
-DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1 -
c ./savefile.c
gcc -O2 -I. -Ilinux-include -DHAVE_MALLOC_H=1 -
DHAVE_ETHER_HOSTTON=1
-DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1 -
c ./bpf_filter.c
gcc -O2 -I. -Ilinux-include -DHAVE_MALLOC_H=1 -
DHAVE_ETHER_HOSTTON=1
-DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1 -
c ./bpf_image.c
flex -Ppcap_ -t scanner.l > $$.scanner.c; mv
$$.scanner.c scanner.c
bison -y -p pcap_ -d grammar.y
mv y.tab.c grammar.c
mv y.tab.h tokdefs.h
gcc -O2 -I. -Ilinux-include -DHAVE_MALLOC_H=1 -
DHAVE_ETHER_HOSTTON=1
-DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1 -
c ./scanner.c
gcc -O2 -I. -Ilinux-include -DHAVE_MALLOC_H=1 -
DHAVE_ETHER_HOSTTON=1
-DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1 -
Dyylval=pcap_lval -c grammar.c
sed -e 's/.*/char pcap_version[] = "&";/' ./VERSION >
version.c
gcc -O2 -I. -Ilinux-include -DHAVE_MALLOC_H=1 -
DHAVE_ETHER_HOSTTON=1
-DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1 -
c ./version.c
ar rc libpcap.a pcap-linux.o pcap.o inet.o gencode.o
optimize.o
nametoaddr.o etherent.o savefile.o bpf_filter.o
bpf_image.o scanner.o
grammar.o version.o
ranlib libpcap.a
[root@cerberus libpcap-0.4]# make install
/usr/bin/install -c -m 444 -o bin -g bin libpcap.a
/usr/local/lib/libpcap.a
ranlib /usr/local/lib/libpcap.a
------------------------------------------------------
-----------------------------------
Here is the results of a compile attempt for ipaudit:
[root@cerberus ipaudit-0.95]# make
make -C src all
make[1]: Entering directory `/root/apps/ipaudit/ipaudit-
0.95/src'
cc -o ipaudit ipaudit.o hash.o -lpcap
ipaudit.o(.text+0x4af): In function `main':
: undefined reference to `errno'
ipaudit.o(.text+0x528): In function `main':
: undefined reference to `errno'
ipaudit.o(.text+0x588): In function `main':
: undefined reference to `errno'
ipaudit.o(.text+0x5f5): In function `main':
: undefined reference to `errno'
ipaudit.o(.text+0x66e): In function `main':
: undefined reference to `errno'
ipaudit.o(.text+0x6e0): more undefined references to
`errno' follow
collect2: ld returned 1 exit status
make[1]: *** [ipaudit] Error 1
make[1]: Leaving directory `/root/apps/ipaudit/ipaudit-
0.95/src'
make: *** [all] Error 2
------------------------------------------------------
-----------------------------------
I'm stuck :( Been using ipaudit for a while now, and
love it, gonna hate to lose her on the new deployment if
I have to. :(
Logged In: NO
Same problem here. Any Resolution?
Logged In: NO
I've yet to hear from the project owner, but no, no resolution
found. :(
Logged In: YES
user_id=815305
Here is the fix for Redhat 9 that a friend found. Works great
and is really, really simple.
In the following files (ipaudit.c & ipstrings.c) located in /src
directory add the following to the include sections:
#include <errno.h>
Additionally, if you try ipaudit-web the fix is the same.
Logged In: NO
Most Excellent! Thank you sir. :) I'm good now, compiled
like a charm after adding that to the two files.
Logged In: YES
user_id=931855
Hi,
In order to fix this I added the following lines
#include <errno.h>
to:
ipaudit.c and ipstrings.c
Then ran make again...
Logged In: NO
open up ipaudit.c and ipstrings.c and add
#include <errno.h>
to both files
Logged In: NO
open up ipaudit.c and ipstrings.c and add
#include <errno.h>
to both files