Re: [pmacct-discussion] pmacct performance

2014-04-08 Thread Viacheslav Dubrovskyi

06.04.2014 20:17, Stathis Gkotsis пишет:

Hi all,

I am using pmacctd with libpcap.
Will add my 5cent. Use libpcap with high load system not good idea. You 
will lost more then 50% traffic.
IMHO better idea use http://sourceforge.net/projects/ipt-netflow/ for 
create netflow and then use nfacct for analyze and record it.


--
WBR,
Viacheslav Dubrovskyi



smime.p7s
Description: Криптографическая подпись S/MIME
___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Re: [pmacct-discussion] HTTP traffic classification

2014-03-22 Thread Viacheslav Dubrovskyi

22.03.2014 21:20, Stathis Gkotsis пишет:

Hi all,

First, I would like to thank you for the great product, pmacct has 
proven very useful to me, which brings me to my question :)
I see that it is possible to enable traffic classification, which is 
about detecting L7 protocol. I am particularly interested in HTTP and 
also outputting the hostname or url, e.g. in exports via the print 
module. Is this somehow possible?

IMHO better use special tools https://github.com/jbittel/httpry

--
WBR,
Viacheslav Dubrovskyi



smime.p7s
Description: Криптографическая подпись S/MIME
___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Re: [pmacct-discussion] pmacct-1.5.0rc2, mongodb-10gen and rabbitmq-server 2.8.4-1 in Debian wheezy

2014-01-30 Thread Viacheslav Dubrovskyi

30.01.2014 18:00, Daniel Gomez wrote:

mongodb_plugin.c: In function ‘MongoDB_cache_purge’:
mongodb_plugin.c:388:14: warning: assignment from incompatible pointer type
[enabled by default]
mongodb_plugin.c: In function ‘MongoDB_create_indexes’:
mongodb_plugin.c:739:4: warning: passing argument 6 of ‘mongo_create_index’
makes integer from pointer without a cast [enabled by default]
In file included from mongodb_plugin.h:29:0,
  from mongodb_plugin.c:29:
/usr/local/include/mongo.h:703:18: note: expected ‘int’ but argument is of
type ‘void *’
mongodb_plugin.c:739:4: error: too few arguments to function
‘mongo_create_index’
In file included from mongodb_plugin.h:29:0,
  from mongodb_plugin.c:29:
/usr/local/include/mongo.h:703:18: note: declared here


It's bug in mongo-c-driver-0.8.1
look to the last message in thred pmacct 1.5.0rc2 released !

--
WBR,
Viacheslav Dubrovskyi


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

Re: [pmacct-discussion] pmacct 1.5.0rc2 released !

2014-01-07 Thread Viacheslav Dubrovskyi

07.01.2014 01:46, Viacheslav Dubrovskyi пишет:

Hi Paolo,

I took last version 0.8.1 from 
https://github.com/mongodb/mongo-c-driver-legacy.git, built it. And the 
error remains.

It seems this is a bug in mongo-c-driver. In mongo.h they have not changed
#define MONGO_MAJOR 0
#define MONGO_MINOR 7
#define MONGO_PATCH 0

So I use patch:
diff --git a/src/mongo.h b/src/mongo.h
index d596a84..70bdf49 100644
--- a/src/mongo.h
+++ b/src/mongo.h
@@ -33,8 +33,8 @@ MONGO_EXTERN_C_START
 #endif

 #define MONGO_MAJOR 0
-#define MONGO_MINOR 7
-#define MONGO_PATCH 0
+#define MONGO_MINOR 8
+#define MONGO_PATCH 1

 #define MONGO_OK 0
 #define MONGO_ERROR -1

And pmacct built successfully.

I think you need to give use MONGO_MINOR and focus on the latest version.


07.01.2014 01:27, Paolo Lucente пишет:

Hi Slava,

