1 Dec 2011 17:31
Re: Argus 3.0.5.6 failed to compile on Ubuntu Server 11.10
Carter Bullard <carter <at> qosient.com>
2011-12-01 16:31:00 GMT
2011-12-01 16:31:00 GMT
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.
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 */#endifCarterOn 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/?.hCarterOn 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 makemake[1]: Entering directory `/home/cslee/argus-3.0.5.6/argus'gcc -O3 -I. -I/usr/include -I./../include -DHAVE_CONFIG_H -c argus.cargus.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.cArgusModeler.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 inmake[1]: *** [ArgusModeler.o] Error 1make[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/eventsmake[1]: Entering directory `/home/cslee/argus-3.0.5.6/events'sed 's+ <at> PERLBIN <at> +/usr/bin/perl+' argus-lsof.pl > ../bin/argus-lsofchmod +x ../bin/argus-lsofcp -f argus-snmp.sh ../bin/argus-snmpcp -f argus-vmstat.sh ../bin/argus-vmstatmake[1]: Leaving directory `/home/cslee/argus-3.0.5.6/events'### Done with /home/cslee/argus-3.0.5.6/eventsI go to the file ArgusModeler.c and check line 683case 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
RSS Feed