Re: regarding kannel configuration with mongodb

Garima Tiwari <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <CA+-2Z5grBRerKZfS7M2_ppDnBnOFQmrRnehj2ZFOohVPuL0DoQ@mail.gmail.com>
Dear all,
again I need you help,

when i am trying to use sqlbox with kannel-mongodb I am getting error

/root/kannel-mongodb/gw/dlr_mongodb.c:275: undefined reference to
`bson_buffer_init'
/root/kannel-mongodb/gw/dlr_mongodb.c:283: undefined reference to
`bson_from_buffer'
libgw.a(dlr_mongodb.o): In function `dlr_mongodb_update':
/root/kannel-mongodb/gw/dlr_mongodb.c:232: undefined reference to
`bson_buffer_init'
/root/kannel-mongodb/gw/dlr_mongodb.c:240: undefined reference to
`bson_from_buffer'
/root/kannel-mongodb/gw/dlr_mongodb.c:242: undefined reference to
`bson_buffer_init'
/root/kannel-mongodb/gw/dlr_mongodb.c:248: undefined reference to
`bson_from_buffer'
libgw.a(dlr_mongodb.o): In function `dlr_mongodb_get':
/root/kannel-mongodb/gw/dlr_mongodb.c:161: undefined reference to
`bson_buffer_init'
/root/kannel-mongodb/gw/dlr_mongodb.c:169: undefined reference to
`bson_from_buffer'
libgw.a(dlr_mongodb.o): In function `dlr_mongodb_add':
/root/kannel-mongodb/gw/dlr_mongodb.c:115: undefined reference to
`bson_buffer_init'
/root/kannel-mongodb/gw/dlr_mongodb.c:130: undefined reference to
`bson_from_buffer'
libgw.a(dlr_mongodb.o): In function `dlr_mongodb_ensure_index':
/root/kannel-mongodb/gw/dlr_mongodb.c:73: undefined reference to
`bson_buffer_init'
/root/kannel-mongodb/gw/dlr_mongodb.c:76: undefined reference to
`bson_from_buffer'
collect2: ld returned 1 exit status
make: *** [gw/bearerbox] Error 1

I tried to go through with bson.c then i found that bson_buffer_init and
bson_from_buffer are not defined there can any one tell what i can i use in
place of that........ or the definition of both of them...

thank you in advance

On Thu, Apr 5, 2012 at 12:23 AM, Garima Tiwari <[email protected]> wrote:

