<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">HI Anca,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks for pointing me to the latest GIT version, this compiles as per normal.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Another question,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Have you got pointers on how to install the tables / setup Cassandra.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I have created the column families for location, subscriber, version but not yet filled these with data.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Bou<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext;mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext;mso-fareast-language:EN-GB">
 sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org]
<b>On Behalf Of </b>Anca Vamanu<br>
<b>Sent:</b> 14 August 2012 13:39<br>
<b>To:</b> sr-users@lists.sip-router.org<br>
<b>Subject:</b> Re: [SR-Users] db_cassandra<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">Hi,<br>
<br>
<br>
I tried compiling the module with the latest 3.1 from git and indeed it did not compile initially.<br>
This very simple patch that is attached was needed. There were some problems with implicit casts.<br>
<br>
I see that you are talking about 3.1.1 version, I have not tried with this exact version. You should maybe consider using the latest git for 3.1, it should also be more stable.<br>
<br>
<br>
Regards,<br>
Anca<br>
<br>
<br>
<br>
<br>
<br>
On 08/14/2012 01:05 PM, Boudewyn Ligthart wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal">I am trying to get the db_cassandra working in kamailio 3.1.1 with thrift 0.6.1 API and however I get the following<br>
compile error.<o:p></o:p></p>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal"><i>ol.h:33,</i><o:p></o:p></p>
<p class="MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from dbcassa_base.h:38,</i><o:p></o:p></p>
<p class="MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from dbcassa_base.cpp:47:</i><o:p></o:p></p>
<p class="MsoNormal"><i>../../lib/srdb1/db.h:388:20: error: expected unqualified-id before âdeleteâ</i><o:p></o:p></p>
<p class="MsoNormal"><i>dbcassa_base.cpp: In function âColumnVecPtr cassa_translate_query(const db1_con_t*, str* const*, const db_val_t*, str* const*, int, int, int*)â:</i><o:p></o:p></p>
<p class="MsoNormal"><i>dbcassa_base.cpp:538:8: warning: format â%dâ expects argument of type âintâ, but argument 7 has type âstd::vector&lt;org::apache::cassandra::KeySlice&gt;::size_type {aka long unsigned int}â [-Wformat]</i><o:p></o:p></p>
<p class="MsoNormal"><i>dbcassa_base.cpp:538:8: warning: format â%dâ expects argument of type âintâ, but argument 5 has type âstd::vector&lt;org::apache::cassandra::KeySlice&gt;::size_type {aka long unsigned int}â [-Wformat]</i><o:p></o:p></p>
<p class="MsoNormal"><i>dbcassa_base.cpp:538:8: warning: format â%dâ expects argument of type âintâ, but argument 6 has type âstd::vector&lt;org::apache::cassandra::KeySlice&gt;::size_type {aka long unsigned int}â [-Wformat]</i><o:p></o:p></p>
<p class="MsoNormal"><i>dbcassa_base.cpp:538:8: warning: format â%dâ expects argument of type âintâ, but argument 4 has type âstd::vector&lt;org::apache::cassandra::KeySlice&gt;::size_type {aka long unsigned int}â [-Wformat]</i><o:p></o:p></p>
<p class="MsoNormal"><i>dbcassa_base.cpp:538:8: warning: format â%dâ expects argument of type âintâ, but argument 4 has type âstd::vector&lt;org::apache::cassandra::KeySlice&gt;::size_type {aka long unsigned int}â [-Wformat]</i><o:p></o:p></p>
<p class="MsoNormal"><i>../../lib/srdb1/db_res.h: At global scope:</i><o:p></o:p></p>
<p class="MsoNormal"><i>../../lib/srdb1/db_res.h:105:19: warning: inline function âdb1_res_t* db_new_result()â used but never defined [enabled by default]</i><o:p></o:p></p>
<p class="MsoNormal"><i>../../lib/srdb1/db_res.h:121:12: warning: inline function âint db_allocate_columns(db1_res_t*, unsigned int)â used but never defined [enabled by default]</i><o:p></o:p></p>
<p class="MsoNormal"><i>../../lib/srdb1/db_res.h:98:12: warning: inline function âint db_free_columns(db1_res_t*)â used but never defined [enabled by default]</i><o:p></o:p></p>
<p class="MsoNormal"><i>../../lib/srdb1/db_res.h:129:12: warning: inline function âint db_allocate_rows(db1_res_t*)â used but never defined [enabled by default]</i><o:p></o:p></p>
<p class="MsoNormal"><i>../../lib/srdb1/db_row.h:74:12: warning: inline function âint db_allocate_row(const db1_res_t*, db_row_t*)â used but never defined [enabled by default]</i><o:p></o:p></p>
<p class="MsoNormal"><i>../../lib/srdb1/db_res.h:111:12: warning: inline function âint db_free_result(db1_res_t*)â used but never defined [enabled by default]</i><o:p></o:p></p>
<p class="MsoNormal"><i>make[1]: *** [dbcassa_base.o] Error 1</i><o:p></o:p></p>
<p class="MsoNormal"><i>make: *** [install-modules] Error 1</i><o:p></o:p></p>
<p class="MsoNormal"><i>&nbsp;</i><o:p></o:p></p>
<p class="MsoNormal"><i>&nbsp;</i><o:p></o:p></p>
<p class="MsoNormal">Anybody has got any ideas? <o:p></o:p></p>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal">Thanks in advance,<o:p></o:p></p>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal">Bou<o:p></o:p></p>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;mso-fareast-language:EN-GB"><o:p>&nbsp;</o:p></span></p>
</div>
</body>
</html>