Argus 3.0.5.6 failed to compile on Ubuntu Server 11.10

Carter Bullard carter at qosient.com
Thu Dec 1 11:31:00 EST 2011


Hey CS Lee,
Found the problem and its now fixed in a refreshed version of argus-3.0.5.6-tar.gz that is now the server.
   http://qosient.com/argus/dev/argus-latest.tar.gz

In ./include/argus_os.h
Sorry for the delay, and if there is anything else, don't hesitate to send to the list.

Carter

On Nov 27, 2011, at 2:27 PM, Carter Bullard wrote:

> I'll give it a test on my Unbuntu system later today.
> So a correct quick fix would be to define IPPROTO_TTP in the code before its use:
> 
> #if !defined(IPPROTO_TTP)
> #define	IPPROTO_TTP		84		/* TTP */
> #endif
> 
> Carter
> 
> On Nov 27, 2011, at 1:23 PM, CS Lee wrote:
> 
>> hi Carter,
>> 
>> I couldn't find IPPROTO_TTP defined in any file under /usr directory in Ubuntu 11.10, for FreeBSD system IPPROTO_TTP is defined in /usr/include/netinet/in.h though.
>> 
>> On Mon, Nov 28, 2011 at 12:18 AM, Carter Bullard <carter at qosient.com> wrote:
>> 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
>> 
>> 
>> 
>> 
>> -- 
>> 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/20111201/49cecae4/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/20111201/49cecae4/attachment.bin>


More information about the argus mailing list