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