No subject


Wed Jun 27 05:48:46 CEST 2012


0(11171) DEBUG: auth_db [authorize.c:274]: realm value [172.23.1.188]
0(11171) DEBUG: auth [api.c:96]: auth: digest-algo: MD5 parsed value: 1
0(11171) DEBUG: db_cassandra [dbcassa_base.cpp:608]: query table=3Dsubscrib=
er
0(11171) DEBUG: db_cassandra [dbcassa_table.c:461]: found dbname=3Dopenser,=
 table=3Dsubscriber
0(11171) DEBUG: db_cassandra [dbcassa_base.cpp:350]: query col =3D username
0(11171) DEBUG: db_cassandra [dbcassa_base.cpp:350]: query col =3D domain
0(11171) DEBUG: db_cassandra [dbcassa_base.cpp:375]: key =3D userX 172.23.1=
.188
0(11171) DEBUG: db_cassandra [dbcassa_base.cpp:498]: Query col: password
0(11171) DEBUG: db_cassandra [dbcassa_base.cpp:500]: get 1 columns

0(11171) DEBUG: db_cassandra [dbcassa_table.c:461]: found dbname=3Dopenser,=
 table=3Dsubscriber
0(11171) DEBUG: db_cassandra [dbcassa_base.cpp:665]: RES_NAMES(0x7fd2fb336f=
e0)[0]=3D[password]
0(11171) DEBUG: db_cassandra [dbcassa_base.cpp:672]: The query returned no =
result
0(11171) DEBUG: db_cassandra [dbcassa_base.cpp:715]: Exited with success
0(11171) DEBUG: auth_db [authorize.c:112]: no result for user 'userX at 172.23=
.1.188'

Noticed that the key is a combined key, is this correct?

The values in the column family are:

RowKey: userX
=3D> (column=3Ddomain, value=3D172.23.1.188, timestamp=3D1345563751910000)
=3D> (column=3Dpassword, value=3Dpass123, timestamp=3D1345563765514000)

Thanks,

Bou

From: sr-users-bounces at lists.sip-router.org [mailto:sr-users-bounces at lists.=
sip-router.org] On Behalf Of Anca Vamanu
Sent: 14 August 2012 14:53
To: sr-users at lists.sip-router.org
Subject: Re: [SR-Users] db_cassandra

Hi,


If you are using cassandra-cli you can fill in the tables using something l=
ike this:

version table:

set version['location']['table_version']=3D'1004';
set version['subscriber']['table_version']=3D'6';

and the subscriber table:

set subscriber['userX']['domain']=3D'domain.com';
set subscriber['userX']['password']=3D'pass123';


Regards,
Anca


On 08/14/2012 04:26 PM, Boudewyn Ligthart wrote:
HI Anca,

Thanks for pointing me to the latest GIT version, this compiles as per norm=
al.

Another question,

Have you got pointers on how to install the tables / setup Cassandra.
I have created the column families for location, subscriber, version but no=
t yet filled these with data.

Regards

Bou