This is strange since you have installed version 0.7 of the MongoDB API
(which is when they increased by one the amount of parameters needed to
invoke function mongo_create_index which is, in turn, why the 'too many
arguments' error appears wrong). It would be beneficial if you could
offer remote-access to get this specific issue looked into. I propose
to continue this off-list.

Ok. But tomorrow. I go to sleep today.

In /usr/include/mongo.h 
https://github.com/mongodb/mongo-c-driver-legacy/blob/v0.7.1/src/mongo.h#L668 
I see:


 * Create a compound index.
 *
 * @param conn a mongo object.
 * @param ns the namespace.
 * @param data the bson index data.
 * @param options a bitfield for setting index options. Possibilities 
include

 *   MONGO_INDEX_UNIQUE, MONGO_INDEX_DROP_DUPS, MONGO_INDEX_BACKGROUND,
 *   and MONGO_INDEX_SPARSE.
 * @param out a bson document containing errors, if any.
 *
 * @return MONGO_OK if index is created successfully; otherwise, 
MONGO_ERROR.

 */
MONGO_EXPORT int mongo_create_index( mongo *conn, const char *ns,
 const bson *key, int options, 
bson *out );


So, should be 5 arguments.

In last 
https://github.com/mongodb/mongo-c-driver-legacy/blob/master/src/mongo.h#L703 
there are 7 arguments
MONGO_EXPORT int mongo_create_index( mongo *conn, const char *ns, 
const bson *key,
 const char *name, int options, 
int ttl, bson *out );


In mongodb_plugin.c :
#if MONGO_MAJOR = 0  MONGO_MINOR = 7
  mongo_create_index(db_conn, table, idx_key, NULL, 0, NULL);
#else
  mongo_create_index(db_conn, table, idx_key, NULL, 0, -1, NULL);
#endif

For 0.7 you call with 6 arguments.
So, I get 'too many arguments' error.



Cheers,
Paolo

On Tue, Jan 07, 2014 at 01:06:26AM +0200, Viacheslav Dubrovskyi wrote:

07.01.2014 00:20, Paolo Lucente пишет:

Hi Slava,

Hi Paolo,

Get another error:

mongodb_plugin.c:739:4: warning: passing argument 4 of
'mongo_create_index' makes integer from pointer without a cast
[enabled by default]
In file included from mongodb_plugin.h:29:0,
  from mongodb_plugin.c:29:
/usr/include/mongo.h:668:18: note: expected 'int' but argument is of
type 'void *'
mongodb_plugin.c:739:4: error: too many arguments to function
'mongo_create_index'
In file included from mongodb_plugin.h:29:0,
  from mongodb_plugin.c:29:
/usr/include/mongo.h:668:18: note: declared here
mongodb_plugin.c:724:7: warning: unused variable 'ret' 
[-Wunused-variable]
mongodb_plugin.c:720:21: warning: unused variable 'out' 
[-Wunused-variable]

In file included from mongodb_plugin.c:26:0:
mongodb_plugin.c: At top level:
pmacct-data.h:241:20: warning: 'cps_type' defined but not used
[-Wunused-variable]
In file included from mongodb_plugin.c:34:0:
crc32.c:49:21: warning: 'crc_32_tab' defined but not used
[-Wunused-variable]
crc32.c:84:21: warning: '__crc32' defined but not used 
[-Wunused-variable]

thread_pool.c: In function 'desallocate_thread_pool':
thread_pool.c:132:12: warning: 'worker' may be used uninitialized in
this function [-Wmaybe-uninitialized]
gmake[2]: *** [pmacctd] Error 1
gmake[2]: Leaving directory `/usr/src/RPM/BUILD/pmacct-0.15.0/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/src/RPM/BUILD/pmacct-0.15.0/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/usr/src/RPM/BUILD/pmacct-0.15.0'
error: Bad exit status from /usr/src/tmp/rpm-tmp.64223 (%build)


[builder@localhost ~]$ rpm -qa | grep mongo
libmongoc-0.7.1-alt1
libmongoc-devel-0.7.1-alt1






--
WBR,
Viacheslav Dubrovskyi




smime.p7s
Description: Криптографическая подпись S/MIME
___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Re: [pmacct-discussion] pmacct 1.5.0rc2 released !

2014-01-06 Thread Viacheslav Dubrovskyi

07.01.2014 00:20, Paolo Lucente пишет:

Hi Slava,

Hi Paolo,

Get another error:

mongodb_plugin.c:739:4: warning: passing argument 4 of 
'mongo_create_index' makes integer from pointer without a cast [enabled 
by default]

In file included from mongodb_plugin.h:29:0,
 from mongodb_plugin.c:29:
/usr/include/mongo.h:668:18: note: expected 'int' but argument is of 
type 'void *'
mongodb_plugin.c:739:4: error: too many arguments to function 
'mongo_create_index'

In file included from mongodb_plugin.h:29:0,
 from mongodb_plugin.c:29:
/usr/include/mongo.h:668:18: note: declared here
mongodb_plugin.c:724:7: warning: unused variable 'ret' [-Wunused-variable]
mongodb_plugin.c:720:21: warning: unused variable 'out' [-Wunused-variable]
In file included from mongodb_plugin.c:26:0:
mongodb_plugin.c: At top level:
pmacct-data.h:241:20: warning: 'cps_type' defined but not used 
[-Wunused-variable]

In file included from mongodb_plugin.c:34:0:
crc32.c:49:21: warning: 'crc_32_tab' defined but not used 
[-Wunused-variable]

crc32.c:84:21: warning: '__crc32' defined but not used [-Wunused-variable]
thread_pool.c: In function 'desallocate_thread_pool':
thread_pool.c:132:12: warning: 'worker' may be used uninitialized in 
this function [-Wmaybe-uninitialized]

gmake[2]: *** [pmacctd] Error 1
gmake[2]: Leaving directory `/usr/src/RPM/BUILD/pmacct-0.15.0/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/src/RPM/BUILD/pmacct-0.15.0/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/usr/src/RPM/BUILD/pmacct-0.15.0'
error: Bad exit status from /usr/src/tmp/rpm-tmp.64223 (%build)


[builder@localhost ~]$ rpm -qa | grep mongo
libmongoc-0.7.1-alt1
libmongoc-devel-0.7.1-alt1




This is also fixed. Actually just another (and last) instance of
the same issue you found before. As before, you can edit line 2187
of util.c to replace the u_int32_t definition to u_int64_t or fetch
from CVS.

Cheers,
Paolo

On Mon, Jan 06, 2014 at 11:40:15PM +0200, Viacheslav Dubrovskyi wrote:

06.01.2014 22:56, Paolo Lucente пишет:

Hi Slava,

Good to have compiler peakiness turned on. Fixed the issue, log

from the CVS below:

http://www.mail-archive.com/pmacct-commits@pmacct.net/msg00946.html

If you want to stick to 1.5.0rc2 instead of fetching from CVS you
can simply go to line  of pmacct.c and replace the u_int32_t
definition with u_int64_t. Just let me know should you stumble
into further compiling issues.

Sure! ;)
Here is another issue:

util.c: In function 'Setsocksize':
util.c:840:3: warning: 'ret' may be used uninitialized in this
function [-Wmaybe-uninitialized]
In file included from /usr/include/string.h:654:0,
  from pmacct.h:36,
  from util.c:25:
In function 'memcpy',
 inlined from 'custom_primitive_value_print' at util.c:2189:15:
/usr/include/bits/string3.h:51:3: error: call to
__builtin___memcpy_chk will always overflow destination buffer
gmake[2]: *** [util.o] Error 1
gmake[2]: Leaving directory `/usr/src/RPM/BUILD/pmacct-0.15.0/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/src/RPM/BUILD/pmacct-0.15.0/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/usr/src/RPM/BUILD/pmacct-0.15.0'
error: Bad exit status from /usr/src/tmp/rpm-tmp.46925 (%build)



Cheers,
Paolo

On Tue, Dec 31, 2013 at 01:53:32PM +0200, Viacheslav Dubrovskyi wrote:

25.12.2013 23:47, Paolo Lucente пишет:

VERSION.
1.5.0rc2

Hi Paolo,

Get error and a lot of warnings:

./configure --build=x86_64-alt-linux --host=x86_64-alt-linux
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share
--includedir=/usr/include --libdir=/usr/lib64 --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
--disable-mongodb

...skip...

PLATFORM . : x86_64
OS ... : Linux 3.10.25-std-def-alt1 (localhost.localdomain)
COMPILER . : x86_64-alt-linux-gcc
CFLAGS ... : -O2 -pipe -Wall -g -O2 -DENABLE_ULOG
LIBS . : -lmysqlclient -lpcap -lsetproctitle -L/usr/lib64
-lGeoIP -ldl -lm -lz -lpthread
SERVER_LIBS ...: -lnfprobe_plugin -Lnfprobe_plugin/ -lsfprobe_plugin
-Lsfprobe_plugin/ -lbgp -Lbgp/ -ltee_plugin -Ltee_plugin/ -lisis
-Lisis/
LDFLAGS .. : -Wl,--export-dynamic

...skip...

pmacct.c:2598:7: warning: 'elem' may be used uninitialized in this
function [-Wmaybe-uninitialized]
In file included from /usr/include/string.h:654:0,
  from pmacct.h:36,
  from pmacct.c:25:
In function 'memcpy',
 inlined from 'pmc_custom_primitive_value_print' at pmacct.c:3335:15:
/usr/include/bits/string3.h:51:3: error: call

Re: [pmacct-discussion] pmacct 1.5.0rc2 released !

2014-01-06 Thread Viacheslav Dubrovskyi

07.01.2014 01:27, Paolo Lucente пишет:

Hi Slava,

This is strange since you have installed version 0.7 of the MongoDB API
(which is when they increased by one the amount of parameters needed to
invoke function mongo_create_index which is, in turn, why the 'too many
arguments' error appears wrong). It would be beneficial if you could
offer remote-access to get this specific issue looked into. I propose
to continue this off-list.

Ok. But tomorrow. I go to sleep today.

In /usr/include/mongo.h 
https://github.com/mongodb/mongo-c-driver-legacy/blob/v0.7.1/src/mongo.h#L668 
I see:


 * Create a compound index.
 *
 * @param conn a mongo object.
 * @param ns the namespace.
 * @param data the bson index data.
 * @param options a bitfield for setting index options. Possibilities 
include

 *   MONGO_INDEX_UNIQUE, MONGO_INDEX_DROP_DUPS, MONGO_INDEX_BACKGROUND,
 *   and MONGO_INDEX_SPARSE.
 * @param out a bson document containing errors, if any.
 *
 * @return MONGO_OK if index is created successfully; otherwise, 
MONGO_ERROR.

 */
MONGO_EXPORT int mongo_create_index( mongo *conn, const char *ns,
 const bson *key, int options, bson 
*out );


So, should be 5 arguments.

In last 
https://github.com/mongodb/mongo-c-driver-legacy/blob/master/src/mongo.h#L703 
there are 7 arguments
MONGO_EXPORT int mongo_create_index( mongo *conn, const char *ns, const 
bson *key,
 const char *name, int options, int 
ttl, bson *out );


In mongodb_plugin.c :
#if MONGO_MAJOR = 0  MONGO_MINOR = 7
  mongo_create_index(db_conn, table, idx_key, NULL, 0, NULL);
#else
  mongo_create_index(db_conn, table, idx_key, NULL, 0, -1, NULL);
#endif

For 0.7 you call with 6 arguments.
So, I get 'too many arguments' error.



Cheers,
Paolo

On Tue, Jan 07, 2014 at 01:06:26AM +0200, Viacheslav Dubrovskyi wrote:

07.01.2014 00:20, Paolo Lucente пишет:

Hi Slava,

Hi Paolo,

Get another error:

mongodb_plugin.c:739:4: warning: passing argument 4 of
'mongo_create_index' makes integer from pointer without a cast
[enabled by default]
In file included from mongodb_plugin.h:29:0,
  from mongodb_plugin.c:29:
/usr/include/mongo.h:668:18: note: expected 'int' but argument is of
type 'void *'
mongodb_plugin.c:739:4: error: too many arguments to function
'mongo_create_index'
In file included from mongodb_plugin.h:29:0,
  from mongodb_plugin.c:29:
/usr/include/mongo.h:668:18: note: declared here
mongodb_plugin.c:724:7: warning: unused variable 'ret' [-Wunused-variable]
mongodb_plugin.c:720:21: warning: unused variable 'out' [-Wunused-variable]
In file included from mongodb_plugin.c:26:0:
mongodb_plugin.c: At top level:
pmacct-data.h:241:20: warning: 'cps_type' defined but not used
[-Wunused-variable]
In file included from mongodb_plugin.c:34:0:
crc32.c:49:21: warning: 'crc_32_tab' defined but not used
[-Wunused-variable]
crc32.c:84:21: warning: '__crc32' defined but not used [-Wunused-variable]
thread_pool.c: In function 'desallocate_thread_pool':
thread_pool.c:132:12: warning: 'worker' may be used uninitialized in
this function [-Wmaybe-uninitialized]
gmake[2]: *** [pmacctd] Error 1
gmake[2]: Leaving directory `/usr/src/RPM/BUILD/pmacct-0.15.0/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/src/RPM/BUILD/pmacct-0.15.0/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/usr/src/RPM/BUILD/pmacct-0.15.0'
error: Bad exit status from /usr/src/tmp/rpm-tmp.64223 (%build)


