<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<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";
        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";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@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 lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</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"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><i>ol.h:33,<o:p></o:p></i></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,<o:p></o:p></i></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:<o:p></o:p></i></p>
<p class="MsoNormal"><i>../../lib/srdb1/db.h:388:20: error: expected unqualified-id before âdeleteâ<o:p></o:p></i></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*)â:<o:p></o:p></i></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]<o:p></o:p></i></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]<o:p></o:p></i></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]<o:p></o:p></i></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]<o:p></o:p></i></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]<o:p></o:p></i></p>
<p class="MsoNormal"><i>../../lib/srdb1/db_res.h: At global scope:<o:p></o:p></i></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]<o:p></o:p></i></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]<o:p></o:p></i></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]<o:p></o:p></i></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]<o:p></o:p></i></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]<o:p></o:p></i></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]<o:p></o:p></i></p>
<p class="MsoNormal"><i>make[1]: *** [dbcassa_base.o] Error 1<o:p></o:p></i></p>
<p class="MsoNormal"><i>make: *** [install-modules] Error 1<o:p></o:p></i></p>
<p class="MsoNormal"><i><o:p>&nbsp;</o:p></i></p>
<p class="MsoNormal"><i><o:p>&nbsp;</o:p></i></p>
<p class="MsoNormal">Anybody has got any ideas? <o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thanks in advance,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Bou<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>