Argus 2.0.2-Beta 2 and FreeBSD

Carter Bullard carter at qosient.com
Mon Jul 9 08:30:59 EDT 2001


Hey Borja,
   Hmmmmm, __LITTLE_ENDIAN and __BIG_ENDIAN
are getting defined.  This of course isn't how its
suppose to work.  Is everyone using FreeBSD having this
problem?  The fix should be straight forward, but if
there are other complications, .....

   Is the argus-client-2.0.1.alpha.6 code compiling
alright?

Carter

Carter Bullard
QoSient, LLC
300 E. 56th Street, Suite 18K
New York, New York  10022

carter at qosient.com
Phone +1 212 588-9133
Fax   +1 212 588-9134
http://qosient.com

> -----Original Message-----
> From: Borja Marcos [mailto:borjam at sarenet.es] 
> Sent: Monday, July 09, 2001 3:02 AM
> To: carter at qosient.com
> Subject: Re: Argus 2.0.2-Beta 2 and FreeBSD
> 
> 
> On Saturday 07 July 2001 05:24, you wrote:
> > Hey Borja,
> >    Hmmmm, endianness should be decided in the include
> > file ./include/compat.h.  Is there anything in particular 
> that we need 
> > to do for FreeBSD other than what we're doing in compat.h?
> 
> 	Sorry for the delay...
> 
> 	It seems that the compiler is confused by:
> struct ip {
> #if __BYTE_ORDER == __LITTLE_ENDIAN
>         u_char  ip_hl:4,                /* header length */
>                 ip_v:4;                 /* version */
> #endif
> #if __BYTE_ORDER == __BIG_ENDIAN
>         u_char  ip_v:4,                 /* version */
>                 ip_hl:4;                /* header length */
> #endif
> 
> 	and it is compiling *both* sets of lines.
> 
> 
> 	Regards,
> 
> 
> 
> 
> 	Borja.
> 
> 
> >
> > Carter
> >
> > Carter Bullard
> > QoSient, LLC
> > 300 E. 56th Street, Suite 18K
> > New York, New York  10022
> >
> > carter at qosient.com
> > Phone +1 212 588-9133
> > Fax   +1 212 588-9134
> > http://qosient.com
> >
> > > -----Original Message-----
> > > From: owner-argus-info at lists.andrew.cmu.edu
> > > [mailto:owner-argus-info at lists.andrew.cmu.edu] On Behalf Of Borja 
> > > Marcos
> > > Sent: Thursday, July 05, 2001 3:49 AM
> > > To: argus-info at lists.andrew.cmu.edu
> > > Subject: Argus 2.0.2-Beta 2 and FreeBSD
> > >
> > >
> > >
> > > 	Hello,
> > >
> > > 	I have run into a problem trying to compile this Argus version 
> > > under FreeBSD. It looks like a problem detecting endianness.
> > >
> > >
> > > -- borjam at borja% gmake making in common gcc -g -pthread -O -Wall 
> > > -Wmissing-prototypes -Wstrict-prototypes -I. -I../include 
> > > -I../include/linux-include -DHAVE_SYS_IOCCOM_H=1 
> > > -DHAVE_SYS_SOCKIO_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 
> > > -DHAVE_SOCKADDR_SA_LEN=1 -DARGUS_SYSLOG=1 -c 
> ./argus_parse.c In file 
> > > included from
> > > ../include/argus_util.h:50,                  from
> > > ../include/argus_parse.h:57,                  from
> > > ./argus_parse.c:122:
> > > ../include/linux-include/netinet/ip.h:38: duplicate member `ip_v'
> > > ../include/linux-include/netinet/ip.h:39: duplicate member `ip_hl'
> > > ../include/linux-include/netinet/ip.h:97: duplicate member 
> > > `ipt_oflw'
> > > ../include/linux-include/netinet/ip.h:98: duplicate member
> > > `ipt_flg' ***
> > > Error code 1
> > > Stop in /home/borjam/src/argus-2.0.2.beta.2/common.
> > >
> > >
> > > 	Borja.
> 
> -- 
> __________________________________________________________________
> Borja Marcos                      * borjam at sarenet.es
> Responsable de seguridad          * Tel: +34 944209470
> SARENET S.A.                      * Fax: +34 944209465
> Parque Tecnologico, 103           *
> 48170 - Zamudio (Bizkaia) SPAIN   *
> __________________________________________________________________
> 



More information about the argus mailing list