Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305945 - dev-util/cmake-2.8.1: FindBoost.cmake doesn't include versions of Boost 1.42 and later
Summary: dev-util/cmake-2.8.1: FindBoost.cmake doesn't include versions of Boost 1.42 ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard: [kde testing]
Keywords: InOverlay, InVCS
: 296513 311369 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-19 20:41 UTC by Samu Voutilainen
Modified: 2010-04-13 15:02 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
cmake output (cmake.out,2.56 KB, text/plain)
2010-02-20 17:20 UTC, Samu Voutilainen
Details
make output (make.out,32.43 KB, text/plain)
2010-02-20 17:21 UTC, Samu Voutilainen
Details
Untested but trivial patch that delays the problem until boost-1.45 (cmake-2.8.0-FindBoost.patch,1.15 KB, patch)
2010-02-23 21:51 UTC, Andreas K. Hüttel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Samu Voutilainen 2010-02-19 20:41:48 UTC
Result cmake to find older boost, which is newest by FindBoost.cmake(1.40 in my case) and so resulting to linker errors. 

Reproducible: Always

Steps to Reproduce:
1. Install Boost 1.40
2. Install Boost 1.41
3. Build a boost program, in my case Wesnoth from its trunk

Actual Results:  
Build failed

Expected Results:  
Build succeeded

MakeFiles/wesnoth.dir/game.cpp.o: In function `T.6594':
game.cpp:(.text+0xe21): undefined reference to `boost::iostreams::detail::gzip_header::reset()'
game.cpp:(.text+0xe2a): undefined reference to `boost::iostreams::detail::gzip_footer::reset()'
CMakeFiles/wesnoth.dir/game.cpp.o: In function `boost::iostreams::detail::zlib_compressor_impl<std::allocator<char> >::filter(char const*&, char const*, char*&, char*, bool)':
game.cpp:(.text._ZN5boost9iostreams6detail20zlib_compressor_implISaIcEE6filterERPKcS6_RPcS8_b[boost::iostreams::detail::zlib_compressor_impl<std::allocator<char> >::filter(char const*&, char const*, char*&, char*, bool)]+0x3d): undefined reference to `boost::iostreams::detail::zlib_base::xdeflate(int)'
CMakeFiles/wesnoth.dir/game.cpp.o: In function `boost::iostreams::detail::zlib_decompressor_impl<std::allocator<char> >::filter(char const*&, char const*, char*&, char*, bool)':
game.cpp:(.text._ZN5boost9iostreams6detail22zlib_decompressor_implISaIcEE6filterERPKcS6_RPcS8_b[boost::iostreams::detail::zlib_decompressor_impl<std::allocator<char> >::filter(char const*&, char const*, char*&, char*, bool)]+0x30): undefined reference to `boost::iostreams::detail::zlib_base::xinflate(int)'
CMakeFiles/wesnoth.dir/game.cpp.o: In function `void boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::close<boost::iostreams::non_blocking_adapter<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > > >(boost::iostreams::non_blocking_adapter<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >&)':
game.cpp:(.text._ZN5boost9iostreams23basic_gzip_decompressorISaIcEE5closeINS0_20non_blocking_adapterINS0_6detail16linked_streambufIcSt11char_traitsIcEEEEEEEvRT_[void boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::close<boost::iostreams::non_blocking_adapter<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > > >(boost::iostreams::non_blocking_adapter<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >&)]+0x17b): undefined reference to `boost::iostreams::detail::gzip_header::reset()'
game.cpp:(.text._ZN5boost9iostreams23basic_gzip_decompressorISaIcEE5closeINS0_20non_blocking_adapterINS0_6detail16linked_streambufIcSt11char_traitsIcEEEEEEEvRT_[void boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::close<boost::iostreams::non_blocking_adapter<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > > >(boost::iostreams::non_blocking_adapter<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >&)]+0x184): undefined reference to `boost::iostreams::detail::gzip_footer::reset()'
CMakeFiles/wesnoth.dir/game.cpp.o: In function `long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::read<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char*, long)':
game.cpp:(.text._ZN5boost9iostreams23basic_gzip_decompressorISaIcEE4readINS0_6detail16linked_streambufIcSt11char_traitsIcEEEEElRT_Pcl[long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::read<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char*, long)]+0x48b): undefined reference to `boost::iostreams::detail::gzip_header::reset()'
game.cpp:(.text._ZN5boost9iostreams23basic_gzip_decompressorISaIcEE4readINS0_6detail16linked_streambufIcSt11char_traitsIcEEEEElRT_Pcl[long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::read<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char*, long)]+0x495): undefined reference to `boost::iostreams::detail::gzip_footer::reset()'
game.cpp:(.text._ZN5boost9iostreams23basic_gzip_decompressorISaIcEE4readINS0_6detail16linked_streambufIcSt11char_traitsIcEEEEElRT_Pcl[long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::read<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char*, long)]+0x5e2): undefined reference to `boost::iostreams::detail::gzip_footer::process(char)'
game.cpp:(.text._ZN5boost9iostreams23basic_gzip_decompressorISaIcEE4readINS0_6detail16linked_streambufIcSt11char_traitsIcEEEEElRT_Pcl[long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::read<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char*, long)]+0x77a): undefined reference to `boost::iostreams::detail::gzip_header::reset()'
game.cpp:(.text._ZN5boost9iostreams23basic_gzip_decompressorISaIcEE4readINS0_6detail16linked_streambufIcSt11char_traitsIcEEEEElRT_Pcl[long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::read<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char*, long)]+0x784): undefined reference to `boost::iostreams::detail::gzip_footer::reset()'
game.cpp:(.text._ZN5boost9iostreams23basic_gzip_decompressorISaIcEE4readINS0_6detail16linked_streambufIcSt11char_traitsIcEEEEElRT_Pcl[long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::read<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char*, long)]+0x85a): undefined reference to `boost::iostreams::detail::gzip_header::process(char)'
libwesnoth-core.a(parser.cpp.o): In function `T.3521':
parser.cpp:(.text+0x701): undefined reference to `boost::iostreams::detail::gzip_header::reset()'
parser.cpp:(.text+0x70a): undefined reference to `boost::iostreams::detail::gzip_footer::reset()'
Comment 1 Rafał Mużyło 2010-02-19 21:46:42 UTC
Could you attach a bigger part of the build log ?
Comment 2 Samu Voutilainen 2010-02-20 17:20:36 UTC
Created attachment 220517 [details]
cmake output
Comment 3 Samu Voutilainen 2010-02-20 17:21:35 UTC
Created attachment 220519 [details]
make output

Attached cmake and make output from clean build. 

Note that fixing this bug is to simply add new "1.41" to FindBoost.cmake.
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2010-02-23 21:22:52 UTC
What's your cmake version?

What exactly do you change to make it work?
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2010-02-23 21:46:00 UTC
(In reply to comment #4)
> What's your cmake version?
> What exactly do you change to make it work?

Don't bother, I found the problem. 

@kde-team: For the stable cmake we already have a files/cmake-2.6.4-FindBoost.patch which just adds more versions. Now we need an equivalent patch for testing (2.8....), since that only runs up to boost-1.40 :) 

Comment 6 Andreas K. Hüttel archtester gentoo-dev 2010-02-23 21:51:21 UTC
Created attachment 220889 [details, diff]
Untested but trivial patch that delays the problem until boost-1.45
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2010-02-25 21:18:19 UTC
*** Bug 296513 has been marked as a duplicate of this bug. ***
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2010-03-17 19:48:52 UTC
2.8.1 has detection for 1.41, 1.41.0 but not 1.42, 1.42.0

fixing $summary
Comment 9 tman 2010-03-31 11:35:59 UTC
*** Bug 311369 has been marked as a duplicate of this bug. ***
Comment 10 tman 2010-03-31 11:52:18 UTC
it would be nice if someone can put this patch in portage. 

thanks
Comment 11 Andreas K. Hüttel archtester gentoo-dev 2010-04-04 18:25:00 UTC
Please give the cmake-2.8.1 ebuild from the kde overlay a thorough testing. 

This should be fixed there, as well as another issue (bug 206920). 
Comment 12 Dennis Schridde 2010-04-05 08:00:59 UTC
FindCmake offers the following
# SET(Boost_ADDITIONAL_VERSIONS "1.78" "1.78.0" "1.79" "1.79.0")
Possible the gentoo-cmake-config that is loaded automatically should set these to the installed versions of boost.
Comment 13 Dennis Schridde 2010-04-05 08:01:26 UTC
(In reply to comment #12)
> FindCmake offers the following
FindBoost

Comment 14 Andreas K. Hüttel archtester gentoo-dev 2010-04-05 13:12:24 UTC
(In reply to comment #12)
> FindCmake offers the following
> # SET(Boost_ADDITIONAL_VERSIONS "1.78" "1.78.0" "1.79" "1.79.0")
> Possible the gentoo-cmake-config that is loaded automatically should set these
> to the installed versions of boost.
> 

Yes that might be a more elegant solution. later...
Comment 15 Andreas K. Hüttel archtester gentoo-dev 2010-04-13 15:02:44 UTC
Fixed in cmake-2.8.1-r1.