-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Ivan, The versions at splintered.net should actually work. However, it seems, as there are also compile issues on some Linuxes. Therefore I made a small patch for the flow-tools version available at Google Code.
o Install flow-tools from Google code. o Apply the patch appended to nfdump-1.6.1 Recompile nfdump. Hope, this helps - Peter On 4/12/10 5:03, Ian B wrote: > Thanks - yes, I was using the one available at Google Code. I've since tried > compiling against v0.66 from splintered.net however I'm having exactly the > same issue!? > > My compile environment is RHEL 5.4 (gcc-4.1.2, glibc-2.5-42, kernel-2.6.18) > on i686 > > Ian. > > > --- On Fri, 9/4/10, Peter Haag <peter.h...@switch.ch> wrote: > >> From: Peter Haag <peter.h...@switch.ch> >> Subject: Re: [Nfdump-discuss] ft2nfdump with flow-tools-0.68 ? >> To: "Ian B" <porj...@yahoo.com.au>, "nfdump-discuss@lists.sourceforge.net >> >> "'nfdump-discuss@lists.sourceforge.net'"" >> <nfdump-discuss@lists.sourceforge.net> >> Received: Friday, 9 April, 2010, 5:01 PM > > There are 2 different versions of flow-tools. The one I > used and which compiles is on: > http://www.splintered.net/sw/flow-tools/ > > I guess you using the one available at Google Code. This > may require some minor modification to the code. > If you need it only for ft2nfdump, use the original one. > > Regards > > - Peter > > On 4/9/10 5:40, Ian B wrote: >>>> I'm trying to compile nfdump 1.6.1 with ftconv enabled > however I'm getting the following error: >>>> >>>> $ ./configure --prefix=/usr/local/nfdump-1.6.1 > --enable-ftconv --enable-nfprofile > --with-ftpath=/usr/local/flow-tools/ >>>> checking for a BSD-compatible install... > /usr/bin/install -c >>>> checking whether build environment is sane... yes >>>> checking for a thread-safe mkdir -p... /bin/mkdir -p >>>> checking for gawk... gawk >>>> checking whether make sets $(MAKE)... yes >>>> checking for gcc... gcc >>>> checking for C compiler default output file name... > a.out >>>> checking whether the C compiler works... yes >>>> checking whether we are cross compiling... no >>>> checking for suffix of executables... >>>> checking for suffix of object files... o >>>> checking whether we are using the GNU C compiler... > yes >>>> checking whether gcc accepts -g... yes >>>> checking for gcc option to accept ISO C89... none > needed >>>> checking for style of include used by make... GNU >>>> checking dependency style of gcc... gcc3 >>>> checking whether gcc and cc understand -c and -o > together... yes >>>> checking whether we are using SunPro C... no >>>> checking for bison... no >>>> checking for byacc... byacc >>>> checking for flex... flex >>>> checking lex output file root... lex.yy >>>> checking lex library... -lfl >>>> checking whether yytext is a pointer... yes >>>> checking for a BSD-compatible install... > /usr/bin/install -c >>>> checking for zlibVersion in -lz... yes >>>> configure: error: ftlib.h file not found in flow-tools > directory '/usr/local/flow-tools/'. Use --with-ftpath=PATH >>>> >>>> >>>> I checked 'configure' and it appears to be looking in > '/lib' for ftlib.h however I'm using flow-tools-0.68 which > puts that in '/include' by default... >>>> >>>> If I modify 'configure' to look in the correct > location for ftlib.h then it completes OK, however make > barfs with: >>>> >>>> gcc -DHAVE_CONFIG_H -I. -I.. > -I/usr/local/flow-tools//src -I/usr/local/flow-tools//lib -g > -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -Wmissing-noreturn -MT > ft2nfdump-ft2nfdump.o -MD -MP -MF > .deps/ft2nfdump-ft2nfdump.Tpo -c -o ft2nfdump-ft2nfdump.o > `test -f 'ft2nfdump.c' || echo './'`ft2nfdump.c >>>> ft2nfdump.c:71:21: error: ftbuild.h: No such file or > directory >>>> make[3]: *** [ft2nfdump-ft2nfdump.o] Error 1 >>>> >>>> >>>> ftbuild.h appears to be missing from flow-tools-0.68 > :( >>>> >>>> Is it possible to compile ft2nfdump agains > flow-tools-0.68 or do I need to look at using an older > version of flow-tools? >>>> >>>> Thanks, >>>> Ian. >>>> >>>> >>>> >>>> >>>> > ------------------------------------------------------------------------------ >>>> Download IntelĀ® Parallel Studio Eval >>>> Try the new software tools for yourself. Speed > compiling, find bugs >>>> proactively, and fine-tune applications for parallel > performance. >>>> See why Intel Parallel Studio got high marks during > beta. >>>> http://p.sf.net/sfu/intel-sw-dev >>>> _______________________________________________ >>>> Nfdump-discuss mailing list >>>> Nfdump-discuss@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nfdump-discuss > >> - -- _______ SWITCH - The Swiss Education and Research Network ______ Peter Haag, Security Engineer, Member of SWITCH CERT PGP fingerprint: D9 31 D5 83 03 95 68 BA FB 84 CA 94 AB FC 5D D7 SWITCH, Werdstrasse 2, P.O. Box, CH-8021 Zurich, Switzerland E-mail: peter.h...@switch.ch Web: http://www.switch.ch/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iQCVAwUBS8LXif5AbZRALNr/AQL7FQP+OvA2+oqwjk1cSXbXchMA516k1Y5HXbJ2 lZnGIq03+DU+7HaDOUS2YUCpKiyA2e0Sf73bcuWZcU3EA6C0BGq2Md5I0xxGsqgX HzPHirpJZFDboSC+LvbByFP8glFrAPXhkHYoxr1kdGN3m/5vsjyhC5TRhHolszHO E8uPdfbNB+E= =TiVh -----END PGP SIGNATURE-----
diff -ru nfdump-1.6.1/bin/ft2nfdump.c nfdump-1.6.1-p0/bin/ft2nfdump.c --- nfdump-1.6.1/bin/ft2nfdump.c 2009-11-25 09:10:35.000000000 +0100 +++ nfdump-1.6.1-p0/bin/ft2nfdump.c 2010-04-12 09:49:22.000000000 +0200 @@ -68,7 +68,7 @@ #include "nfx.h" #include "launch.h" -#include "ftbuild.h" +// #include "ftbuild.h" /* Global defines */ #define MAXRECORDS 30 diff -ru nfdump-1.6.1/configure nfdump-1.6.1-p0/configure --- nfdump-1.6.1/configure 2010-01-29 10:09:27.000000000 +0100 +++ nfdump-1.6.1-p0/configure 2010-04-12 09:29:57.000000000 +0200 @@ -4011,7 +4011,7 @@ fi if test -d "$WHERE_FTPATH"; then - if test ! -f "$WHERE_FTPATH/lib/ftlib.h"; then + if test ! -f "$WHERE_FTPATH/include/ftlib.h"; then { { echo "$as_me:$LINENO: error: ftlib.h file not found in flow-tools directory '$WHERE_FTPATH'. Use --with-ftpath=PATH" >&5 echo "$as_me: error: ftlib.h file not found in flow-tools directory '$WHERE_FTPATH'. Use --with-ftpath=PATH" >&2;} { (exit 1); exit 1; }; } @@ -4021,7 +4021,7 @@ echo "$as_me: error: libft.a not found in flow-tools directory '$WHERE_FTPATH'. Build flow tools first" >&2;} { (exit 1); exit 1; }; } fi - FT_INCLUDES="-I$WHERE_FTPATH/src -I$WHERE_FTPATH/lib" + FT_INCLUDES="-I$WHERE_FTPATH/include -I$WHERE_FTPATH/lib" FT_LDFLAGS="-L$WHERE_FTPATH/lib" else { { echo "$as_me:$LINENO: error: flow-tools directory '$WHERE_FTPATH' does not exists. Use --with-ftpath=PATH" >&5 diff -ru nfdump-1.6.1/configure.in nfdump-1.6.1-p0/configure.in --- nfdump-1.6.1/configure.in 2010-01-29 09:55:09.000000000 +0100 +++ nfdump-1.6.1-p0/configure.in 2010-04-12 09:29:42.000000000 +0200 @@ -100,13 +100,13 @@ AC_MSG_ERROR(Link with "-lz" failed! (Need zlib >= 1.0.2)) ) if test -d "$WHERE_FTPATH"; then - if test ! -f "$WHERE_FTPATH/lib/ftlib.h"; then + if test ! -f "$WHERE_FTPATH/include/ftlib.h"; then AC_MSG_ERROR(ftlib.h file not found in flow-tools directory '$WHERE_FTPATH'. Use --with-ftpath=PATH) fi if test ! -f "$WHERE_FTPATH/lib/libft.a"; then AC_MSG_ERROR(libft.a not found in flow-tools directory '$WHERE_FTPATH'. Build flow tools first) fi - FT_INCLUDES="-I$WHERE_FTPATH/src -I$WHERE_FTPATH/lib" + FT_INCLUDES="-I$WHERE_FTPATH/include -I$WHERE_FTPATH/lib" FT_LDFLAGS="-L$WHERE_FTPATH/lib" else AC_MSG_ERROR(flow-tools directory '$WHERE_FTPATH' does not exists. Use --with-ftpath=PATH)
patch-p0.txt.sig
Description: video/flv
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ Nfdump-discuss mailing list Nfdump-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfdump-discuss