<div dir="ltr">This seems like a question maybe better suited to Opensips Users mailing list but in any case, you need to make sure you have thrift installed.  If you are under the impression it is then use locate and make sure the include file is somewhere it can be found by the compiler.<div>
<br></div><div><div>[root@registrar-1 ~]# locate Thrift.h</div><div>/usr/local/include/thrift/Thrift.h</div><div>/usr/local/src/thrift-0.8.0/lib/cpp/src/Thrift.h</div><div>/usr/local/src/thrift-0.8.0/lib/hs/src/Thrift.hs</div>
</div><div><br></div><div><br></div><div>As you can see, I&#39;m using version 0.8.0.  I seem to remember having problems compiling 0.9.1 on CentOS.</div><div><br></div><div>There was another change I had to do in the Makefile in the module directory after getting thrift installed.  This might be what you were talking about in your email but just in case, I&#39;ll copy it here as well.</div>
<div><div><br></div><div><br></div><div>&quot;Cassandra came to my attention a couple days ago.  I&#39;ve never used it so thought I would give it a try.  To get it to compile on my centos servers I had to modify the CXXFLAGS line in modules/cachedb_cassandra/Makefile to:&quot;</div>
<div><br></div><div>CXXFLAGS=$(CFLAGS:-Wno-deprecated option=) -DHAVE_NETINET_IN_H</div></div><div><br></div><div><br></div><div>Hope this helps.</div><div><br></div><div>Richard</div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Mar 5, 2014 at 5:16 AM, srivastava himanshu <span dir="ltr">&lt;<a href="mailto:himanshu.s279@gmail.com" target="_blank">himanshu.s279@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I am trying to compile cachedb_cassandra module to integrate my opensips<br>
with cassandra. However, on compiling , I am getting flow of errors :<br>
<br>
make[1]: Entering directory<br>
`/home/himanshu/opensips-1.10.0-tls/modules/cachedb_cassandra&#39;<br>
Compiling cachedb_cassandra_dbase.cpp<br>
Compiling cassandra_constants.cpp<br>
cc1plus: warning: command line option &quot;-Wold-style-definition&quot; is valid for<br>
C/ObjC but not for C++<br>
Compiling cassandra_types.cpp<br>
cc1plus: warning: command line option &quot;-Wold-style-definition&quot; is valid for<br>
C/ObjC but not for C++<br>
Compiling Cassandra.cpp<br>
cc1plus: warning: command line option &quot;-Wold-style-definition&quot; is valid for<br>
C/ObjC but not for C++<br>
cc1plus: warning: command line option &quot;-Wold-style-definition&quot; is valid for<br>
C/ObjC but not for C++<br>
In file included from cassandra_constants.h:9,<br>
                 from cassandra_constants.cpp:6:<br>
cassandra_types.h:9:20: error: Thrift.h: No such file or directory<br>
cassandra_types.h:10:35: error: TApplicationException.h: No such file or<br>
directory<br>
cassandra_types.h:11:32: error: protocol/TProtocol.h: No such file or<br>
directory<br>
cassandra_types.h:12:34: error: transport/TTransport.h: No such file or<br>
directory<br>
.<br>
.<br>
.<br>
.<br>
.<br>
.<br>
.<br>
There are many more errors after this, but I think that could be due to<br>
missing .h files error.<br>
Opensips version is 1.10<br>
I tried making change in Makefile but got same result.  Is there anything I<br>
am missing.   Please help.<br>
<br>
Thanks<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/Error-on-compling-cachedb-cassandra-module-Opensips-1-10-tp7589903.html" target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/Error-on-compling-cachedb-cassandra-module-Opensips-1-10-tp7589903.html</a><br>

Sent from the OpenSIPS - Devel mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a><br>
</blockquote></div><br></div>