Hi, I'm trying to compile PortTracker under Ubuntu with Nfsen 1.3.2 and nfdump-snapshot-1.6b-20090930. Unfortunately I get the following error about nftrack.c:
r...@mirabilis:/home/services/nfsen/INSTALKI/nfsen-1.3.2/contrib/PortTracker# ./do_compile + NFDUMP=/home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin + RRDINCLUDE=/usr/local/include + LIBRRD=/usr/local/lib + NFDUMP_OBJ=/home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/util.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nftree.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/grammar.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/scanner.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/flist.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nf_common.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/panonymizer.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/rijndael.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/ipconv.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/minilzo.o + [ -f /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/fts_compat.o ] + [ -f /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nfx.o ] + INCLUDES=-I /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin -I/usr/local/include + CC=gcc -c -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn + gcc -c -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -c -I /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin -I/usr/local/include nftrack.c nftrack.c:54:20: error: config.h: No such file or directory In file included from nftrack.c:61: /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/version.h:42: error: â€VERSION’ undeclared here (not in a function) In file included from nftrack.c:97: /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c: In function â€CheckBufferSpace’: /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c:73: warning: cast from pointer to integer of different size /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c: In function â€ExpandRecord_v2’: /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c:105: warning: cast from pointer to integer of different size /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c:116: warning: cast from pointer to integer of different size /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c:126: warning: cast from pointer to integer of different size /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c:130: warning: cast from pointer to integer of different size /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c:140: warning: cast from pointer to integer of different size /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c:144: warning: cast from pointer to integer of different size /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c: In function â€PackRecord’: /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c:341: warning: cast from pointer to integer of different size /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c:352: warning: cast from pointer to integer of different size /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c:358: warning: cast from pointer to integer of different size /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c:364: warning: cast from pointer to integer of different size /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c:374: warning: cast from pointer to integer of different size /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c:378: warning: cast from pointer to integer of different size /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c:388: warning: cast from pointer to integer of different size /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c:392: warning: cast from pointer to integer of different size /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c: In function â€AppendToBuffer’: /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c:561: warning: cast from pointer to integer of different size /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile_inline.c:575: warning: cast from pointer to integer of different size nftrack.c: In function â€process’: nftrack.c:229: warning: cast from pointer to integer of different size nftrack.c:229: warning: cast to pointer from integer of different size nftrack.c:257: warning: cast from pointer to integer of different size nftrack.c:257: warning: cast to pointer from integer of different size nftrack.c: In function â€main’: nftrack.c:409: warning: format â€%i’ expects type â€int’, but argument 2 has type â€time_t’ + gcc -c -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -c -I /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin -I/usr/local/include nftrack_rrd.c nftrack_rrd.c:12:20: error: config.h: No such file or directory In file included from nftrack_rrd.c:19: nftrack_stat.h:4: error: expected specifier-qualifier-list before â€uint64_t’ nftrack_rrd.c: In function â€RRD_StoreDataRow’: nftrack_rrd.c:226: error: â€uint32_t’ undeclared (first use in this function) nftrack_rrd.c:226: error: (Each undeclared identifier is reported only once nftrack_rrd.c:226: error: for each function it appears in.) nftrack_rrd.c:226: error: expected â€;’ before â€pnum’ nftrack_rrd.c:275: error: â€pnum’ undeclared (first use in this function) nftrack_rrd.c: In function â€RRD_GetDataRow’: nftrack_rrd.c:322: error: â€uint64_t’ undeclared (first use in this function) nftrack_rrd.c:322: error: expected â€;’ before â€dummy’ nftrack_rrd.c:408: error: â€dummy’ undeclared (first use in this function) nftrack_rrd.c:409: error: â€data_element’ has no member named â€type’ + gcc -c -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -c -I /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin -I/usr/local/include nftrack_stat.c nftrack_stat.c:11:20: error: config.h: No such file or directory In file included from nftrack_stat.c:17: nftrack_stat.h:4: error: expected specifier-qualifier-list before â€uint64_t’ nftrack_stat.c:25: error: expected specifier-qualifier-list before â€uint16_t’ nftrack_stat.c:31: error: expected specifier-qualifier-list before â€uint16_t’ nftrack_stat.c: In function â€InitStat’: nftrack_stat.c:48: error: â€stat_header_t’ has no member named â€version’ nftrack_stat.c: In function â€InitStatFile’: nftrack_stat.c:86: error: â€stat_header_t’ has no member named â€version’ nftrack_stat.c:87: error: â€stat_header_t’ has no member named â€av_num’ nftrack_stat.c:88: error: â€stat_header_t’ has no member named â€last’ nftrack_stat.c:94: error: â€stat_header_t’ has no member named â€version’ nftrack_stat.c: In function â€CloseStat’: nftrack_stat.c:143: error: â€stat_header_t’ has no member named â€version’ nftrack_stat.c: In function â€ReadStat’: nftrack_stat.c:180: error: â€stat_header_t’ has no member named â€version’ nftrack_stat.c:181: error: â€stat_header_t’ has no member named â€version’ nftrack_stat.c:184: error: â€stat_header_t’ has no member named â€version’ nftrack_stat.c:194: error: â€stat_header_t’ has no member named â€version’ nftrack_stat.c: In function â€UpdateStat’: nftrack_stat.c:215: error: â€data_element’ has no member named â€type’ nftrack_stat.c:215: error: â€data_element’ has no member named â€type’ nftrack_stat.c:220: error: â€stat_header_t’ has no member named â€last’ nftrack_stat.c:223: error: â€stat_header_t’ has no member named â€last’ nftrack_stat.c:226: error: â€stat_header_t’ has no member named â€last’ nftrack_stat.c:226: error: â€stat_header_t’ has no member named â€av_num’ nftrack_stat.c:226: error: â€stat_header_t’ has no member named â€av_num’ nftrack_stat.c:232: error: â€data_element’ has no member named â€type’ nftrack_stat.c:232: error: â€data_element’ has no member named â€type’ nftrack_stat.c:237: error: â€stat_header_t’ has no member named â€last’ nftrack_stat.c: In function â€Generate_TopN’: nftrack_stat.c:269: error: â€stat_header_t’ has no member named â€last’ nftrack_stat.c:271: warning: format â€%d’ expects type â€int’, but argument 3 has type â€time_t’ nftrack_stat.c:275: error: â€topN_vector_t’ has no member named â€port’ nftrack_stat.c:276: error: â€topN_vector_t’ has no member named â€count’ nftrack_stat.c:276: error: â€data_element’ has no member named â€type’ nftrack_stat.c:282: error: â€topN_vector_t’ has no member named â€port’ nftrack_stat.c:282: error: â€topN_vector_t’ has no member named â€count’ nftrack_stat.c:287: error: â€topN_vector_t’ has no member named â€port’ nftrack_stat.c:290: error: â€topN_vector_t’ has no member named â€count’ nftrack_stat.c: In function â€siftDown’: nftrack_stat.c:324: error: â€uint32_t’ undeclared (first use in this function) nftrack_stat.c:324: error: (Each undeclared identifier is reported only once nftrack_stat.c:324: error: for each function it appears in.) nftrack_stat.c:324: error: expected â€;’ before â€done’ nftrack_stat.c:327: error: â€done’ undeclared (first use in this function) nftrack_stat.c:330: error: â€maxChild’ undeclared (first use in this function) nftrack_stat.c:331: error: â€topN_vector_t’ has no member named â€count’ nftrack_stat.c:331: error: â€topN_vector_t’ has no member named â€count’ nftrack_stat.c:336: error: â€topN_vector_t’ has no member named â€count’ nftrack_stat.c: In function â€Lister’: nftrack_stat.c:356: error: â€data_element’ has no member named â€type’ nftrack_stat.c:357: error: â€data_element’ has no member named â€type’ + gcc -o nftrack nftrack.o nftrack_rrd.o nftrack_stat.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/util.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nftree.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/grammar.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/scanner.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/flist.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nf_common.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/panonymizer.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/rijndael.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/ipconv.o /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/minilzo.o -L/usr/local/lib -lrrd -L/usr/X11R6/lib -L/usr/local/lib gcc: nftrack.o: No such file or directory gcc: /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/util.o: No such file or directory gcc: /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nftree.o: No such file or directory gcc: /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/grammar.o: No such file or directory gcc: /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/scanner.o: No such file or directory gcc: /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nffile.o: No such file or directory gcc: /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/flist.o: No such file or directory gcc: /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/nf_common.o: No such file or directory gcc: /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/panonymizer.o: No such file or directory gcc: /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/rijndael.o: No such file or directory gcc: /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/ipconv.o: No such file or directory gcc: /home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin/minilzo.o: No such file or directory Here is the content of relevant directories: NFDUMP=/home/services/nfsen/INSTALKI/nfdump-snapshot-1.6b-20090930/bin RRDINCLUDE=/usr/local/include r...@mirabilis:/usr/local/include# ls -l total 32 -rw-r--r-- 1 root root 17743 2009-07-28 16:41 rrd_format.h -rw-r--r-- 1 root root 10063 2009-07-28 16:41 rrd.h LIBRRD=/usr/local/lib r...@mirabilis:/usr/local/lib# ls -l librrd* -rw-r--r-- 1 root root 1116006 2009-07-28 16:41 librrd.a -rwxr-xr-x 1 root root 1237 2009-07-28 16:41 librrd.la lrwxrwxrwx 1 root root 15 2009-07-28 16:41 librrd.so -> librrd.so.4.0.7 lrwxrwxrwx 1 root root 15 2009-07-28 16:41 librrd.so.4 -> librrd.so.4.0.7 -rwxr-xr-x 1 root root 624163 2009-07-28 16:41 librrd.so.4.0.7 -rw-r--r-- 1 root root 1115340 2009-07-28 16:41 librrd_th.a -rwxr-xr-x 1 root root 1277 2009-07-28 16:41 librrd_th.la lrwxrwxrwx 1 root root 18 2009-07-28 16:41 librrd_th.so -> librrd_th.so.4.0.7 lrwxrwxrwx 1 root root 18 2009-07-28 16:41 librrd_th.so.4 -> librrd_th.so.4.0.7 -rwxr-xr-x 1 root root 621279 2009-07-28 16:41 librrd_th.so.4.0.7 Should I put nftrack.c from PortTracker installation directory somewhere? Help will be appreciated. Best regards, -- Szymon Trocha Poznan Supercomputing & Netw. Center ::: NETWORK OPERATION CENTER Tel. +48 618582022 ::: http://noc.man.poznan.pl ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nfsen-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
