You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and it gives me following warning for every line number from 16 to 35
[WARNING:/home/nsalwan/charybdefs/server.thrift:16] No field key specified for method, resulting protocol may have conflicts or not be backwards compatible!
After that I execute
cmake CMakeLists.txt
and then I execute :
make
which again gives me this warning:
[WARNING:/home/nsalwan/charybdefs/server.thrift:16] No field key specified for method, resulting protocol may have conflicts or not be backwards compatible!
and also this:
[ 12%] Building CXX object CMakeFiles/charybde_lib.dir/charybde_ops.cc.o
[ 25%] Building CXX object CMakeFiles/charybde_lib.dir/server.cc.o
/home/nsalwan/charybdefs/server.cc: In function ‘void server_thread()’:
/home/nsalwan/charybdefs/server.cc:260:69: error: no matching function for call to ‘serverProcessor::serverProcessor(std::shared_ptr<server_handler>&)’
260 | shared_ptr processor(new serverProcessor(handler));
| ^
In file included from /home/nsalwan/charybdefs/server.cc:35:
/home/nsalwan/charybdefs/gen-cpp/server.h:674:3: note: candidate: ‘serverProcessor::serverProcessor(boost::shared_ptr)’
674 | serverProcessor(boost::shared_ptr iface) :
| ^~~~~~~~~~~~~~~
/home/nsalwan/charybdefs/gen-cpp/server.h:674:47: note: no known conversion for argument 1 from ‘std::shared_ptr<server_handler>’ to ‘boost::shared_ptr’
674 | serverProcessor(boost::shared_ptr iface) :
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/home/nsalwan/charybdefs/gen-cpp/server.h:660:7: note: candidate: ‘serverProcessor::serverProcessor(const serverProcessor&)’
660 | class serverProcessor : public ::apache::thrift::TDispatchProcessor {
| ^~~~~~~~~~~~~~~
/home/nsalwan/charybdefs/gen-cpp/server.h:660:7: note: no known conversion for argument 1 from ‘std::shared_ptr<server_handler>’ to ‘const serverProcessor&’
/home/nsalwan/charybdefs/server.cc:265:91: error: no matching function for call to ‘apache::thrift::server::TSimpleServer::TSimpleServer(std::shared_ptrapache::thrift::TProcessor&, std::shared_ptrapache::thrift::transport::TServerTransport&, std::shared_ptrapache::thrift::transport::TTransportFactory&, std::shared_ptrapache::thrift::protocol::TProtocolFactory&)’
265 | TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
| ^
In file included from /home/nsalwan/charybdefs/server.cc:31:
/usr/include/thrift/server/TSimpleServer.h:73:3: note: candidate: ‘template apache::thrift::server::TSimpleServer::TSimpleServer(const boost::shared_ptr&, const boost::shared_ptrapache::thrift::transport::TServerTransport&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, typename boost::enable_if<typename boost::is_convertible<Processor*, apache::thrift::TProcessor*>::type, void*>::type)’
73 | TSimpleServer(
| ^~~~~~~~~~~~~
/usr/include/thrift/server/TSimpleServer.h:73:3: note: template argument deduction/substitution failed:
/home/nsalwan/charybdefs/server.cc:265:91: note: ‘std::shared_ptrapache::thrift::TProcessor’ is not derived from ‘const boost::shared_ptr’
265 | TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
| ^
In file included from /home/nsalwan/charybdefs/server.cc:31:
/usr/include/thrift/server/TSimpleServer.h:59:3: note: candidate: ‘template apache::thrift::server::TSimpleServer::TSimpleServer(const boost::shared_ptr&, const boost::shared_ptrapache::thrift::transport::TServerTransport&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, typename boost::enable_if<typename boost::is_convertible<ProcessorFactory*, apache::thrift::TProcessorFactory*>::type, void*>::type)’
59 | TSimpleServer(
| ^~~~~~~~~~~~~
/usr/include/thrift/server/TSimpleServer.h:59:3: note: template argument deduction/substitution failed:
/home/nsalwan/charybdefs/server.cc:265:91: note: ‘std::shared_ptrapache::thrift::TProcessor’ is not derived from ‘const boost::shared_ptr’
265 | TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
| ^
In file included from /home/nsalwan//charybdefs/server.cc:31:
/usr/include/thrift/server/TSimpleServer.h:49:3: note: candidate: ‘template apache::thrift::server::TSimpleServer::TSimpleServer(const boost::shared_ptr&, const boost::shared_ptrapache::thrift::transport::TServerTransport&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, typename boost::enable_if<typename boost::is_convertible<Processor*, apache::thrift::TProcessor*>::type, void*>::type)’
49 | TSimpleServer(
| ^~~~~~~~~~~~~
/usr/include/thrift/server/TSimpleServer.h:49:3: note: template argument deduction/substitution failed:
/home/nsalwan/charybdefs/server.cc:265:91: note: ‘std::shared_ptrapache::thrift::TProcessor’ is not derived from ‘const boost::shared_ptr’
265 | TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
| ^
In file included from /home/nsalwan/charybdefs/server.cc:31:
/usr/include/thrift/server/TSimpleServer.h:38:3: note: candidate: ‘template apache::thrift::server::TSimpleServer::TSimpleServer(const boost::shared_ptr&, const boost::shared_ptrapache::thrift::transport::TServerTransport&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, typename boost::enable_if<typename boost::is_convertible<ProcessorFactory*, apache::thrift::TProcessorFactory*>::type, void*>::type)’
38 | TSimpleServer(
| ^~~~~~~~~~~~~
/usr/include/thrift/server/TSimpleServer.h:38:3: note: template argument deduction/substitution failed:
/home/nsalwan/charybdefs/server.cc:265:91: note: ‘std::shared_ptrapache::thrift::TProcessor’ is not derived from ‘const boost::shared_ptr’
265 | TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
| ^
In file included from /home/nsalwan/charybdefs/server.cc:31:
/usr/include/thrift/server/TSimpleServer.h:35:7: note: candidate: ‘apache::thrift::server::TSimpleServer::TSimpleServer(const apache::thrift::server::TSimpleServer&)’
35 | class TSimpleServer : public TServer {
| ^~~~~~~~~~~~~
/usr/include/thrift/server/TSimpleServer.h:35:7: note: candidate expects 1 argument, 4 provided
make[2]: *** [CMakeFiles/charybde_lib.dir/server.cc.o] Error 1
make[1]: *** [CMakeFiles/charybde_lib.dir/all] Error 2
The text was updated successfully, but these errors were encountered:
I am not able to build at any platform. with or without docker.
I don't have scylladb on my machine.
I have tried following instruction for both platforms.
steps used to reproduce on centos 7:
git clone https://github.com/scylladb/charybdefs
No error.
then
sudo yum install gcc-c++ cmake fuse fuse-devel thrift python-thrift thrift-devel
No error.
then i execute this:
thrift -r --gen cpp --gen py server.thrift
and it gives me following warning for every line number from 16 to 35
[WARNING:/home/nsalwan/charybdefs/server.thrift:16] No field key specified for method, resulting protocol may have conflicts or not be backwards compatible!
After that I execute
cmake CMakeLists.txt
and then I execute :
make
which again gives me this warning:
[WARNING:/home/nsalwan/charybdefs/server.thrift:16] No field key specified for method, resulting protocol may have conflicts or not be backwards compatible!
and also this:
[ 12%] Building CXX object CMakeFiles/charybde_lib.dir/charybde_ops.cc.o
[ 25%] Building CXX object CMakeFiles/charybde_lib.dir/server.cc.o
/home/nsalwan/charybdefs/server.cc: In function ‘void server_thread()’:
/home/nsalwan/charybdefs/server.cc:260:69: error: no matching function for call to ‘serverProcessor::serverProcessor(std::shared_ptr<server_handler>&)’
260 | shared_ptr processor(new serverProcessor(handler));
| ^
In file included from /home/nsalwan/charybdefs/server.cc:35:
/home/nsalwan/charybdefs/gen-cpp/server.h:674:3: note: candidate: ‘serverProcessor::serverProcessor(boost::shared_ptr)’
674 | serverProcessor(boost::shared_ptr iface) :
| ^~~~~~~~~~~~~~~
/home/nsalwan/charybdefs/gen-cpp/server.h:674:47: note: no known conversion for argument 1 from ‘std::shared_ptr<server_handler>’ to ‘boost::shared_ptr’
674 | serverProcessor(boost::shared_ptr iface) :
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/home/nsalwan/charybdefs/gen-cpp/server.h:660:7: note: candidate: ‘serverProcessor::serverProcessor(const serverProcessor&)’
660 | class serverProcessor : public ::apache::thrift::TDispatchProcessor {
| ^~~~~~~~~~~~~~~
/home/nsalwan/charybdefs/gen-cpp/server.h:660:7: note: no known conversion for argument 1 from ‘std::shared_ptr<server_handler>’ to ‘const serverProcessor&’
/home/nsalwan/charybdefs/server.cc:265:91: error: no matching function for call to ‘apache::thrift::server::TSimpleServer::TSimpleServer(std::shared_ptrapache::thrift::TProcessor&, std::shared_ptrapache::thrift::transport::TServerTransport&, std::shared_ptrapache::thrift::transport::TTransportFactory&, std::shared_ptrapache::thrift::protocol::TProtocolFactory&)’
265 | TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
| ^
In file included from /home/nsalwan/charybdefs/server.cc:31:
/usr/include/thrift/server/TSimpleServer.h:73:3: note: candidate: ‘template apache::thrift::server::TSimpleServer::TSimpleServer(const boost::shared_ptr&, const boost::shared_ptrapache::thrift::transport::TServerTransport&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, typename boost::enable_if<typename boost::is_convertible<Processor*, apache::thrift::TProcessor*>::type, void*>::type)’
73 | TSimpleServer(
| ^~~~~~~~~~~~~
/usr/include/thrift/server/TSimpleServer.h:73:3: note: template argument deduction/substitution failed:
/home/nsalwan/charybdefs/server.cc:265:91: note: ‘std::shared_ptrapache::thrift::TProcessor’ is not derived from ‘const boost::shared_ptr’
265 | TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
| ^
In file included from /home/nsalwan/charybdefs/server.cc:31:
/usr/include/thrift/server/TSimpleServer.h:59:3: note: candidate: ‘template apache::thrift::server::TSimpleServer::TSimpleServer(const boost::shared_ptr&, const boost::shared_ptrapache::thrift::transport::TServerTransport&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, typename boost::enable_if<typename boost::is_convertible<ProcessorFactory*, apache::thrift::TProcessorFactory*>::type, void*>::type)’
59 | TSimpleServer(
| ^~~~~~~~~~~~~
/usr/include/thrift/server/TSimpleServer.h:59:3: note: template argument deduction/substitution failed:
/home/nsalwan/charybdefs/server.cc:265:91: note: ‘std::shared_ptrapache::thrift::TProcessor’ is not derived from ‘const boost::shared_ptr’
265 | TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
| ^
In file included from /home/nsalwan//charybdefs/server.cc:31:
/usr/include/thrift/server/TSimpleServer.h:49:3: note: candidate: ‘template apache::thrift::server::TSimpleServer::TSimpleServer(const boost::shared_ptr&, const boost::shared_ptrapache::thrift::transport::TServerTransport&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, typename boost::enable_if<typename boost::is_convertible<Processor*, apache::thrift::TProcessor*>::type, void*>::type)’
49 | TSimpleServer(
| ^~~~~~~~~~~~~
/usr/include/thrift/server/TSimpleServer.h:49:3: note: template argument deduction/substitution failed:
/home/nsalwan/charybdefs/server.cc:265:91: note: ‘std::shared_ptrapache::thrift::TProcessor’ is not derived from ‘const boost::shared_ptr’
265 | TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
| ^
In file included from /home/nsalwan/charybdefs/server.cc:31:
/usr/include/thrift/server/TSimpleServer.h:38:3: note: candidate: ‘template apache::thrift::server::TSimpleServer::TSimpleServer(const boost::shared_ptr&, const boost::shared_ptrapache::thrift::transport::TServerTransport&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, typename boost::enable_if<typename boost::is_convertible<ProcessorFactory*, apache::thrift::TProcessorFactory*>::type, void*>::type)’
38 | TSimpleServer(
| ^~~~~~~~~~~~~
/usr/include/thrift/server/TSimpleServer.h:38:3: note: template argument deduction/substitution failed:
/home/nsalwan/charybdefs/server.cc:265:91: note: ‘std::shared_ptrapache::thrift::TProcessor’ is not derived from ‘const boost::shared_ptr’
265 | TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
| ^
In file included from /home/nsalwan/charybdefs/server.cc:31:
/usr/include/thrift/server/TSimpleServer.h:35:7: note: candidate: ‘apache::thrift::server::TSimpleServer::TSimpleServer(const apache::thrift::server::TSimpleServer&)’
35 | class TSimpleServer : public TServer {
| ^~~~~~~~~~~~~
/usr/include/thrift/server/TSimpleServer.h:35:7: note: candidate expects 1 argument, 4 provided
make[2]: *** [CMakeFiles/charybde_lib.dir/server.cc.o] Error 1
make[1]: *** [CMakeFiles/charybde_lib.dir/all] Error 2
The text was updated successfully, but these errors were encountered: