[pkg-boost-devel] Bug#367825: Patch for bjam segfault with g++-4.2

Daniel Schepler schepler at math.unipd.it
Fri Jun 29 22:37:08 UTC 2007


I found that if bjam was compiled with -fno-strict-aliasing, it didn't 
segfault anymore.  It seems the hash table code is what's violating the 
strict aliasing rules.

I've attached a patch to turn on -fno-strict-aliasing, for the main compile as 
well since even under g++-4.1 some of the libraries (like boost-python) 
tripped those warnings as well.  I also fixed a few implicit declaration 
warnings and so on that might have caused trouble on 64-bit systems.

I'll hold off on adding the "patch" tag until I've tested that the entire 
build works OK.
-- 
Daniel Schepler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boost.diff
Type: text/x-diff
Size: 5111 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-boost-devel/attachments/20070629/f019e74f/attachment.diff 


More information about the pkg-boost-devel mailing list