Hi Slava,

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 3333 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 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
> >>
> >>
> >
> >
> >>_______________________________________________
> >>pmacct-discussion mailing list
> >>http://www.pmacct.net/#mailinglists
> >
> >_______________________________________________
> >pmacct-discussion mailing list
> >http://www.pmacct.net/#mailinglists
> 
> 
> -- 
> WBR,
> Viacheslav Dubrovskyi
> 
> 



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


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

Reply via email to