Open
Description
The current Boost 1.88.0 with Boost-config.cmake file has a problem with the Boost::iostream
example, as it fails at linking stage missing bz2
library
[ 50%] Building CXX object CMakeFiles/foo.dir/foo.cpp.o
/usr/bin/clang++ -DBOOST_IOSTREAMS_NO_LIB -DBOOST_SERIALIZATION_NO_LIB -isystem /builds/hunter/hunter/_Base/xxxxxxx/ae89ed9/bfa4c80/Install/include -std=c++17 -fPIE -MD -MT CMakeFiles/foo.dir/foo.cpp.o -MF CMakeFiles/foo.dir/foo.cpp.o.d -o CMakeFiles/foo.dir/foo.cpp.o -c /builds/hunter/hunter/examples/Boost-iostreams/foo.cpp
[100%] Linking CXX executable foo
/usr/bin/cmake -E cmake_link_script CMakeFiles/foo.dir/link.txt --verbose=1
/usr/bin/clang++ CMakeFiles/foo.dir/foo.cpp.o -o foo /builds/hunter/hunter/_Base/xxxxxxx/ae89ed9/bfa4c80/Install/lib/libboost_iostreams-mt-d-x64.a /builds/hunter/hunter/_Base/xxxxxxx/ae89ed9/bfa4c80/Install/lib/libboost_serialization-mt-d-x64.a /builds/hunter/hunter/_Base/xxxxxxx/ae89ed9/bfa4c80/Install/lib/libzd.a /builds/hunter/hunter/_Base/xxxxxxx/ae89ed9/bfa4c80/Install/lib/libbz2d.a -lbz2 -lz -lbz2 -lz
/usr/bin/ld: cannot find -lbz2
/usr/bin/ld: cannot find -lbz2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It seems to be an upstream issue: boostorg/iostreams#177
for some unclear reason the bz2
library is not found while linking even tough the library is present in the hunter lib folder.