Sorry for the top post, not at my normal client.

nfdump was compiled according to the config log as :

$ ./configure --enable-compat15 --enable-nfprofile --with-rrdpath=/usr/local 
--enable-ftconv --with-ftpath=/usr/local --enable-sflow --prefix=/usr/local 
--mandir=/usr/local/man --infodir=/usr/local/info/ 
--build=i386-portbld-freebsd7.3

I checked the patching to it, and it only seems to deal with the ftlib include 
location, so it should be as if someone on any other operating system ran that 
configure.

Why is there a LogError in nftrack.c if there is already one in util.c? (I'm 
not a C programmer, I don't run into things like this in perl. ;) )

Thanks, Tuc
________________________________________
From: Peter Haag [[email protected]]
Sent: Wednesday, June 09, 2010 3:49 PM
To: Scott Ellentuch
Cc: [email protected]
Subject: Re: [Nfsen-discuss] Error compiling nftrack

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



On 9/6/10 7:19 PM, Scott Ellentuch wrote:
> Hi,
>
> Installed nfdump (1.6) from FreeBSD ports, same with nfsen (Which doesn't do 
> the plugin). I set
>
> NFDUMP=/usr/ports/net-mgmt/nfdump/work/nfdump-1.6/bin
> copied the config.h in there so it could be found, then tried "do_compile".
>
> I end with :
>
> + gcc -o nftrack nftrack.o nftrack_rrd.o nftrack_stat.o 
> /usr/ports/net-mgmt/nfdump/work/nfdump-1.6/bin/util.o 
> /usr/ports/net-mgmt/nfdump/work/nfdump-1.6/bin/nftree.o 
> /usr/ports/net-mgmt/nfdump/work/nfdump-1.6/bin/grammar.o 
> /usr/ports/net-mgmt/nfdump/work/nfdump-1.6/bin/scanner.o 
> /usr/ports/net-mgmt/nfdump/work/nfdump-1.6/bin/nffile.o 
> /usr/ports/net-mgmt/nfdump/work/nfdump-1.6/bin/flist.o 
> /usr/ports/net-mgmt/nfdump/work/nfdump-1.6/bin/nf_common.o 
> /usr/ports/net-mgmt/nfdump/work/nfdump-1.6/bin/panonymizer.o 
> /usr/ports/net-mgmt/nfdump/work/nfdump-1.6/bin/rijndael.o 
> /usr/ports/net-mgmt/nfdump/work/nfdump-1.6/bin/ipconv.o 
> /usr/ports/net-mgmt/nfdump/work/nfdump-1.6/bin/minilzo.o 
> /usr/ports/net-mgmt/nfdump/work/nfdump-1.6/bin/fts_compat.o 
> /usr/ports/net-mgmt/nfdump/work/nfdump-1.6/bin/nfx.o -L/usr/local/lib -lrrd 
> -L/usr/X11R6/lib -L/usr/local/lib
> /usr/ports/net-mgmt/nfdump/work/nfdump-1.6/bin/util.o(.text+0x220): In 
> function `LogError':
> /usr/ports/net-mgmt/nfdump/work/nfdump-1.6/bin/util.c:154: multiple 
> definition of `LogError'
> nftrack.o(.text+0xf10):/usr/ports/net-mgmt/nfsen/work/nfsen-1.3.2/contrib/PortTracker/nftrack.c:122:
>  first defined here
> /usr/bin/ld: Warning: size of symbol `LogError' changed from 82 in nftrack.o 
> to 132 in /usr/ports/net-mgmt/nfdump/work/nfdump-1.6/bin/util.o

I don't know the details of the FreeBSD package, but it looks to me, that maybe 
some other compiler options have been
used to compile the package. LogError() uses varargs as the only function. Try 
digging that way, or contact the package
maintainer.

        - Peter

>
> Any ideas what to do to fix?
>
> Thanks
> Tuc
>
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to