New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error compiling- can you help? #31
Comments
Hello, write_top.c/usr/include/zlib.h:1324:21: note: expected ‘gzFile’ but argument is of type ‘struct gzFile_s **’ This looks strange because here is the code :
I'm wondering where has gzFile_s been defined. What version of zlib do you have ? On what OS (version, distribution, arch...) are you compiling ? write_mongodb.cThis is an unmodified code from the original collectd (version 5.3.0). So this is not the best place to ask for help. jsonrpc
Those 2 lines have nothing to do together. Write_mongodb.c comes from vanilla collectd. Jsonrpc is a collectd_pw feature that we support but that has nothing to do with mongodb.c. If yes, do you have any developer skill to find out, probably in src/Makefile.am (and maybe in configure.in), why do write_mongodb and jsonrpc mix together ? Regards, |
I am using Ubuntu 12.10 (Quantal Quetzal) |
write_top.c : I will install an ubuntu 12.10 in some virtual machine and try to compile.
For write_mongodb.c problem, on your ubuntu, it seems that you should have mongodb-dev package installed. I would also like to know if you compile on 32 or 64 bits architecture. |
Thanks. I am able to resolve the above issues on 12.04. 64 bit. I am stuck with write_mongodb.c - line 77 - bson_create() method (I have created the issue on collectd too. Thanks |
Hello, For what I understand :
Is that right ? If yes, let's close this case to avoid too much unrerelative information to this issue. Regards, |
1 . For mongodb - Installed https://github.com/mongodb/mongo-c-driver sudo apt-get install mongodb graphite-carbon git build-essential autoconf libtool scons --Install mongo client |
I consider this issue as closed. About mongodb, it's better to discuss on mainstream mailing-list or in the issue your raised (collectd/collectd#331) |
Yves |
Hello, Fixed in ba9f2e80d692c0cea2d1604068dbe0f71cb7f90d, 5babe04227089055be6e5bde23429d776197593d, aa10214d4c498438e56e25e7011d0aeeef226bba and a640de871b150f2a66d9c68d6e5662cbc55a7f64 (sorry, this impacts 4 patches we maintain). A new version 20130527 (5.3.0 tested and 5.2.1 not tested) was released including these patchs. Yves |
Downloaded collectd-5.3.0.20130516.tar.gz
In file included from write_top.c:30:0:
/usr/include/zlib.h:1324:21: note: expected ‘gzFile’ but argument is of type ‘struct gzFile_s *’
write_top.c:262:2: error: passing argument 1 of ‘gzwrite’ from incompatible pointer type [-Werror]
In file included from write_top.c:30:0:
/usr/include/zlib.h:1324:21: note: expected ‘gzFile’ but argument is of type ‘struct gzFile_s *’
write_top.c:263:2: error: passing argument 1 of ‘gzclose’ from incompatible pointer type [-Werror]
In file included from write_top.c:30:0:
/usr/include/zlib.h:1494:24: note: expected ‘gzFile’ but argument is of type ‘struct gzFile_s **’
write_mongodb.c:246:3: error: implicit declaration of function ‘bson_dispose’ [-Werror=implicit-function-declaration]
make[3]: *** [jsonrpc_la-jsonrpc.lo] Error 1
cc1: all warnings being treated as errors
cc1: all warnings being treated as errorsmake[3]: *** [write_mongodb_la-write_mongodb.lo] Error 1
make[3]: *** [write_top_la-write_top.lo] Error 1
make[3]: Leaving directory
/home/sysadmin/downloads/collectd-5.3.0.20130516/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory
/home/sysadmin/downloads/collectd-5.3.0.20130516/src'make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/sysadmin/downloads/collectd-5.3.0.20130516/src'
make: *** [all-recursive] Error 1
sysadmin@build-dev:~/downloads/collectd-5.3.0.20130516$
The text was updated successfully, but these errors were encountered: