Argus 3.0.5.6 failed to compile on Ubuntu Server 11.10
Carter Bullard
carter at qosient.com
Sun Nov 27 11:18:54 EST 2011
Hey CS Lee,
IPPROTO_TTP should be defined in ./include/argus_os.h, with an #if !defined(IPPROTO_TTP).
This does on machines where I have removed the system definition of IPPROTO_TTP,
so not sure where the break down is.
Is IPPROTO_TTP defined on your machine somewhere? /usr/include/netinet/?.h
Carter
On Nov 27, 2011, at 9:06 AM, CS Lee wrote:
> hi Carter,
>
> It seems the latest argus fails to compile on Ubuntu Server 11.10, I have ./configure run, then got this result when make
>
> make[1]: Entering directory `/home/cslee/argus-3.0.5.6/argus'
> gcc -O3 -I. -I/usr/include -I./../include -DHAVE_CONFIG_H -c argus.c
> argus.c: In function ‘ArgusParseResourceFile’:
> argus.c:1247:42: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
> gcc -O3 -I. -I/usr/include -I./../include -DHAVE_CONFIG_H -c ArgusModeler.c
> ArgusModeler.c: In function ‘ArgusProcessPacketHdrs’:
> ArgusModeler.c:683:24: error: ‘IPPROTO_TTP’ undeclared (first use in this function)
> ArgusModeler.c:683:24: note: each undeclared identifier is reported only once for each function it appears in
> make[1]: *** [ArgusModeler.o] Error 1
> make[1]: Leaving directory `/home/cslee/argus-3.0.5.6/argus'
> ### Done with /home/cslee/argus-3.0.5.6/argus
> ### Making in /home/cslee/argus-3.0.5.6/events
> make[1]: Entering directory `/home/cslee/argus-3.0.5.6/events'
> sed 's+ at PERLBIN@+/usr/bin/perl+' argus-lsof.pl > ../bin/argus-lsof
> chmod +x ../bin/argus-lsof
> cp -f argus-snmp.sh ../bin/argus-snmp
> cp -f argus-vmstat.sh ../bin/argus-vmstat
> make[1]: Leaving directory `/home/cslee/argus-3.0.5.6/events'
> ### Done with /home/cslee/argus-3.0.5.6/events
>
> I go to the file ArgusModeler.c and check line 683
>
> case IPPROTO_TTP: { /* Preparation for Juniper TTP */
> retn = ArgusProcessTtpHdr(model, ip, length);
> break;
> }
>
> I don't see IPPROTO_TTP is declared anyway but you do have IPPROTO_TCP, therefore I just changed it to IPPROTO_TCP and it compiles succesfully, however I'm not sure if I break things here since in your comment it states "Preparation for Juniper TTP". I make a quick guess it should be TCP instead since the next few lines show UDP processing.
>
> Cheers
>
> --
> Best Regards,
>
> CS Lee<geek00L[at]gmail.com>
>
> http://geek00l.blogspot.com
> http://defcraft.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20111127/795878a1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4367 bytes
Desc: not available
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20111127/795878a1/attachment.bin>
More information about the argus
mailing list