undefined reference to `boost::iostreams::zlib::deflated’

  c++, compiler-errors, g++

I am trying to install the Trans-Proteomic Pipeline found here. I have installed each of the necessary libraries mentioned in the readme, but when I run make all or make install it progresses through much of the compilation, and then errors out with the following message:

undefined reference to `boost::iostreams::zlib::deflated'

The error log is much longer with what seems to be redundant information but it generally looks like this:

/usr/bin/ld: /home/nkho/proj/tpp/release_6-0-0/build/gnu-x86_64-rc28/lib/libpwiz.a(MSDataFile.o): in function `pwiz::msdata::(anonymous namespace)::openFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':
MSDataFile.cpp:(.text+0x1cda): undefined reference to `boost::iostreams::zlib::deflated'
/usr/bin/ld: MSDataFile.cpp:(.text+0x1cf8): undefined reference to `boost::iostreams::zlib::default_strategy'
/usr/bin/ld: /home/nkho/proj/tpp/release_6-0-0/build/gnu-x86_64-rc28/lib/libpwiz.a(MSDataFile.o): in function `boost::detail::sp_counted_impl_p<boost::iostreams::symmetric_filter<boost::iostreams::detail::zlib_compressor_impl<std::allocator<char> >, std::allocator<char> >::impl>::dispose()':
MSDataFile.cpp:(.text._ZN5boost6detail17sp_counted_impl_pINS_9iostreams16symmetric_filterINS2_6detail20zlib_compressor_implISaIcEEES6_E4implEE7disposeEv[_ZN5boost6detail17sp_counted_impl_pINS_9iostreams16symmetric_filterINS2_6detail20zlib_compressor_implISaIcEEES6_E4implEE7disposeEv]+0x27): undefined reference to `boost::iostreams::detail::zlib_base::reset(bool, bool)'
/usr/bin/ld: MSDataFile.cpp:(.text._ZN5boost6detail17sp_counted_impl_pINS_9iostreams16symmetric_filterINS2_6detail20zlib_compressor_implISaIcEEES6_E4implEE7disposeEv[_ZN5boost6detail17sp_counted_impl_pINS_9iostreams16symmetric_filterINS2_6detail20zlib_compressor_implISaIcEEES6_E4implEE7disposeEv]+0x2f): undefined reference to `boost::iostreams::detail::zlib_base::~zlib_base()'
/usr/bin/ld: /home/nkho/proj/tpp/release_6-0-0/build/gnu-x86_64-rc28/lib/libpwiz.a(MSDataFile.o): in function `boost::iostreams::basic_gzip_compressor<std::allocator<char> >::basic_gzip_compressor(boost::iostreams::gzip_params const&, int)':
MSDataFile.cpp:(.text._ZN5boost9iostreams21basic_gzip_compressorISaIcEEC2ERKNS0_11gzip_paramsEi[_ZN5boost9iostreams21basic_gzip_compressorISaIcEEC5ERKNS0_11gzip_paramsEi]+0x1d7): undefined reference to `boost::iostreams::detail::zlib_base::zlib_base()'
/usr/bin/ld: MSDataFile.cpp:(.text._ZN5boost9iostreams21basic_gzip_compressorISaIcEEC2ERKNS0_11gzip_paramsEi[_ZN5boost9iostreams21basic_gzip_compressorISaIcEEC5ERKNS0_11gzip_paramsEi]+0x1f9): undefined reference to `boost::iostreams::detail::zlib_base::do_init(boost::iostreams::zlib_params const&, bool, void* (*)(void*, unsigned int, unsigned int), void (*)(void*, void*), void*)'
/usr/bin/ld: MSDataFile.cpp:(.text._ZN5boost9iostreams21basic_gzip_compressorISaIcEEC2ERKNS0_11gzip_paramsEi[_ZN5boost9iostreams21basic_gzip_compressorISaIcEEC5ERKNS0_11gzip_paramsEi]+0x337): undefined reference to `boost::iostreams::zlib::best_compression'
/usr/bin/ld: MSDataFile.cpp:(.text._ZN5boost9iostreams21basic_gzip_compressorISaIcEEC2ERKNS0_11gzip_paramsEi[_ZN5boost9iostreams21basic_gzip_compressorISaIcEEC5ERKNS0_11gzip_paramsEi]+0x34e): undefined reference to `boost::iostreams::zlib::best_speed'
/usr/bin/ld: MSDataFile.cpp:(.text._ZN5boost9iostreams21basic_gzip_compressorISaIcEEC2ERKNS0_11gzip_paramsEi[_ZN5boost9iostreams21basic_gzip_compressorISaIcEEC5ERKNS0_11gzip_paramsEi]+0xa51): undefined reference to `boost::iostreams::detail::zlib_base::reset(bool, bool)'
/usr/bin/ld: MSDataFile.cpp:(.text._ZN5boost9iostreams21basic_gzip_compressorISaIcEEC2ERKNS0_11gzip_paramsEi[_ZN5boost9iostreams21basic_gzip_compressorISaIcEEC5ERKNS0_11gzip_paramsEi]+0xa59): undefined reference to `boost::iostreams::detail::zlib_base::~zlib_base()'
/usr/bin/ld: MSDataFile.cpp:(.text._ZN5boost9iostreams21basic_gzip_compressorISaIcEEC2ERKNS0_11gzip_paramsEi[_ZN5boost9iostreams21basic_gzip_compressorISaIcEEC5ERKNS0_11gzip_paramsEi]+0xa75): undefined reference to `boost::iostreams::detail::zlib_base::reset(bool, bool)'
/usr/bin/ld: MSDataFile.cpp:(.text._ZN5boost9iostreams21basic_gzip_compressorISaIcEEC2ERKNS0_11gzip_paramsEi[_ZN5boost9iostreams21basic_gzip_compressorISaIcEEC5ERKNS0_11gzip_paramsEi]+0xa7d): undefined reference to `boost::iostreams::detail::zlib_base::~zlib_base()'

I’ve seen a variety of other questions with similar messages that mention one should define the path to the boost installation/binaries in the g++ command, but all I am running is make install, so I am not sure where I would specify this.

Source: Windows Questions C++

LEAVE A COMMENT