Boost.Thread in Boost 1.50

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

if you had problems with linking or detection of Boost.Thread due to a
message that looks similar to this:

  /usr/bin/ld: /tmp/ccAv0B8G.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
  /usr/bin/ld: note: '_ZN5boost6system15system_categoryEv' is defined in DSO /lib64/libboost_system-mt.so.1.50.0 so try adding it to the linker command line
  /lib64/libboost_system-mt.so.1.50.0: could not read symbols: Invalid operation

... then this is caused by Boost.Thread pulling in Boost.System.
Because this symbol is brought in by includes, it appears as undefined
in the linked binary itself, and it needs to be linked not only with
-lboost_thread-mt, but also -lboost_system-mt.  This was fixed by latest
boost build, which replaces libbost_thread-mt.so with a linker script,
that does this automatically.  That is in Rawhide, and a bodhi update
request for Fedora 18 was filed:

  https://admin.fedoraproject.org/updates/boost-1.50.0-4.fc18

So if you had to put in any hacks to have your script detect
Boost.Thread, or to link one of the binaries, it should shortly be
possible to remove them.

Thanks,
PM

P.S. this is tracked upstream at:
  https://svn.boost.org/trac/boost/ticket/7241
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux