Re: [pmacct-discussion] Errors in compilation
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
Re: [pmacct-discussion] The accounting of flows requires SQL table v4
On 07/16/2012 04:28:25 PM, Leonardo Sápiras wrote: Hi everybody, I am trying to use the aggregate peer_src_ip in my pmacctd.conf. But when I start it the pmacct says: ERROR ( default/mysql ): The accounting of flows requires SQL table v4. Exiting. Without this directive, it works. The pmacct database tables that support pmacct have changed over time. There are different version numbers for different table structures. You need to re-create or update your table structure in your db to something newer (at least v4) in order to use peer_src_ip. I can't help with the best way to do this but I seem to recall instructions are included in the documentation. Karl k...@meme.com Free Software: You don't pay back, you pay forward. -- Robert A. Heinlein ___ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists
Re: [pmacct-discussion] The accounting of flows requires SQL table v4
2012/7/16 Karl O. Pinc k...@meme.com On 07/16/2012 04:28:25 PM, Leonardo Sápiras wrote: Hi everybody, I am trying to use the aggregate peer_src_ip in my pmacctd.conf. But when I start it the pmacct says: ERROR ( default/mysql ): The accounting of flows requires SQL table v4. Exiting. Without this directive, it works. The pmacct database tables that support pmacct have changed over time. There are different version numbers for different table structures. You need to re-create or update your table structure in your db to something newer (at least v4) in order to use peer_src_ip. I can't help with the best way to do this but I seem to recall instructions are included in the documentation. Thanks Karl, but it still looks weird. I found another discussion [1] a little bit similar to it, IMHO. Are you sure that it's not a bug? Or am I missing anything in the pmacct config? [1] - http://www.mail-archive.com/pmacct-discussion@pmacct.net/msg01455.html Regards -- Atenciosamente Leonardo Augusto Sápiras ___ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists