Argus-3.0

Carter Bullard carter at qosient.com
Wed Jun 7 22:53:13 EDT 2006


Hey Peter,
I don't have access to the earlier macs, but it looks like a simple
fix for the ./include/compat.h or ./include/argus_os.h, to get the
right includes for the data types.

I still have lots of problems with include file strategies where
you include x.h, and it barfs, because you were suppose to
include y.h first.   Why not put the dependancies in the file to
begin with?

Now that being said, I have a lot of those myself in argus, so
can't really complain to hard, but for a system include file like
/usr/include/netinet/in.h, well that's a tough one to accept.

The ring buffer issue will be interesting, simply because I
have no idea why it would cause any problem ;o)

Carter

On Jun 7, 2006, at 6:20 PM, Peter Van Epp wrote:

> On Wed, Jun 07, 2006 at 04:41:53PM -0400, Carter Bullard wrote:
>> Hey Peter,
>>     Doesn't compile on Mac OS 10.3?   Hmmm, error messages please!
>> The FreeBSD should be the byteswap.h problem?
>>
>> Carter
>>
>
> 	I expect so but didn't do more than try. While I was gone the one  
> that
> compiled on Linux/ring buffer appears to have died without comment  
> as well :-)
>
> This is from OS X:
>
> ./include  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" - 
> DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT= 
> \"\" -DARGUSDEBUG=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_ETHER_HOSTTON=1 - 
> DHAVE_STRERROR=1 -DSTDC_HEADERS=1  -DARGUS_SYSLOG=1 - 
> Dyylval=argus_lval -c grammar.c
> In file included from ../include/os.h:76,
>                  from ../include/compat.h:50,
>                  from grammar.y:41:
> /usr/include/netinet/in.h:255: error: parse error before "in_addr_t"
> /usr/include/netinet/in.h:312: error: parse error before "u_char"
> /usr/include/netinet/in.h:314: error: parse error before "sin_port"
> /usr/include/netinet/in.h:317: error: parse error before '}' token
> /usr/include/netinet/in.h:329: error: field `ip_dst' has incomplete  
> type
> /usr/include/netinet/in.h:398: error: field `imr_multiaddr' has  
> incomplete type
> /usr/include/netinet/in.h:399: error: field `imr_interface' has  
> incomplete type
> In file included from /usr/include/netinet/in.h:518,
>                  from ../include/os.h:76,
>                  from ../include/compat.h:50,
>                  from grammar.y:41:
> /usr/include/netinet6/in6.h:123: error: parse error before "u_int8_t"
> /usr/include/netinet6/in6.h:125: error: parse error before  
> "__u6_addr32"
> /usr/include/netinet6/in6.h:126: error: parse error before '}' token
> /usr/include/netinet6/in6.h:127: error: parse error before '}' token
> /usr/include/netinet6/in6.h:145: error: parse error before "u_int8_t"
> /usr/include/netinet6/in6.h:147: error: parse error before "sin6_port"
> /usr/include/netinet6/in6.h:148: error: parse error before  
> "sin6_flowinfo"
> /usr/include/netinet6/in6.h:150: error: parse error before  
> "sin6_scope_id"
> /usr/include/netinet6/in6.h:384: error: field `ro_dst' has  
> incomplete type
> /usr/include/netinet6/in6.h:455: error: field `ipv6mr_multiaddr'  
> has incomplete type
> /usr/include/netinet6/in6.h:463: error: field `ipi6_addr' has  
> incomplete type
> /usr/include/netinet6/in6.h:615: error: syntax error before "struct"
> /usr/include/netinet6/in6.h:617: error: parse error before "__P"
> /usr/include/netinet6/in6.h:618: error: parse error before "__P"
> /usr/include/netinet6/in6.h:619: error: parse error before "__P"
> /usr/include/netinet6/in6.h:621: error: parse error before '*' token
> /usr/include/netinet6/in6.h:622: error: parse error before "__P"
> /usr/include/netinet6/in6.h:623: error: parse error before "__P"
> /usr/include/netinet6/in6.h:625: error: parse error before  
> "inet6_rthdr_space"
> /usr/include/netinet6/in6.h:626: error: parse error before "__P"
> /usr/include/netinet6/in6.h:627: error: parse error before "__P"
> /usr/include/netinet6/in6.h:629: error: parse error before "__P"
> /usr/include/netinet6/in6.h:633: error: parse error before "__P"
> /usr/include/netinet6/in6.h:634: error: parse error before "__P"
> /usr/include/netinet6/in6.h:635: error: parse error before "__P"
> /usr/include/netinet6/in6.h:637: error: parse error before "__P"
> /usr/include/netinet6/in6.h:638: error: parse error before "__P"
> /usr/include/netinet6/in6.h:640: error: parse error before "__P"
> /usr/include/netinet6/in6.h:641: error: parse error before "__P"
> /usr/include/netinet6/in6.h:643: error: parse error before "__P"
> /usr/include/netinet6/in6.h:645: error: parse error before "__P"
> /usr/include/netinet6/in6.h:647: error: parse error before "__P"
> /usr/include/netinet6/in6.h:648: error: parse error before  
> "inet6_rth_space"
> /usr/include/netinet6/in6.h:649: error: parse error before "__P"
> /usr/include/netinet6/in6.h:650: error: parse error before "__P"
> /usr/include/netinet6/in6.h:651: error: parse error before "__P"
> /usr/include/netinet6/in6.h:652: error: parse error before "__P"
> /usr/include/netinet6/in6.h:653: error: parse error before "__P"
> In file included from /usr/include/machine/types.h:30,
>                  from /usr/include/sys/types.h:72,
>                  from ../include/os.h:77,
>                  from ../include/compat.h:50,
>                  from grammar.y:41:
> /usr/include/ppc/types.h:69: error: syntax error before "typedef"
> In file included from ../include/os.h:78,
>                  from ../include/compat.h:50,
>                  from grammar.y:41:
> /usr/include/netinet/icmp6.h:190: error: field `mld6_addr' has  
> incomplete type
> /usr/include/netinet/icmp6.h:244: error: field `nd_ns_target' has  
> incomplete type
> /usr/include/netinet/icmp6.h:255: error: field `nd_na_target' has  
> incomplete type
> /usr/include/netinet/icmp6.h:277: error: field `nd_rd_target' has  
> incomplete type
> /usr/include/netinet/icmp6.h:278: error: field `nd_rd_dst' has  
> incomplete type
> /usr/include/netinet/icmp6.h:309: error: field `nd_opt_pi_prefix'  
> has incomplete type
> /usr/include/netinet/icmp6.h:456: error: field `rpm_prefix' has  
> incomplete type
> /usr/include/netinet/icmp6.h:472: error: field `rpu_prefix' has  
> incomplete type
> /usr/include/netinet/icmp6.h:490: error: field `rrr_prefix' has  
> incomplete type
> In file included from ../include/argus_out.h:44,
>                  from grammar.y:53:
> /usr/include/netinet/if_ether.h:171: error: field `sin_addr' has  
> incomplete type
> /usr/include/netinet/if_ether.h:172: error: field `sin_srcaddr' has  
> incomplete type
> In file included from grammar.y:54:
> ../include/argus_parser.h:55: error: field `addr' has incomplete type
> /usr/include/netinet/in.h:315: error: storage size of `sin_addr'  
> isn't known
> /usr/include/netinet6/in6.h:149: error: storage size of `sin6_addr'  
> isn't known
> make[1]: *** [grammar.o] Error 1
> ### Done with /Users/vanepp/argus/argus-3.0.0.rc.1/common
> ### Making in /Users/vanepp/argus/argus-3.0.0.rc.1/argus
>
> Peter Van Epp / Operations and Technical Support
> Simon Fraser University, Burnaby, B.C. Canada
>







More information about the argus mailing list