syndicate-storage / syndicate

Internet-scale software-defined storage system
Apache License 2.0
56 stars 10 forks source link

Compilation error while building #3

Closed iychoi closed 11 years ago

iychoi commented 11 years ago

While compiling libsyndicate, I met below error.

I used the latest source from github.

iychoi@iychoi-virtual-machine:~/NetBeansProjects/syndicate-git$ scons libsyndicate scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... scons: building associated VariantDir targets: build/out/libsyndicate g++ -o build/out/libsyndicate/libgateway.os -c -fPIC -g -Wall -I. -I/usr/include -I/usr/local/include -Ibuild/out/libsyndicate -Ibuild/out/protobufs build/out/libsyndicate/libgateway.cpp build/out/libsyndicate/libgateway.cpp: In function 'md_HTTP_response* gateway_GET_handler(md_HTTP_connectiondata)': build/out/libsyndicate/libgateway.cpp:534:140: error: invalid conversion from 'ssizet ()(void_, uint64t, char, sizet) {aka long int ()(void, long unsigned int, char, long unsigned int)}' to 'md_HTTP_streamcallback {aka int ()(void, long unsigned int, char, int)}' [-fpermissive] build/out/libsyndicate/libsyndicate.h:623:5: error: initializing argument 6 of 'int md_create_HTTP_response_stream(md_HTTPresponse, const char_, int, uint64_t, size_t, md_HTTP_streamcallback, void, md_HTTP_free_clscallback)' [-fpermissive] scons: ** [build/out/libsyndicate/libgateway.os] Error 1 scons: building terminated because of errors.

jcnelson commented 11 years ago

Download, compile, and install the latest stable version of libmicrohttpd. The one in Fedora's repository is too old.

I'm adding a package for the latest stable libmicrohttpd to our repository.

-Jude

----- Original Message ----- From: "Illyoung Choi" notifications@github.com To: "jcnelson/syndicate" syndicate@noreply.github.com Sent: Monday, June 17, 2013 5:47:36 PM Subject: [syndicate] Compilation error while building (#3)

While compiling libsyndicate, I met below error.

I used the latest source from github.

iychoi@iychoi-virtual-machine:~/NetBeansProjects/syndicate-git$ scons libsyndicate scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... scons: building associated VariantDir targets: build/out/libsyndicate g++ -o build/out/libsyndicate/libgateway.os -c -fPIC -g -Wall -I. -I/usr/include -I/usr/local/include -Ibuild/out/libsyndicate -Ibuild/out/protobufs build/out/libsyndicate/libgateway.cpp build/out/libsyndicate/libgateway.cpp: In function 'md_HTTP_response* gateway_GET_handler(md_HTTP_connectiondata)': build/out/libsyndicate/libgateway.cpp:534:140: error: invalid conversion from 'ssizet ()(void_, uint64t, char, sizet) {aka long int ()(void, long unsigned int, char, long unsigned int)}' to 'md_HTTP_streamcallback {aka int ()(void, long unsigned int, char, int)}' [-fpermissive] build/out/libsyndicate/libsyndicate.h:623:5: error: initializing argument 6 of 'int md_create_HTTP_response_stream(md_HTTPresponse, const char_, int, uint64_t, size_t, md_HTTP_streamcallback, void, md_HTTP_free_clscallback)' [-fpermissive] scons: ** [build/out/libsyndicate/libgateway.os] Error 1 scons: building terminated because of errors.

— Reply to this email directly or view it on GitHub .

iychoi commented 11 years ago

I used one in Debian repository (Apt) but guess it's too old as well. I tried to install from source and compiled well.

Thanks you.