mongodb and boost libraries

181 views
Skip to first unread message

zbito

unread,
Jul 12, 2010, 4:56:34 PM7/12/10
to mongodb-user
Hello
I'm using mongodb on archlinux. Lately boost libraries have been
updated to v.1.43.
Unfortunately it broke mongodb. Now everytime I try to start mongo I
get errors:

mongo: error while loading shared libraries: libboost_system-mt.so.
1.41.0:

Adding symlinks, named as these missing, to libraries does no good. I
had mongodb recompiled but still to no success.
Is there some magic parameter that I should add to scons all? When I
try to compile it with:

scons --boost-version 1.43 all

I get

scons: Reading SConscript files ...
scons version: 1.3.0
python version: 2 6 5 'final' 0
Checking whether the C++ compiler works(cached) yes
Checking for C library stdc++... (cached) yes
Checking for C++ header file pcrecpp.h... (cached) yes
Checking for C++ header file boost/filesystem/operations.hpp...
(cached) yes
Checking for C library boost_system-mt-all... no
Checking for C library boost_system-all... no
Checking for C library boost_thread-mt-all... no
Checking for C library boost_thread-all... no
can't find library ['boost_thread-mt-all', 'boost_thread-all'] in []

,which also is not too good. But libraries are found in /usr/lib
:(

Mathias Stearn

unread,
Jul 12, 2010, 5:19:33 PM7/12/10
to mongod...@googlegroups.com
I use Arch and everything seems to work for me. Which version are you
trying to build? Have you tried the PKGBUILD I maintain
(http://aur.archlinux.org/packages.php?ID=27971)? I just retested
building with it and everything worked well.

If you are using the same source tree you used before, you may need to
run 'rm -r scon*' in the root of the project directory. This will
clear all of scons caches since it doesn't behave well if external
dependencies change.

> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>

avp

unread,
Jul 13, 2010, 1:25:49 AM7/13/10
to mongodb-user
I think problem is that you compile boost in single mode check for
help (I don't remember, but maybe scons --help) how compile boost with
multithread support

Mathias Stearn

unread,
Jul 13, 2010, 1:56:19 AM7/13/10
to mongodb-user
I know that the default Arch linux build of boost is multi-threaded so
thats probably not the issue. Its much more likely that scons just
cached the old path.

zbito

unread,
Jul 13, 2010, 3:17:10 AM7/13/10
to mongodb-user
What I meant is that when I'm not messing up with changing boost
library revision in PKGBUILD file (I do not add "--boost-version 1.43"
parameter) mongo builds just fine. But then it seems to be linked
against boost v.1.41 which was updated in arch's main repo to 1.43.
To get it work I had to downgrade boost package, but is not the way I
like it. And I'm using Your's package from AUR, and I had signalled
these problems there before :).
My build cache is cleared regullary so I do not think I have any
caches there, but I'll double check it.

Be back to You afternoon with results.

On 12 Lip, 23:19, Mathias Stearn <math...@10gen.com> wrote:
> I use Arch and everything seems to work for me. Which version are you
> trying to build? Have you tried the PKGBUILD I maintain
> (http://aur.archlinux.org/packages.php?ID=27971)?I just retested

Mathias Stearn

unread,
Jul 13, 2010, 11:19:16 AM7/13/10
to mongodb-user
Could you pastebin or attach (not inline) the output from ls -l
/usr/lib/libboost*

It sounds like you somehow have a combination of 1.43 and 1.41
installed. If thats the case, this may fix it:

rm /usr/lib/libboost*
pacman -S boost

zbito

unread,
Jul 13, 2010, 12:19:07 PM7/13/10
to mongodb-user
It looks that I really had some garbage in boost libraries. After
cleaning boost with pacman -Rcsnyu and reinstallingo both boost and
mongo everything works fine.
Thanks for help.


On Jul 13, 5:19 pm, Mathias Stearn <math...@10gen.com> wrote:
> Could you pastebin or attach (not inline) the output from ls -l
> /usr/lib/libboost*
>
> It sounds like you somehow have a combination of 1.43 and 1.41
> installed. If thats the case, this may fix it:
>
> rm /usr/lib/libboost*
> pacman -S boost
>
>
>
>
>
>
>
> On Tue, Jul 13, 2010 at 3:17 AM, zbito <ztokarc...@gmail.com> wrote:
> > What I meant is that when I'm not messing up with changing boost
> > library revision in PKGBUILD file (I do not add "--boost-version 1.43"
> > parameter) mongo builds just fine. But then it seems to be linked
> > against boost v.1.41 which was updated in arch's main repo to 1.43.
> > To get it work I had to downgrade boost package, but is not the way I
> > like it. And I'm using Your's package from AUR, and I had signalled
> > these problems there before :).
> > My build cache is cleared regullary so I do not think I have any
> > caches there, but I'll double check it.
>
> > Be back to You afternoon with results.
>
> > On 12 Lip, 23:19, Mathias Stearn <math...@10gen.com> wrote:
> >> I use Arch and everything seems to work for me. Which version are you
> >> trying to build? Have you tried the PKGBUILD I maintain
> >> (http://aur.archlinux.org/packages.php?ID=27971)?Ijust retested

zbito

unread,
Jul 13, 2010, 12:19:07 PM7/13/10
to mongodb-user
It looks that I really had some garbage in boost libraries. After
cleaning boost with pacman -Rcsnyu and reinstallingo both boost and
mongo everything works fine.
Thanks for help.


On Jul 13, 5:19 pm, Mathias Stearn <math...@10gen.com> wrote:
> Could you pastebin or attach (not inline) the output from ls -l
> /usr/lib/libboost*
>
> It sounds like you somehow have a combination of 1.43 and 1.41
> installed. If thats the case, this may fix it:
>
> rm /usr/lib/libboost*
> pacman -S boost
>
>
>
>
>
>
>
> On Tue, Jul 13, 2010 at 3:17 AM, zbito <ztokarc...@gmail.com> wrote:
> > What I meant is that when I'm not messing up with changing boost
> > library revision in PKGBUILD file (I do not add "--boost-version 1.43"
> > parameter) mongo builds just fine. But then it seems to be linked
> > against boost v.1.41 which was updated in arch's main repo to 1.43.
> > To get it work I had to downgrade boost package, but is not the way I
> > like it. And I'm using Your's package from AUR, and I had signalled
> > these problems there before :).
> > My build cache is cleared regullary so I do not think I have any
> > caches there, but I'll double check it.
>
> > Be back to You afternoon with results.
>
> > On 12 Lip, 23:19, Mathias Stearn <math...@10gen.com> wrote:
> >> I use Arch and everything seems to work for me. Which version are you
> >> trying to build? Have you tried the PKGBUILD I maintain
> >> (http://aur.archlinux.org/packages.php?ID=27971)?Ijust retested
Reply all
Reply to author
Forward
0 new messages