Compiling on Solaris w/o bpf.h ??

carter at qosient.com carter at qosient.com
Thu Oct 26 18:12:56 EDT 2006


Hey Tom,
Thanks, I'll add the test to the configure script.   Could you do me a favor, and send the output of the ./config/config.guess script?  I'll need to see what the script see's as your os.

Carter


Carter Bullard
QoSient LLC
150 E. 57th Street Suite 12D
New York, New York 10022
+1 212 588-9133 Phone
+1 212 588-9134 Fax  

-----Original Message-----
From: Tom Briglia <briglia at stanford.edu>
Date: Wed, 25 Oct 2006 19:20:17 
To:argus-info at lists.andrew.cmu.edu
Subject: Re: [ARGUS] Compiling on Solaris w/o bpf.h ??


I figured out how I had to edit the gencode.c file changing bpf.h to
pcap-bpf.h. It would be nice if this was added to the INSTALL or README
files since it seems to be an old problem relating to pcap headers.

Also for anyone interested in compiling on Solaris 10, it appears that
Solaris 10 now includes:

ether_ntohost
ether_hostton

in /usr/include/sys/ethernet.h.

So in order to get Argus to compile I had to go hack up argusfilter.c and
comment out the varied declarations of ether_ntohost ether_hostton. Once I
did that everything finally compiled. :-)



Quoting Tom Briglia <briglia at stanford.edu>:

> Hi Folks,
>
> I am a newbie to Argus and trying to compile on Solaris. I have seen
> multiple references that Argus will compile on Solaris which is why I
> even
> tried in the first place.
>
> I successfully compiled and installed Bison, libpcap, libwrap, and sasl
> on
> Solaris 10 and successfully ran the argus ./configure script. When I try
> to
> compile Argus it starts crapping out due to no bpf.h:
>
> gcc -O2 -mcpu=v9 -m64 -O -I. -I../include -I../../tcp_wrappers_7.6-ipv6.4
> -I../../libpcap-0.9.5 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
> -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
> -DLBL_ALIGN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
> -DHAVE_TCP_WRAPPER=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_STRING_H=1
> -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_SOLARIS=1
> -DSTDC_HEADERS=1  -DARGUS_SYSLOG=1 -c ./gencode.c
> ./gencode.c:62:21: net/bpf.h: No such file or directory
>
> I have searched my system and searched google and I get the impression
> "bfp.h" is not native to Solaris.
>
> I figured maybe it would be included in libpcap yet it is not.
>
> So what is the real deal? How can Argus be compiled on Solaris w/o bpf.h?
>
> I have a whole network of Solaris systems I would like to run Argus on
> yet
> am now hitting this showstpper . . .
>
> Any help will be greatly appreciated!
>
> Thanks!
>
> Tom
>





More information about the argus mailing list