Has anyone successfully compiled Argus on Mac OS X

Carter Bullard carter at qosient.com
Fri May 10 16:15:48 EDT 2002


Hey Andy,
   I have not seen a port to OS X, but it should be
pretty straight forward as Argus has been compiled
under NetBSD.  Handling missing include files or
types is handled in two files, ./include/compat.h
and ./include/os.h.  If you 

Some of the things you are missing are related
to sockets and the defines are usually found in
/usr/include/sys/socket.h.  If you have a man
page for socket, that should tell you where the
include files are that you need.  Try adding
the important includes to the top of ./include/compat.h.

That should help get you a little further.
Send mail if you're still having problems, and if
you get it ported to OS X, I'd love to see what
we need to change!

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 Andy
> Sent: Friday, May 10, 2002 3:56 PM
> To: argus-info at lists.andrew.cmu.edu
> Subject: Has anyone successfully compiled Argus on Mac OS X
> 
> 
> I am new to this list so please bear with me.
> 
> Has anyone successfully compiled this package on Os X
> 
> Os 10.1.2 server
> 
> Here are the errors that I immediately recieve upon trying a make.
> 
> making in ./common
> cc -O -I. -I../include -I../libpcap-0.7.1  -DHAVE_SYS_SOCKIO_H=1 
> -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 
> -DHAVE_SYSLOG_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 
> -DSTDC_HEADERS=1  -DARGUS_SYSLOG=1 -c ./argus_parse.c
> In file included from /usr/include/netinet/if_ether.h:64,
>                   from ../include/argus_out.h:56,
>                   from ../include/argus_parse.h:52,
>                   from ./argus_parse.c:120:
> /usr/include/net/if_arp.h:100: field `arp_pa' has incomplete type
> /usr/include/net/if_arp.h:101: field `arp_ha' has incomplete 
> type In file included from ../include/cons_out.h:44,
>                   from ../include/argus_util.h:62,
>                   from ../include/argus_parse.h:54,
>                   from ./argus_parse.c:120:
> /usr/include/net/if.h:174: field `ifru_addr' has incomplete type
> /usr/include/net/if.h:175: field `ifru_dstaddr' has incomplete type
> /usr/include/net/if.h:176: field `ifru_broadaddr' has incomplete type
> /usr/include/net/if.h:202: field `ifra_addr' has incomplete type
> /usr/include/net/if.h:203: field `ifra_broadaddr' has incomplete type
> /usr/include/net/if.h:204: field `ifra_mask' has incomplete type
> /usr/include/net/if.h:255: field `addr' has incomplete type
> /usr/include/net/if.h:256: field `dstaddr' has incomplete type
> ./argus_parse.c: In function `ArgusGetServerSocket':
> ./argus_parse.c:1800: `SOCK_STREAM' undeclared (first use in 
> this function)
> ./argus_parse.c:1800: (Each undeclared identifier is reported 
> only once
> ./argus_parse.c:1800: for each function it appears in.)
> ./argus_parse.c:1820: `SOCK_DGRAM' undeclared (first use in 
> this function)
> ./argus_parse.c:1856: `AF_INET' undeclared (first use in this 
> function)
> ./argus_parse.c:1868: `SOL_SOCKET' undeclared (first use in 
> this function)
> ./argus_parse.c:1868: `SO_KEEPALIVE' undeclared (first use in 
> this function)
> make[1]: *** [argus_parse.o] Error 1
> making in ./server
> cc -O -I . -I../include -I../libpcap-0.7.1  -DHAVE_SYS_SOCKIO_H=1 
> -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 
> -DHAVE_SYSLOG_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 
> -DSTDC_HEADERS=1  -c ./argus.c
> In file included from /usr/include/netinet/if_ether.h:64,
>                   from ./ArgusModeler.h:122,
>                   from ./argus.c:56:
> /usr/include/net/if_arp.h:100: field `arp_pa' has incomplete type
> /usr/include/net/if_arp.h:101: field `arp_ha' has incomplete type
> make[1]: *** [argus.o] Error 1
> making in ./clients
> cc -O -I . -I../include -I../common -I../libpcap-0.7.1 
> -DHAVE_SYS_SOCKIO_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 
> -DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_ETHER_HOSTTON=1 
> -DHAVE_STRERROR=1 -DSTDC_HEADERS=1  -c ./ragator.c
> In file included from /usr/include/netinet/if_ether.h:64,
>                   from ../include/argus_out.h:56,
>                   from ../include/argus_client.h:42,
>                   from ./ragator.c:57:
> /usr/include/net/if_arp.h:100: field `arp_pa' has incomplete type
> /usr/include/net/if_arp.h:101: field `arp_ha' has incomplete 
> type In file included from ../include/cons_out.h:44,
>                   from ../include/argus_util.h:62,
>                   from ../include/argus_parse.h:54,
>                   from ../include/argus_client.h:44,
>                   from ./ragator.c:57:
> /usr/include/net/if.h:174: field `ifru_addr' has incomplete type
> /usr/include/net/if.h:175: field `ifru_dstaddr' has incomplete type
> /usr/include/net/if.h:176: field `ifru_broadaddr' has incomplete type
> /usr/include/net/if.h:202: field `ifra_addr' has incomplete type
> /usr/include/net/if.h:203: field `ifra_broadaddr' has incomplete type
> /usr/include/net/if.h:204: field `ifra_mask' has incomplete type
> /usr/include/net/if.h:255: field `addr' has incomplete type
> /usr/include/net/if.h:256: field `dstaddr' has incomplete type
> make[1]: *** [ragator.o] Error 1
> 
> Use "exit" to leave _tcsh.
> 
> -- 
> 
> 



More information about the argus mailing list