<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">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:<br>
</div>
<blockquote
cite="mid:D8261FE064C78B44B77EF7C4569D6CBF0D11ADB3@DB3PRD0510MB380.eurprd05.prod.outlook.com"
type="cite">
<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]-->
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><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"><o:p> </o:p></p>
<p class="MsoNormal"><i>ol.h:33,<o:p></o:p></i></p>
<p class="MsoNormal"><i> from dbcassa_base.h:38,<o:p></o:p></i></p>
<p class="MsoNormal"><i> 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<org::apache::cassandra::KeySlice>::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<org::apache::cassandra::KeySlice>::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<org::apache::cassandra::KeySlice>::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<org::apache::cassandra::KeySlice>::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<org::apache::cassandra::KeySlice>::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> </o:p></i></p>
<p class="MsoNormal"><i><o:p> </o:p></i></p>
<p class="MsoNormal">Anybody has got any ideas? <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks in advance,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Bou<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</blockquote>
<br>
<br>
</body>
</html>