<div dir="ltr">Hi , <div><br></div><div>I am using ubuntu 16 . I am not able to run make command . Its giving error . </div><div><br></div><div>make[1]: Entering directory '/opt/mongo-c-driver'<br> CCLD test-replica-set<br>/usr/bin/ld: tests/test_replica_set-ha-test.o: undefined reference to symbol 'pthread_once@@GLIBC_2.2.5'<br>//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line<br>collect2: error: ld returned 1 exit status<br>Makefile:2516: recipe for target 'test-replica-set' failed<br>make[1]: *** [test-replica-set] Error 1<br>make[1]: Leaving directory '/opt/mongo-c-driver'<br>Makefile:4866: recipe for target 'install-recursive' failed<br>make: *** [install-recursive] Error 1<br></div><div><br></div><div>I am trying to solve this . Once done I will give the core dump . </div><div><br></div><div><br></div><div><br></div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><b><i>Thanks & Regards</i></b><div><i>Sasmita Panda</i></div><div><i>Senior Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 12, 2019 at 1:58 PM Liviu Chircu <<a href="mailto:liviu@opensips.org">liviu@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I suggest we manually compile a debuggable version of libmongoc library <br>
v1.3.1 using the following steps:<br>
<br>
# clone the libmongoc library source code<br>
git clone <a href="https://github.com/mongodb/mongo-c-driver" rel="noreferrer" target="_blank">https://github.com/mongodb/mongo-c-driver</a> -b 1.3.1 <br>
~/src/mongo-c-driver<br>
cd ~/src/mongo-c-driver<br>
<br>
# prepare necessary packages<br>
apt remove libssl-dev<br>
apt install libssl1.0-dev gcc make autoconf<br>
<br>
# build, install and enable the library<br>
./autogen.sh --enable-debug-symbols=yes<br>
make -j4<br>
make install<br>
echo "/usr/local/lib" >/etc/ld.so.conf.d/libmongoc.conf<br>
ldconfig<br>
<br>
... and we are done! Now, just restart your OpenSIPS and produce <br>
another core file. This time, gdb<br>
will print some extra information, which will help us understand what's <br>
going on.<br>
<br>
At any time, to clean up the debug library and revert to the default one <br>
(from packages):<br>
<br>
rm -fr /usr/local/lib/libbson-1.0.* /usr/local/lib/libmongoc-*<br>
rm /etc/ld.so.conf.d/libmongoc.conf<br>
ldconfig<br>
<br>
Liviu Chircu<br>
OpenSIPS Developer<br>
<a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.com</a><br>
<br>
On 12.09.2019 07:56, Sasmita Panda wrote:<br>
><br>
> What should you suggest now ? Will I upgrade the library version . I <br>
> am trying that option .<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>