From: sr-users-bounces at lists.sip-router.org<mailto:sr-users-bounces at lists.s=
ip-router.org> [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of =
Anca Vamanu
Sent: 14 August 2012 13:39
To: sr-users at lists.sip-router.org<mailto:sr-users at lists.sip-router.org>
Subject: Re: [SR-Users] db_cassandra

Hi,


I tried compiling the module with the latest 3.1 from git and indeed it did=
 not compile initially.
This very simple patch that is attached was needed. There were some problem=
s with implicit casts.

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 s=
hould also be more stable.


Regards,
Anca





On 08/14/2012 01:05 PM, Boudewyn Ligthart wrote:
Hi,

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
compile error.

ol.h:33,
                 from dbcassa_base.h:38,
                 from dbcassa_base.cpp:47:
../../lib/srdb1/db.h:388:20: error: expected unqualified-id before =E2delet=
e=E2
dbcassa_base.cpp: In function =E2ColumnVecPtr cassa_translate_query(const d=
b1_con_t*, str* const*, const db_val_t*, str* const*, int, int, int*)=E2:
dbcassa_base.cpp:538:8: warning: format =E2%d=E2 expects argument of type =
=E2int=E2, but argument 7 has type =E2std::vector<org::apache::cassandra::K=
eySlice>::size_type {aka long unsigned int}=E2 [-Wformat]
dbcassa_base.cpp:538:8: warning: format =E2%d=E2 expects argument of type =
=E2int=E2, but argument 5 has type =E2std::vector<org::apache::cassandra::K=
eySlice>::size_type {aka long unsigned int}=E2 [-Wformat]
dbcassa_base.cpp:538:8: warning: format =E2%d=E2 expects argument of type =
=E2int=E2, but argument 6 has type =E2std::vector<org::apache::cassandra::K=
eySlice>::size_type {aka long unsigned int}=E2 [-Wformat]
dbcassa_base.cpp:538:8: warning: format =E2%d=E2 expects argument of type =
=E2int=E2, but argument 4 has type =E2std::vector<org::apache::cassandra::K=
eySlice>::size_type {aka long unsigned int}=E2 [-Wformat]
dbcassa_base.cpp:538:8: warning: format =E2%d=E2 expects argument of type =
=E2int=E2, but argument 4 has type =E2std::vector<org::apache::cassandra::K=
eySlice>::size_type {aka long unsigned int}=E2 [-Wformat]
../../lib/srdb1/db_res.h: At global scope:
../../lib/srdb1/db_res.h:105:19: warning: inline function =E2db1_res_t* db_=
new_result()=E2 used but never defined [enabled by default]
../../lib/srdb1/db_res.h:121:12: warning: inline function =E2int db_allocat=
e_columns(db1_res_t*, unsigned int)=E2 used but never defined [enabled by d=
efault]
../../lib/srdb1/db_res.h:98:12: warning: inline function =E2int db_free_col=
umns(db1_res_t*)=E2 used but never defined [enabled by default]
../../lib/srdb1/db_res.h:129:12: warning: inline function =E2int db_allocat=
e_rows(db1_res_t*)=E2 used but never defined [enabled by default]
../../lib/srdb1/db_row.h:74:12: warning: inline function =E2int db_allocate=
_row(const db1_res_t*, db_row_t*)=E2 used but never defined [enabled by def=
ault]
../../lib/srdb1/db_res.h:111:12: warning: inline function =E2int db_free_re=
sult(db1_res_t*)=E2 used but never defined [enabled by default]
make[1]: *** [dbcassa_base.o] Error 1
make: *** [install-modules] Error 1


Anybody has got any ideas?

Thanks in advance,

Bou




--_000_D8261FE064C78B44B77EF7C4569D6CBF0D11CD44DB3PRD0510MB380_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:36.0pt;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","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;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle21
	{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;}
/* List Definitions */
@list l0
	{mso-list-id:1397363394;
	mso-list-type:hybrid;
	mso-list-template-ids:-1465726898 -394200054 134807555 134807557 134807553=
 134807555 134807557 134807553 134807555 134807557;}
@list l0:level1
	{mso-level-start-at:1648;
	mso-level-number-format:bullet;
	mso-level-text:\F0F0;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:Wingdings;
	mso-fareast-font-family:Calibri;
	mso-bidi-font-family:"Times New Roman";}
@list l0:level2
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:"Courier New";}
@list l0:level3
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:Wingdings;}
@list l0:level4
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:Symbol;}
@list l0:level5
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:"Courier New";}
@list l0:level6
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:Wingdings;}
@list l0:level7
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:Symbol;}
@list l0:level8
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:"Courier New";}
@list l0:level9
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:Wingdings;}
ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=3D"white" lang=3D"EN-GB" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Hi, <o:p></o:p></span>=
</p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">&nbsp;&nbsp;Kamailio n=
ow, connects to Cassandra ok. However the query against the column family<b=
r>
does not yield any results. Followed the docs to only create the column fam=
ily inside the keyspace.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">From log:<o:p></o:p></=
span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">0(11171) DEBUG: auth_d=
b [authorize.c:274]: realm value [172.23.1.188]<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">0(11171) DEBUG: auth [=
api.c:96]: auth: digest-algo: MD5 parsed value: 1<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">0(11171) DEBUG: db_cas=
sandra [dbcassa_base.cpp:608]: query table=3Dsubscriber<o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">0(11171) DEBUG: db_cas=
sandra [dbcassa_table.c:461]: found dbname=3Dopenser, table=3Dsubscriber<o:=
p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">0(11171) DEBUG: db_cas=
sandra [dbcassa_base.cpp:350]: query col =3D username<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">0(11171) DEBUG: db_cas=
sandra [dbcassa_base.cpp:350]: query col =3D domain<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">0(11171) DEBUG: db_cas=
sandra [dbcassa_base.cpp:375]: key =3D userX 172.23.1.188<o:p></o:p></span>=
</p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">0(11171) DEBUG: db_cas=
sandra [dbcassa_base.cpp:498]: Query col: password<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">0(11171) DEBUG: db_cas=
sandra [dbcassa_base.cpp:500]: get 1 columns<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">0(11171) DEBUG: db_cas=
sandra [dbcassa_table.c:461]: found dbname=3Dopenser, table=3Dsubscriber<o:=
p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">0(11171) DEBUG: db_cas=
sandra [dbcassa_base.cpp:665]: RES_NAMES(0x7fd2fb336fe0)[0]=3D[password]<o:=
p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">0(11171) DEBUG: db_cas=
sandra [dbcassa_base.cpp:672]: The query returned no result<o:p></o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">0(11171) DEBUG: db_cas=
sandra [dbcassa_base.cpp:715]: Exited with success<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">0(11171) DEBUG: auth_d=
b [authorize.c:112]: no result for user 'userX at 172.23.1.188'<o:p></o:p></sp=
an></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Noticed that the key i=
s a combined key, is this correct?
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">The values in the colu=
mn family are:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">RowKey: userX<o:p></o:=
p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">=3D&gt; (column=3Ddoma=
in, value=3D172.23.1.188, timestamp=3D1345563751910000)<o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">=3D&gt; (column=3Dpass=
word, value=3Dpass123, timestamp=3D1345563765514000)<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Thanks,<o:p></o:p></sp=
an></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Bou<o:p></o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span lang=3D"EN-US" style=3D"font-size:10.0pt;fo=
nt-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext;mso-fa=
reast-language:EN-GB">From:</span></b><span lang=3D"EN-US" style=3D"font-si=
ze:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windo=
wtext;mso-fareast-language:EN-GB">
 sr-users-bounces at lists.sip-router.org [mailto:sr-users-bounces at lists.sip-r=
outer.org]
<b>On Behalf Of </b>Anca Vamanu<br>
<b>Sent:</b> 14 August 2012 14:53<br>
<b>To:</b> sr-users at lists.sip-router.org<br>
<b>Subject:</b> Re: [SR-Users] db_cassandra<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class=3D"MsoNormal">Hi,<br>
<br>
<br>
If you are using cassandra-cli you can fill in the tables using something l=
ike this:<br>
<br>
version table:<br>
<br>
set version['location']['table_version']=3D'1004';<br>
set version['subscriber']['table_version']=3D'6';<br>
<br>
and the subscriber table:<br>
<br>
set subscriber['userX']['domain']=3D'domain.com';<br>
set subscriber['userX']['password']=3D'pass123';<br>
<br>
<br>
Regards,<br>
Anca<br>
<br>
<br>
On 08/14/2012 04:26 PM, Boudewyn Ligthart wrote:<o:p></o:p></p>
</div>
<blockquote style=3D"margin-top:5.0pt;margin-bottom:5.0pt">
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">HI Anca,</span><o:p></=
o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">&nbsp;</span><o:p></o:=
p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Thanks for pointing me=
 to the latest GIT version, this compiles as per normal.</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">&nbsp;</span><o:p></o:=
p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Another question,</spa=
n><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">&nbsp;</span><o:p></o:=
p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Have you got pointers =
on how to install the tables / setup Cassandra.</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">I have created the col=
umn families for location, subscriber, version but not yet filled these wit=
h data.</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">&nbsp;</span><o:p></o:=
p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Regards</span><o:p></o=
:p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">&nbsp;</span><o:p></o:=
p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Bou</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">&nbsp;</span><o:p></o:=
p></p>
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span lang=3D"EN-US" style=3D"font-size:10.0pt;fo=
nt-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext;mso-fa=
reast-language:EN-GB">From:</span></b><span lang=3D"EN-US" style=3D"font-si=
ze:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windo=
wtext;mso-fareast-language:EN-GB">
<a href=3D"mailto:sr-users-bounces at lists.sip-router.org">sr-users-bounces at l=
ists.sip-router.org</a> [<a href=3D"mailto:sr-users-bounces at lists.sip-route=
r.org">mailto:sr-users-bounces at lists.sip-router.org</a>]
<b>On Behalf Of </b>Anca Vamanu<br>
<b>Sent:</b> 14 August 2012 13:39<br>
<b>To:</b> <a href=3D"mailto:sr-users at lists.sip-router.org">sr-users at lists.=
sip-router.org</a><br>
<b>Subject:</b> Re: [SR-Users] db_cassandra</span><o:p></o:p></p>
</div>
</div>
<p class=3D"MsoNormal">&nbsp;<o:p></o:p></p>
<div>
<p class=3D"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 problem=
s 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 s=
hould 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=3D"margin-top:5.0pt;margin-bottom:5.0pt">
<p class=3D"MsoNormal">Hi,<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;<o:p></o:p></p>
<p class=3D"MsoNormal">I am trying to get the db_cassandra working in kamai=
lio 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=3D"MsoNormal">&nbsp;<o:p></o:p></p>
<p class=3D"MsoNormal"><i>ol.h:33,</i><o:p></o:p></p>
<p class=3D"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=3D"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=3D"MsoNormal"><i>../../lib/srdb1/db.h:388:20: error: expected unqu=
alified-id before =E2delete=E2</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>dbcassa_base.cpp: In function =E2ColumnVecPtr cas=
sa_translate_query(const db1_con_t*, str* const*, const db_val_t*, str* con=
st*, int, int, int*)=E2:</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>dbcassa_base.cpp:538:8: warning: format =E2%d=E2 =
expects argument of type =E2int=E2, but argument 7 has type =E2std::vector&=
lt;org::apache::cassandra::KeySlice&gt;::size_type {aka long unsigned int}=
=E2 [-Wformat]</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>dbcassa_base.cpp:538:8: warning: format =E2%d=E2 =
expects argument of type =E2int=E2, but argument 5 has type =E2std::vector&=
lt;org::apache::cassandra::KeySlice&gt;::size_type {aka long unsigned int}=
=E2 [-Wformat]</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>dbcassa_base.cpp:538:8: warning: format =E2%d=E2 =
expects argument of type =E2int=E2, but argument 6 has type =E2std::vector&=
lt;org::apache::cassandra::KeySlice&gt;::size_type {aka long unsigned int}=
=E2 [-Wformat]</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>dbcassa_base.cpp:538:8: warning: format =E2%d=E2 =
expects argument of type =E2int=E2, but argument 4 has type =E2std::vector&=
lt;org::apache::cassandra::KeySlice&gt;::size_type {aka long unsigned int}=
=E2 [-Wformat]</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>dbcassa_base.cpp:538:8: warning: format =E2%d=E2 =
expects argument of type =E2int=E2, but argument 4 has type =E2std::vector&=
lt;org::apache::cassandra::KeySlice&gt;::size_type {aka long unsigned int}=
=E2 [-Wformat]</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>../../lib/srdb1/db_res.h: At global scope:</i><o:=
p></o:p></p>
<p class=3D"MsoNormal"><i>../../lib/srdb1/db_res.h:105:19: warning: inline =
function =E2db1_res_t* db_new_result()=E2 used but never defined [enabled b=
y default]</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>../../lib/srdb1/db_res.h:121:12: warning: inline =
function =E2int db_allocate_columns(db1_res_t*, unsigned int)=E2 used but n=
ever defined [enabled by default]</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>../../lib/srdb1/db_res.h:98:12: warning: inline f=
unction =E2int db_free_columns(db1_res_t*)=E2 used but never defined [enabl=
ed by default]</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>../../lib/srdb1/db_res.h:129:12: warning: inline =
function =E2int db_allocate_rows(db1_res_t*)=E2 used but never defined [ena=
bled by default]</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>../../lib/srdb1/db_row.h:74:12: warning: inline f=
unction =E2int db_allocate_row(const db1_res_t*, db_row_t*)=E2 used but nev=
er defined [enabled by default]</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>../../lib/srdb1/db_res.h:111:12: warning: inline =
function =E2int db_free_result(db1_res_t*)=E2 used but never defined [enabl=
ed by default]</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>make[1]: *** [dbcassa_base.o] Error 1</i><o:p></o=
:p></p>
<p class=3D"MsoNormal"><i>make: *** [install-modules] Error 1</i><o:p></o:p=
></p>
<p class=3D"MsoNormal"><i>&nbsp;</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>&nbsp;</i><o:p></o:p></p>
<p class=3D"MsoNormal">Anybody has got any ideas? <o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;<o:p></o:p></p>
<p class=3D"MsoNormal">Thanks in advance,<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;<o:p></o:p></p>
<p class=3D"MsoNormal">Bou<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;<o:p></o:p></p>
</blockquote>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><span style=3D"font-s=
ize:12.0pt">&nbsp;</span><o:p></o:p></p>
</blockquote>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><span style=3D"font-s=
ize:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;mso-fa=
reast-language:EN-GB"><o:p>&nbsp;</o:p></span></p>
</div>
</body>
</html>

--_000_D8261FE064C78B44B77EF7C4569D6CBF0D11CD44DB3PRD0510MB380_--



More information about the sr-users mailing list