-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Szymon,
The Portracker is not yet updated for 1.6b. I'll compile a quick fix. Stay 
tuned.

        - Peter

Szymon Trocha wrote:
> 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,

- --
_______ 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: [email protected] Web: http://www.switch.ch/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iQCVAwUBSwJko/5AbZRALNr/AQKy8AP/WKRvRTT3svZbwBDPotB19Mbga/NJdUWR
JDRJyAYBTI0Sh9VtVQe9aNb9uIoyAxl0TeoZh9aKd9BNzMnrys5g3Z7ixXd4iYBs
yjHUWhmIKrNkNiluU8oe+ek/GWWl6U4YCIKENZg9Nh1TvfOm4YZpfM5edAJrTifQ
Ok9YRFt4NtM=
=l32l
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
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

Reply via email to