Unable to compile Argus 3.0 server on Solaris 10

real.melancon at videotron.ca real.melancon at videotron.ca
Fri Jun 13 14:01:24 EDT 2008


I forgot to mention the gcc version. It"s a package I have downloaded from SunFreeware.

Here it is:

# gcc -v
Reading specs from /opt/sfw/usr/local/bin/../lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6

Let me know if you need additional informations.

Brgds.
-Real


----- Message d'origine -----
De: Carter Bullard <carter at qosient.com>
Date: Vendredi, 13 Juin 2008, 10:17
Objet: Re: [ARGUS] Unable to compile Argus 3.0 server on Solaris 10
À: real.melancon at videotron.ca
Cc: argus-info at lists.andrew.cmu.edu

> Hey Real,
> Sorry for the delayed response.  This OS compatibility is 
> really quite  
> interesting.
> Did you install gcc, or did it come on the box?  The code 
> compiles  
> fine on so
> may Solaris versions, that I suspect that the problem is with 
> the gcc  
> installation.
> Do you have a Solaris compiler you can try, to see if things 
> clear up?
> 
>     ./configure --without-gcc
> 
> The patch below should work, but this is not a general solution.
> Give it a try and send back your experiences.
> 
> Carter
> 
> ==== //depot/argus/argus/argus/ArgusModeler.c#61 - 
> /home/carter/argus/ 
> argus/argus/ArgusModeler.c ====
> 1882c1882
> <                bcopy ((char *)model->ArgusThisEpHdr->ether_dhost,
> ---
>  >                bcopy ((char *)&model->ArgusThisEpHdr->ether_dhost,
> 1884c1884
> <                bcopy ((char *)model->ArgusThisEpHdr->ether_shost,
> ---
>  >                bcopy ((char *)&model->ArgusThisEpHdr->ether_shost,
> 1898c1898
> <             if (bcmp ((char *)model->ArgusThisEpHdr->ether_dhost,
> ---
>  >             if (bcmp ((char *)&model->ArgusThisEpHdr->ether_dhost,
> 1900c1900
> <                 bcmp ((char *)model->ArgusThisEpHdr->ether_shost,
> ---
>  >                 bcmp ((char *)&model->ArgusThisEpHdr->ether_shost,
> 
> 
> 
> On Jun 11, 2008, at 10:08 AM, real.melancon at videotron.ca wrote:
> 
> > Hello List,
> >
> > It looks like I am unable to compile Argus server on Solaris 
> 10  
> > ( Solaris 10 5/08 s10s_u5wos_10 SPARC)
> >
> > The clients have all compiled OK.
> >
> > When I compile the server, the last line is:
> >
> > gcc -O3 -I.  -I./../include -DPACKAGE_NAME=\"\" -
> DPACKAGE_TARNAME= 
> > \"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" - 
> > DPACKAGE_BUGREPORT=\"\" -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_SYS_SOCKIO_H=1 - 
> > DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 - 
> > DHAVE_SYSLOG_H=1 -DHAVE_SYS_VFS_H=1 -DHAVE_VFPRINTF=1 - 
> > DHAVE_STRCASECMP=1 -DHAVE_STRLCAT=1 -DHAVE_STRLCPY=1 -
> DHAVE_STRDUP=1  
> > -DHAVE_STRFTIME=1 -DHAVE_SETLINEBUF=1 -DHAVE_ALARM=1 - 
> > DHAVE_STRERROR=1 -DHAVE_STRTOF=1 -Du_int8_t=unsigned\ char - 
> > Du_int16_t=unsigned\ short -Du_int32_t=unsigned\ int - 
> > Du_int64_t=unsigned\ long\ long -DHAVE_INTTYPES_H=1 - 
> > DHAVE_VSNPRINTF=1 -DHAVE_SNPRINTF=1 -DHAVE_ETHER_HOSTTON=1 - 
> > DHAVE_STRUCT_ETHER_ADDR=1 -DHAVE_DECL_ETHER_HOSTTON=0 - 
> > D_FILE_OFFSET_BITS=64 -DHAVE_PCAP_LIST_DATALINKS=1 - 
> > DHAVE_PCAP_SET_DATALINK=1 -DHAVE_PCAP_DATALINK_NAME_TO_VAL=1 - 
> > DHAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION=1 -
> DHAVE_PCAP_BREAKLOOP=1 - 
> > DHAVE_PCAP_DUMP_FTELL=1 -DLBL_ALIGN=1 -DHAVE_SOLARIS=1 - 
> > DSTDC_HEADERS=1 -DARGUS_SYSLOG=1 -c ArgusModeler.c
> > ArgusModeler.c: In function `ArgusUpdateBasicFlow':
> > ArgusModeler.c:1882: error: cannot convert to a pointer type
> > ArgusModeler.c:1884: error: cannot convert to a pointer type
> > ArgusModeler.c:1898: error: cannot convert to a pointer type
> > ArgusModeler.c:1900: error: cannot convert to a pointer type
> > *** Error code 1
> > make: Fatal error: Command failed for target `ArgusModeler.o'
> >
> > More informations:
> >
> > #> uname -a
> > SunOS HOSTNAME 5.10 Generic_127127-11 sun4v sparc SUNW,Sun-
> Fire-T1000
> > #> prtconf
> > System Configuration:  Sun Microsystems  sun4v Sun 
> Fire(TM) T1000
> > System clock frequency: 200 MHz
> > Memory size: 8184 Megabytes
> >
> >
> > Let me know if you need additional informations. I can upload 
> the  
> > config.log file to qosient FTP server if you want.
> >
> > Thanks in advance!
> >
> > ____________________________
> > Real Melancon
> >
> >
> 

____________________________
Réal Melançon




More information about the argus mailing list