[builder@localhost ~]$ rpm -qa | grep mongo
libmongoc-0.7.1-alt1
libmongoc-devel-0.7.1-alt1



--
WBR,
Viacheslav Dubrovskyi




smime.p7s
Description: Криптографическая подпись S/MIME
___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Re: [pmacct-discussion] pmacct 1.5.0rc2 released !

2013-12-31 Thread Viacheslav Dubrovskyi

25.12.2013 23:47, Paolo Lucente пишет:

VERSION.
1.5.0rc2

Hi Paolo,

Get error and a lot of warnings:

./configure --build=x86_64-alt-linux --host=x86_64-alt-linux 
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin 
--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include 
--libdir=/usr/lib64 --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 --disable-mongodb


...skip...

PLATFORM . : x86_64
OS ... : Linux 3.10.25-std-def-alt1 (localhost.localdomain)
COMPILER . : x86_64-alt-linux-gcc
CFLAGS ... : -O2 -pipe -Wall -g -O2 -DENABLE_ULOG
LIBS . : -lmysqlclient -lpcap -lsetproctitle -L/usr/lib64 
-lGeoIP -ldl -lm -lz -lpthread
SERVER_LIBS ...: -lnfprobe_plugin -Lnfprobe_plugin/ -lsfprobe_plugin 
-Lsfprobe_plugin/ -lbgp -Lbgp/ -ltee_plugin -Ltee_plugin/ -lisis -Lisis/

