RE: Cflow/FlowScan with OSU flow-tools (was "Re: (from flow-tools list) ...")

Date view Thread view Subject view Author view

Subject: RE: Cflow/FlowScan with OSU flow-tools (was "Re: (from flow-tools list) ...")
From: Andrew Fort (afort@staff.webcentral.com.au)
Date: Sun May 27 2001 - 01:36:03 CDT

>In case it's not clear, Andrew is doing some preliminary testing of
>Cflow.pm with the OSU flow-tools collector called flow-capture (instead
>of cflowd).

yes, whoops, it would appear the first message of the two I intended to send
didn't make it to the MTA :-)

>Be sure when you do "perl Makefile.PL" that it says something like:
>
>   Looks good
>   Found flow-tools... using "-DOSU -I../../lib -I../../lib/.. 
>-L../../lib -lz -lft".
>   ^^^^^^^^^^^^^^^^

[afort@probe Cflow-1.036]# perl Makefile.PL
Found flow-tools... using "-DOSU -I../../lib -I../../lib/.. -L../../lib -lz
-lft".
Warning: -L../../lib changed to
-L/usr/local/src/flow-tools-0.53/perl/Cflow-1.036/../../lib
Writing Makefile for Cflow

>BTW, those are the build instructions (albeit in parentheses) here:
>   http://net.doit.wisc.edu/~plonka/Cflow/

yep, i tried it the way you say and got some build errors (hence me asking..
:)

cc -c -I../../lib -I../../lib/.. -DOSU -O2 -m486 -fno-strength-reduce
-DVERSION=\"1.036\" -DXS_VERSION=\"1.036\" -fpic
-I/usr/lib/perl5/5.00503/i386-linux/CORE  Cflow.c
In file included from /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:1276,
                 from Cflow.xs:5:
/usr/lib/perl5/5.00503/i386-linux/CORE/cop.h:217: parse error before `bool'
/usr/lib/perl5/5.00503/i386-linux/CORE/cop.h:217: warning: no semicolon at
end of struct or union
/usr/lib/perl5/5.00503/i386-linux/CORE/cop.h:218: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/cop.h:227: parse error before `}'
/usr/lib/perl5/5.00503/i386-linux/CORE/cop.h:268: field `cx_subst' has
incomplete type
In file included from /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:1280,
                 from Cflow.xs:5:
/usr/lib/perl5/5.00503/i386-linux/CORE/scope.h:135: parse error before
`bool'
/usr/lib/perl5/5.00503/i386-linux/CORE/scope.h:135: warning: no semicolon at
end of struct or union
In file included from /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:2109,
                 from Cflow.xs:5:
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:27: parse error before
`Perl_Gv_AMupdate'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:27: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:33: parse error before
`Perl_avhv_exists_ent'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:33: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:98: parse error before
`Perl_do_aexec'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:98: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:101: parse error before
`Perl_do_close'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:101: parse error before
`bool'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:101: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:102: parse error before
`Perl_do_eof'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:102: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:103: parse error before
`Perl_do_exec'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:103: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:115: parse error before
`Perl_do_open'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:116: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:118: parse error before
`Perl_do_print'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:118: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:121: parse error before
`Perl_do_seek'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:121: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:149: parse error before
`bool'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:182: parse error before
`Perl_hv_exists'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:182: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:183: parse error before
`Perl_hv_exists_ent'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:183: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:204: parse error before
`Perl_io_close'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:204: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:522: parse error before
`Perl_sv_2bool'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:522: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:554: parse error before
`Perl_sv_derived_from'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:554: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:592: parse error before
`Perl_sv_tainted'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:592: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:596: parse error before
`Perl_sv_upgrade'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:596: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:600: parse error before
`bool'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:603: parse error before
`bool'
In file included from /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:2133,
                 from Cflow.xs:5:
/usr/lib/perl5/5.00503/i386-linux/CORE/perlvars.h:48: parse error before
`PL_nomemok'
/usr/lib/perl5/5.00503/i386-linux/CORE/perlvars.h:48: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/perlvars.h:136: parse error before
`PL_in_my'
/usr/lib/perl5/5.00503/i386-linux/CORE/perlvars.h:136: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/perlvars.h:144: parse error before
`PL_do_undump'
/usr/lib/perl5/5.00503/i386-linux/CORE/perlvars.h:144: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/perlvars.h:157: parse error before
`PL_collation_standard'
/usr/lib/perl5/5.00503/i386-linux/CORE/perlvars.h:157: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/perlvars.h:166: parse error before
`PL_numeric_standard'
/usr/lib/perl5/5.00503/i386-linux/CORE/perlvars.h:166: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/perlvars.h:168: parse error before
`PL_numeric_local'
/usr/lib/perl5/5.00503/i386-linux/CORE/perlvars.h:168: warning: data
definition has no type or storage class
In file included from /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:2138,
                 from Cflow.xs:5:
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:28: parse error before
`PL_minus_c'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:28: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:32: parse error before
`PL_preprocess'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:32: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:33: parse error before
`PL_minus_n'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:33: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:34: parse error before
`PL_minus_p'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:34: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:35: parse error before
`PL_minus_l'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:35: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:36: parse error before
`PL_minus_a'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:36: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:37: parse error before
`PL_minus_F'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:37: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:38: parse error before
`PL_doswitches'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:38: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:39: parse error before
`PL_dowarn'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:39: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:40: parse error before
`PL_doextract'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:40: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:41: parse error before
`PL_sawampersand'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:41: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:42: parse error before
`PL_sawstudy'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:42: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:43: parse error before
`PL_sawvec'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:43: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:44: parse error before
`PL_unsafe'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:44: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:120: parse error before
`PL_tainting'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:120: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:152: parse error before
`PL_preambled'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:152: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:192: parse error before
`PL_in_clean_objs'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:192: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:193: parse error before
`PL_in_clean_all'
/usr/lib/perl5/5.00503/i386-linux/CORE/intrpvar.h:193: warning: data
definition has no type or storage class
In file included from /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:2140,
                 from Cflow.xs:5:
/usr/lib/perl5/5.00503/i386-linux/CORE/thrdvar.h:67: parse error before
`PL_tainted'
/usr/lib/perl5/5.00503/i386-linux/CORE/thrdvar.h:67: warning: data
definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/thrdvar.h:88: parse error before
`PL_dirty'
/usr/lib/perl5/5.00503/i386-linux/CORE/thrdvar.h:88: warning: data
definition has no type or storage class
make: *** [Cflow.o] Error 1

[afort@probe Cflow-1.036]# perl -v

This is perl, version 5.005_03 built for i386-linux

I have built with Perl 5.6 on another server, and it builds OK, so over the
next day or so I'll get Perl 5.6 on my servers (it's sunday afternoon and
I'm just back from a weekend away so no more work till tomorrow :-) and let
you know how I fare with everything.

>Once you have Cflow working with OSU flow-tools flow files (e.g. by
>testing with "flowdumper -s"), it is *theoretically* possible to use
>FlowScan with OSU flow-tools.
>
>If you want to experiment with using FlowScan atop OSU flow-tools,
>you'll need at least revision 1.6 of the file "FlowScan.pm" (which I've
>attached) installed in your FlowScan "$prefix/bin" dir.  This is is a
>newer file than was suplied in FlowScan-1.006 and is necessary because
>the timestamp in the flow-tools file names is slightly different than
>it was from the patched cflowd.  I have _not_ tested this yet, so

you attached an old 'Cflow.pm', by the looks of it:

# $Id: Cflow.pm,v 1.27 2001/02/08 17:22:18 dplonka Exp $
# Dave Plonka <plonka@doit.wisc.edu>

>please give me feedback on whether the changes I've made there will
>work to grok the timestamp in the raw flow file names as produced by
>flow-tools-0.53 when you do:

Cool, send me the FlowScam.pm update and I'll have a hack at it tomorrow. :)

-afort

--
Help        mailto:majordomo@net.doit.wisc.edu and say "help" in message body
Unsubscribe mailto:majordomo@net.doit.wisc.edu and say
"unsubscribe flowscan" in message body
Archive     http://net.doit.wisc.edu/~plonka/list/flowscan/archive/

Date view Thread view Subject view Author view

This archive was generated by hypermail 2b25 : Sun May 27 2001 - 01:40:09 CDT