Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 203218

Summary: dev-libs/boost-1.34.x - fix function library bug in a multi-threaded context (from boost web page)
Product: Gentoo Linux Reporter: Christian Kotz <christian.kotz>
Component: [OLD] LibraryAssignee: Tiziano Müller (RETIRED) <dev-zero>
Status: RESOLVED DUPLICATE    
Severity: minor CC: christian.kotz, cpp+disabled
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: 1 file to replace
1 file to replace
2nd file to replace
ebuild that replaces the two buggy files
ebuild + patchfile for boost-1.34.1-r1

Description Christian Kotz 2007-12-24 11:23:13 UTC
December 19, 2007 - Cricial Bug in Function Library
* Boost.Function in Boost 1.34.x has a bug that affects the construction of Boost.Function objects in a multi-threaded context. The problem has been fixed in the Boost trunk and for the upcoming Boost 1.35.x. To patch your Boost 1.34.x, copy the files function_base.hpp and function_template.hpp from boost web page into the Boost directory boost/function.
Comment 1 Christian Kotz 2007-12-24 11:24:57 UTC
Created attachment 139242 [details, diff]
1 file to replace
Comment 2 Christian Kotz 2007-12-24 11:25:29 UTC
Created attachment 139244 [details]
1 file to replace
Comment 3 Christian Kotz 2007-12-24 11:25:58 UTC
Created attachment 139246 [details]
2nd file to replace
Comment 4 Christian Kotz 2007-12-24 11:26:56 UTC
Created attachment 139247 [details]
ebuild that replaces the two buggy files
Comment 5 Christian Kotz 2007-12-24 14:25:48 UTC
The website that announces the bug rated critical for the boost function library is http://boost.org section latest news dec 19 2007

Unfortunately after patching boost with the 2 files there is a problem with the ebuild and boost. It seems that the interface has changed in 'function_template.hpp' and the change has yet not been propagated to other boost libraries. The build of 'read_graphviz_spirit.o' from the boost graph library fails due to cast away constness (g++ 4.2.2p1 gentoo on my machine). I haven't had time to look at the code yet, but will do so during the x-mas days.

Maybe patching should be postponed until a new 1.34.x or 1.35 revision from boost.org is released.
Comment 6 Tiziano Müller (RETIRED) gentoo-dev 2007-12-26 18:53:43 UTC
@Christian: Which use-flags do you use for building boost?
Comment 7 Christian Kotz 2007-12-27 11:13:08 UTC
My use="doc -debug -icu -pyste -tools"
Comment 8 Christian Kotz 2007-12-27 11:54:14 UTC
Created attachment 139392 [details]
ebuild + patchfile for boost-1.34.1-r1

alternate ebuild that uses a patch instead of copying the 2 files
Comment 9 Tiziano Müller (RETIRED) gentoo-dev 2007-12-27 16:15:03 UTC
em, obviously you didn't see that I already released boost-1.34.1-r1 a couple of days ago with the two files patched.
But if you could come up with a patch which solves the issue with the patch you mentioned, that would be great. At the moment it seems that upstream isn't even aware of that problem (at least, there aren't any messages on the mailinglist).
Cheers.

*** This bug has been marked as a duplicate of bug 202964 ***