Argus 3.0.5.6 failed to compile on Ubuntu Server 11.10

CS Lee geek00l at gmail.com
Sun Nov 27 09:06:37 EST 2011


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/5e224553/attachment.html>


More information about the argus mailing list