compile problems with argus-3.0.0.rc.18

Carter Bullard carter at qosient.com
Mon Jul 17 09:20:19 EDT 2006


Hey Robin, et al!!!!
I've been trying to understand why I don't get these errors on my  
machines,
and then just realized these are little-endian errors.  Everything I  
do now is
on a big endian machine, so ....., I'll have to shift over to Intel  
for testing.

This patch will fix this problem:

*** argus_util.c.orig        Mon Jul 17 09:18:30 2006
--- argus_util.c           Mon Jul 17 09:18:27 2006
***************
*** 664,669 ****
--- 664,670 ----
                     }
                  } else
                  if (dsr->subtype & ARGUS_METER_PKTS_BYTES_APP) {
+                   switch (dsr->argus_dsrvl8.qual & 0x0F) {
                        case ARGUS_SRCDST_BYTE:
                        case ARGUS_SRC_BYTE:
                        case ARGUS_DST_BYTE:
***************
*** 704,709 ****
--- 705,711 ----
                           ((unsigned int *)(dsr + 1))[1] = htonl 
(((unsigned int *)(dsr + 1))[1]);
                           ((unsigned int *)(dsr + 1))[2] = htonl 
(((unsigned int *)(dsr + 1))[2]);
                           break;
+                   }
                  }
                  break;
               }

Carter


On Jul 17, 2006, at 3:01 AM, Robin Gruyters wrote:

> Hi ya,
>
> Just trying to compile argus-3.0.0.rc.18 and stumble on the  
> following problem:
>
> [...]
> gcc -O3 -I. -I/usr/include  -I./../include -DPACKAGE_NAME=\"\" - 
> DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" - 
> DPACKAGE_BUGREPORT=\"\" -DHAVE_VFPRINTF=1 -DHAVE_STRCASECMP=1 - 
> DHAVE_STRLCAT=1 -DHAVE_STRLCPY=1 -DHAVE_STRDUP=1 -DHAVE_STRFTIME=1 - 
> DHAVE_SETLINEBUF=1 -DHAVE_ALARM=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_INTTYPES_H=1 -DHAVE_VSNPRINTF=1 -DHAVE_SNPRINTF=1 - 
> DHAVE_ETHER_HOSTTON=1 -DHAVE_STRUCT_ETHER_ADDR=1 - 
> DHAVE_DECL_ETHER_HOSTTON=0 -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 -DCONFIG_X86_BSWAP=1 - 
> DSTDC_HEADERS=1  -DARGUS_SYSLOG=1 -c argus_util.c
> argus_util.c: In function `ArgusHtoN':
> argus_util.c:667: error: duplicate case value
> argus_util.c:603: error: previously used here
> argus_util.c:671: error: duplicate case value
> argus_util.c:552: error: previously used here
> argus_util.c:679: error: duplicate case value
> argus_util.c:616: error: previously used here
> *** Error code 1
>
> Stop in /tmp/argus-3.0.0.rc.18/common.
> [...]
>
> I'm running on FreeBSD 5.4-p16 (i386)
>
> Robin Gruyters
> Network and Security Engineer
> Yirdis B.V.
> I: http://yirdis.com
> P: +31 (0)36 5300394
> F: +31 (0)36 5489119
>




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20060717/6e468c9a/attachment.html>


More information about the argus mailing list