Boost logo

Boost Users :

Subject: Re: [Boost-users] (newbie) boost thread compile problems on Fedora 8
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-07-16 11:35:17


Kishalay Kundu wrote:

> The __vdso_clock_gettime problem seems to exist in the .a version. It
> doesn't show up when I build a shared library (libxfem.so) that is
> then loaded on runtime by a driver. This shared library has a class
> that contains boost threads. The error occurs when I construct a local
> thread (code snippet below). I do not know what the etiquette for
> attaching code files on boost mailing list is, so I'm not attaching my
> codes. But if you wish, I can send you the code files.
>
> boost::thread st( &XFE_Scene::run, _scene ); // error occurs here
> _threads[ 0 ] = boost::move( st );
>
> When I try to load libxfem.so at run time, this is the error that I get.
>
> /home/kish1/Projects/Ashwini2.0/trunk/Engine/SafeDriver/src/CoreManager.cpp_at_initialize,82:
> fatal error: could not open libxfem.so
> /home/kish1/Projects/lib/libxfem.so: undefined symbol:
> _ZTIN5boost6detail16thread_data_baseE

This can mean that either:

1. You libxfem.so does not actually link to Boost.
2. Or, at runtime, a different version of Boost libraries is getting
picked up. Running ldd on /home/kish1/Projects/lib/libxfem.so might
help.

- Volodya


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net