> Dear All,
>
> Thank you for your response with your help now I am able to successfully
> configure kannel with mongodb...
>
> thanx alot......:)
>
> On Tue, Apr 3, 2012 at 9:38 AM, Benjamin Lee <[email protected]>wrote:
>
>> Garima,
>>
>> As Guillaume mentioned, please check that you have installed the
>> @mongo-c-driver@ correctly as Roman Shterenzon's code expects.
>>
>> <pre>
>>  git clone git://github.com/mongodb/mongo-c-driver.git && \
>>  ( cd mongo-c-driver && \
>>  git checkout v0.3.1 && \
>>  git describe --tags && \
>>  scons )
>>
>>  # run this to check your mongo-c-driver installation
>>  md5sum /usr/local/include/mongo/bson.h
>>  md5sum /usr/local/include/mongo/mongo_except.h
>>  md5sum /usr/local/include/mongo/platform_hacks.h
>>  md5sum /usr/local/include/mongo/gridfs.h
>>  md5sum /usr/local/include/mongo/md5.h
>>  md5sum /usr/local/include/mongo/mongo.h
>>  md5sum /usr/local/lib/libmongoc.so
>> </pre>
>>
>> I tried a simple @configure.in@ change to Roman's code with commit
>> @885aaaada71323a75ed5bfbcae393bcc02543e0f@. See diff below.
>>
>> <pre>
>>  pushd mongo-c-driver
>>  mkdir -p /var/tmp/root/usr/local/include/mongo
>>  mkdir -p /var/tmp/root/usr/local/lib
>>  cp libmongoc.* /var/tmp/root/usr/local/lib/.
>>  cp src/*.h /var/tmp/root/usr/local/include/mongo/.
>>  popd
>>
>>  git clone https://github.com/romanbsd/kannel-mongodb
>>
>>  pushd kannel-mongodb
>>  ./bootstrap.sh && ./configure --with-mysql && make -j4 clean all
>>  popd
>> </pre>
>>
>> diff --git a/configure.in b/configure.in
>>
>> <pre>
>> index 4b2d00a..eac361d 100644
>> --- a/configure.in
>> +++ b/configure.in
>> @@ -1233,8 +1233,13 @@ if test "$withval" != yes; then
>>     AC_MSG_RESULT(disabled)
>>  else
>>     AC_MSG_RESULT(searching)
>> +
>> +    CFLAGS="$CFLAGS -I/var/tmp/root/usr/local/include"
>> +
>>     AC_CHECK_HEADERS(mongo/mongo.h)
>>     LIBS="$LIBS -L/usr/local/lib"
>> +    LIBS="$LIBS -L/var/tmp/root/usr/local/lib"
>> +
>>     AC_CHECK_LIB(mongoc, mongo_connect,
>>       [LIBS="$LIBS -lmongoc"
>>        AC_DEFINE(HAVE_MONGODB)
>> </pre>
>>
>> Hope this helps.
>>
>> On Monday, 2012-04-02 at 06:33:38 PM, Garima Tiwari scribbled:
>> > I tried to paste mongo folder which is containing all the files required
>> > for that in kannel package even.and with in mongodb c driver all files
>> are
>> > present i dont know why it is not getting it even i tried with complete
>> > path with the changes in configuration file but it is still not working.
>> >
>> >
>> >
>> > On Mon, Apr 2, 2012 at 12:48 AM, Guillaume Cottenceau <[email protected]>
>> wrote:
>> >
>> > > Garima Tiwari <garima 'at' hostnsoft.com> writes:
>> > >
>> > > > Hello,
>> > > >
>> > > > I am trying to configure kannel with mongo db but it is not working
>> my
>> > > log is
>> > > > seems like..
>> > > >
>> > > > ./configure --with-mongodb
>> > >
>> > > [...]
>> > >
>> > > > checking whether to compile with MongoDB support... searching
>> > > > checking mongo/mongo.h usability... no
>> > > > checking mongo/mongo.h presence... no
>> > > > checking for mongo/mongo.h... no
>> > > > checking for mongo_connect in -lmongoc... no
>> > > > configure: error: Unable to find MongoDB client libraries
>> > > >
>> > > >
>> > > >
>> > > > please tell me what to do i had installed mongo db c driver...
>> > >
>> > > It tells you mongo/mongo.h is absent. Are you sure it is not?
>> > >
>> > > PS: PLEASE REPLY TO THIS LIST NOT ME DIRECTLY
>> > >
>> > > --
>> > > Guillaume Cottenceau
>> > >
>> >
>> >
>> >
>> > --
>> > *Thanks & Regards
>> > Garima Tiwari
>> > Hostnsoft, Indore(MP)
>> > *
>>
>> --
>> Benjamin Lee                           mailto:
>> [email protected]
>> Melbourne, Australia
>> http://www.realthought.net
>> Linux / BSD / GNU                                     tel:+61 4 16 BEN LEE
>>
>> Open Source               "invest in your world"
>> __________________________________________________________________________
>> We have only two things to worry about:  That things will never get
>> back to normal, and that they already have.
>>
>
>
>
> --
> *
> Thanks & Regards
> Garima Tiwari
> HostNsoft
> (Walkover Web Solutions Ltd)
> *
>



-- 
*Thanks & Regards
Garima Tiwari
HostNsoft
(Walkover Web Solutions Ltd)
*
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.