Hi Slava,

For manually patching the issue: open mongodb_plugin.c file at the
lines (two) where the error is found by the compiler and replace:

data->src_host_country with data->src_ip_country
data->dst_host_country with data->dst_ip_country

About setproctitle: we should see what's going on: on one hand i would
not expect setproctitle to be a library on its own; on the other there
is a setproctitle() defined internally to pmacct to kick-in when the
function is not made available by the OS. If you can provide access to
the box for some troubleshooting, let's follow-up privately on this.

Cheers,
Paolo


On Sat, Mar 09, 2013 at 08:08:59PM +0200, Viacheslav Dubrovskyi wrote:
> 09.03.2013 17:01, Paolo Lucente ??????????:
> > Hi Slava,
> >
> > Issue is fixed now. Thanks for reporting it. You can download latest
> > code from CVS to get it.
> Thank you!
> But can you show patch for this issue? Sorry, I hardly know cvs. :(
> 
> And about another issue.
> I get:
> ./configure --build=i586-alt-linux --host=i586-alt-linux --prefix=/usr
> --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
> --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
> --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var/lib
> --sharedstatedir=/var/lib --mandir=/usr/share/man
> --infodir=/usr/share/info --disable-dependency-tracking
> --without-included-gettext --with-pgsql-includes=/usr/include/pgsql
> --enable-threads --enable-ulog --enable-64bit --enable-v4-mapped
> --enable-ipv6 --enable-geoip --enable-mysql --disable-pgsql
> --disable-sqlite3
> 
> ...skip...
> 
> checking for setproctitle... no
> 
> But I know, that have libs
> 
> [builder@localhost ~]$ rpm -qa | grep setproc
> setproctitle-devel-0.3.2-alt3
> setproctitle-0.3.2-alt3
> 
> So I check config.log:
> 
> configure:6697: checking for setproctitle
> configure:6697: i586-alt-linux-gcc -o conftest -O2 -pipe -Wall -g -O2
> -march=i586 -mtune=generic -DENABLE_ULOG  -Wl,--export-dynamic 
> conftest.c -lmysqlclient -lpcap  -lGeoIP -ldl -lm -lz -lpthread >&5
> /usr/src/tmp/cc8hmMMj.o: In function `main':
> /usr/src/RPM/BUILD/pmacct-0.14.2/conftest.c:87: undefined reference to
> `setproctitle'
> collect2: error: ld returned 1 exit status
> 
> And not see -lsetproctitle
> So I need add export LIBS="-lsetproctitle" before ./configure.
> 
> Seems it's bug.
> 
> -- 
> WBR,
> Viacheslav Dubrovskyi
> 

_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to