LDFLAGS .. : -Wl,--export-dynamic

...skip...

pmacct.c:2598:7: warning: 'elem' may be used uninitialized in this 
function [-Wmaybe-uninitialized]

In file included from /usr/include/string.h:654:0,
 from pmacct.h:36,
 from pmacct.c:25:
In function 'memcpy',
inlined from 'pmc_custom_primitive_value_print' at pmacct.c:3335:15:
/usr/include/bits/string3.h:51:3: error: call to __builtin___memcpy_chk 
will always overflow destination buffer

pmacct.c: In function 'main':
pmacct.c:1393:9: warning: 'proto' may be used uninitialized in this 
function [-Wmaybe-uninitialized]
pmacct.c:1251:19: warning: 'f' may be used uninitialized in this 
function [-Wmaybe-uninitialized]

gmake[2]: *** [pmacct.o] Error 1
gmake[2]: Leaving directory `/usr/src/RPM/BUILD/pmacct-0.15.0/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/src/RPM/BUILD/pmacct-0.15.0/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/usr/src/RPM/BUILD/pmacct-0.15.0'
error: Bad exit status from /usr/src/tmp/rpm-tmp.15230 (%build)


$ rpm -qa | grep gcc
gcc-common-1.4.17-alt1
libgcc1-4.7.2-alt7
gcc4.7-4.7.2-alt7

Can you help with this issue?

--
WBR,
Viacheslav Dubrovskyi




smime.p7s
Description: Криптографическая подпись S/MIME
___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Re: [pmacct-discussion] pmacct-contribs now on GitHub

2013-05-14 Thread Viacheslav Dubrovskyi
14.05.2013 10:36, Paolo Lucente пишет:
 Hi Vincent, George-Cristian,

 Have no plans currently but let's see if it makes sense to do something
 like that. For pmacct-contribs the resoning is intuitive since i'm really
 just a maintainer for it - 100% so far is contributed and what is grouped
 under that umbrella is maybe 5%, if not less, of total contributions
 around pmacct. 
For me as a maintainer easier to use git. Current distributions in the
bulk use it to store the code and the migration to git will not require
imports.
When I found a bug I could not get the diff to create the patch, and had
to ask you to send it to me.
This of course is my personal opinion.

 Out of curiosity, is there any plan to move the main repo to
 git/mercurial?


-- 
WBR,
Viacheslav Dubrovskyi


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

Re: [pmacct-discussion] problem when install pmacct

2013-03-11 Thread Viacheslav Dubrovskyi
12.03.2013 05:06, Peng Xiao -X (penxiao) пишет:

 Hi , when I install pmacct, I found a problem about mysql , you can
 see from the red line.

  

 ./configure --prefix=/opt/pmacct --enable-ipv6 --enable-mysql
 --enable-threads --disable-so


You use:  

--disable-so Disable shared objects

So you must provide static libmysqlclient.a. Do you have it in
/usr/lib/mysql ?

 gcc -DPACKAGE=\pmacctd\ -DVERSION=\0.14.2\ -DPROGNAME=1
 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1
 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1
 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DWITH_MYSQL=1 -DHAVE_SYS_WAIT_H=1
 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1
 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1
 -DHAVE_U_INT8_T=1 -DENABLE_THREADS=1 -DRETSIGTYPE=void  -I. -I. 
 -O2 -g -O2  -c sql_handlers.c

 gcc -DPACKAGE=\pmacctd\ -DVERSION=\0.14.2\ -DPROGNAME=1
 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1
 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1
 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DWITH_MYSQL=1 -DHAVE_SYS_WAIT_H=1
 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1
 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1
 -DHAVE_U_INT8_T=1 -DENABLE_THREADS=1 -DRETSIGTYPE=void  -I. -I. 
 -O2 -g -O2  -c log_templates.c

 gcc  -O2 -g -O2  -Wl,--export-dynamic  -o pmmyplay  pmmyplay.o
 strlcpy.o sql_handlers.o log_templates.o addr.o  -lpcap 
 -L/usr/lib/mysql -lmysqlclient -lm -lz -lpthread -lnfprobe_plugin
 -Lnfprobe_plugin/ -lsfprobe_plugin -Lsfprobe_plugin/ -lbgp -Lbgp/
 -ltee_plugin -Ltee_plugin/ -lisis -Lisis/

 /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so
 when searching for -lmysqlclient

 /usr/bin/ld: cannot find -lmysqlclient

 collect2: ld returned 1 exit status

 gmake[2]: *** [pmmyplay] Error 1

 gmake[2]: Leaving directory `/root/Desktop/pmacct-0.14.2/src'

 gmake[1]: *** [all-recursive] Error 1

 gmake[1]: Leaving directory `/root/Desktop/pmacct-0.14.2/src'

  

  

 What’s the problem, in my system, libmysqlclientalready has.



-- 
WBR,
Viacheslav Dubrovskyi

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

Re: [pmacct-discussion] sFlow from ZTE 5928 TX and counting accuracy

2012-07-25 Thread Viacheslav Dubrovskyi
25.07.2012 19:40, Paolo Lucente пишет:
 Hi Slava,

 On Mon, Jul 23, 2012 at 07:37:02PM +0300, Viacheslav Dubrovskyi wrote:

 Which fields should I use to count?
 datagramSize ?
 sampledPacketSize ?
 IPSize ?
 IPSize is what you are looking to compare against.

Thank you.
I checked it by http://www.inmon.com/technology/sflow5Test.awk and get
http://171.25.204.8/stats.html (a lot of traffic)

Is this normal? I was confused by the error.

-- 
WBR,
Viacheslav Dubrovskyi




smime.p7s
Description: Криптографическая подпись S/MIME
___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Re: [pmacct-discussion] Errors in compilation

2012-07-16 Thread Viacheslav Dubrovskyi
24.04.2012 20:47, Paolo Lucente пишет:
 Hi Slava,

 I tried to compile myself on a few systems with different gcc releases
 and your rather long commandline did work for me. Looking more closely
 i see that your compiler seems to be over-peaky failing on this:

 In function 'memcpy',
 inlined from 'bgp_srcdst_lookup' at bgp.c:2121:21:
 /usr/include/bits/string3.h:52:3: error: call to __builtin___memcpy_chk
 will always overflow destination buffer
 Well it's not true: copying 16 bytes (the length of an IPv6 address in
 a sin6_addr structure (which is meant to hold IPv6 addresses) will not
 overflow anything. 
I still can not upgrade a package due to this error.
The error occurs when enable --enable-ipv6.
I do not want to disable ipv6.
Maybe help me find the problem?
Reproduced on various versions of the compiler.

I can give you access to reproduce the problem.

-- 
WBR,
Viacheslav Dubrovskyi




smime.p7s
Description: Криптографическая подпись S/MIME
___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists