<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
you installed from sources, most probably without the pkg-config
options. You have to edit Makefile inside the module folder and set
the path to your installation in DEFS and LIBS variables.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 17/08/15 12:01, José Seabra wrote:<br>
</div>
<blockquote
cite="mid:CAEVZRWsvJPyYJPQ0D2qVhAiOLyuDefUpjXQN0-m+35coQgbJ0w@mail.gmail.com"
type="cite">
<div dir="ltr">Hello all,
<div>I'm trying to build db_mongodb module but i'm facing some
problems, please take a look at logs messages below:</div>
<div><br>
</div>
<div>
<div> make</div>
<div><br>
</div>
<div>CC (gcc) [M db_mongodb.so]<span class="Apple-tab-span"
style="white-space:pre"> </span>mongodb_connection.o</div>
<div>In file included from mongodb_connection.c:24:</div>
<div><b>mongodb_connection.h:26:20: warning: mongoc.h: No such
file or directory</b></div>
<div><b>mongodb_connection.h:27:18: warning: bson.h: No such
file or directory</b></div>
<div>In file included from mongodb_connection.c:24:</div>
<div>mongodb_connection.h:37: error: expected
specifier-qualifier-list before ‘mongoc_client_t’</div>
<div>mongodb_connection.c: In function
‘db_mongodb_new_connection’:</div>
<div>mongodb_connection.c:48: warning: implicit declaration of
function ‘mongoc_init’</div>
<div>mongodb_connection.c:49: error: ‘km_mongodb_con_t’ has no
member named ‘con’</div>
<div>mongodb_connection.c:49: warning: implicit declaration of
function ‘mongoc_client_new’</div>
<div>mongodb_connection.c:50: error: ‘km_mongodb_con_t’ has no
member named ‘con’</div>
<div>mongodb_connection.c: In function
‘db_mongodb_free_connection’:</div>
<div>mongodb_connection.c:78: error: ‘km_mongodb_con_t’ has no
member named ‘con’</div>
<div>mongodb_connection.c:79: warning: implicit declaration of
function ‘mongoc_client_destroy’</div>
<div>mongodb_connection.c:79: error: ‘km_mongodb_con_t’ has no
member named ‘con’</div>
<div>make: *** [mongodb_connection.o] Error 1</div>
<div><br>
</div>
<div>[root@ccp1 db_mongodb]# locate bson.h</div>
<div>/usr/local/include/libbson-1.0/bson.h</div>
<div>/usr/local/src/mongo-c-driver/src/libbson/src/bson/bson.h</div>
<div>/usr/local/src/mongo-c-driver-1.1.10/src/libbson/doc/html/streaming-bson.html</div>
<div>/usr/local/src/mongo-c-driver-1.1.10/src/libbson/src/bson/bson.h</div>
<div><br>
</div>
<div>[root@ccp1 db_mongodb]# locate mongoc.h</div>
<div>/usr/local/include/libmongoc-1.0/mongoc.h</div>
<div>/usr/local/src/mongo-c-driver/src/mongoc/mongoc.h</div>
<div>/usr/local/src/mongo-c-driver/tests/test-libmongoc.h</div>
<div>/usr/local/src/mongo-c-driver-1.1.10/src/mongoc/mongoc.h</div>
<div>/usr/local/src/mongo-c-driver-1.1.10/tests/test-libmongoc.h</div>
<div><br>
</div>
I have installed mongo-c-driver successfully and the header
files(bson.h, mongoc.h) are located at
/usr/local/src/mongo-c-driver/src/mongoc.</div>
<div><br>
</div>
<div>Can someone help me?<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">Cumprimentos
<div>José Seabra</div>
</div>
<a moz-do-not-send="true" href="http://store.itcenter.com.pt/"
style="margin-left:10px;width:23px;height:23px;display:block"
target="_blank"><img moz-do-not-send="true"
src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_store.jpg"
alt="ITCENTER Store" title="ITCENTER Store"></a><a
moz-do-not-send="true"
href="http://support.itcenter.com.pt/otrs/customer.pl"
style="margin-left:10px;width:23px;height:23px;display:block"
target="_blank"><img moz-do-not-send="true"
src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_helpdesk.jpg"
alt="ITCENTER Helpdesk" title="ITCENTER Helpdesk"></a>
<table style="border-collapse:collapse">
<tbody>
<tr width="100" style="float:right">
<td style="float:right;margin-left:5px;padding:0px"><a
moz-do-not-send="true"
href="https://www.facebook.com/itcenterpt"
style="margin-left:5px;width:23px;height:23px;display:block"
target="_blank"><img moz-do-not-send="true"
src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_facebook.jpg"
alt="ITCENTER Facebook"></a></td>
<td style="float:right;margin-left:5px;padding:0px"><a
moz-do-not-send="true"
href="https://www.linkedin.com/company/itcenter"
style="margin-left:5px;width:23px;height:23px;display:block"
target="_blank"><img moz-do-not-send="true"
src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_linkedin.jpg"
alt="ITCENTER Linkedin"></a></td>
<td style="float:right;padding:0px"><a
moz-do-not-send="true"
href="https://twitter.com/ITCenter_PT"
style="margin-left:5px;width:23px;height:23px;display:block"
target="_blank"><img moz-do-not-send="true"
src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_twitter.jpg"
alt="ITCENTER Twitter"></a>
<div><br>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
</body>
</html>