elisium7 commented on issue #107: build error on CentOS7.4 URL: https://github.com/apache/rocketmq-client-cpp/issues/107#issuecomment-473126599 > @jonnxu thanks for your answer . now another error > Linking CXX executable ../../bin/AsyncProducer > cd /opt/rocketmq-client-cpp/tmp_build_dir/example && /usr/bin/cmake -E cmake_link_script CMakeFiles/AsyncProducer.dir/link.txt --verbose=1 > /usr/bin/c++ -Wall -Wno-deprecated -fPIC -fno-strict-aliasing -std=c++11 -Wno-unused-local-typedef -Wno-expansion-to-defined -m64 -O3 -DNDEBUG CMakeFiles/AsyncProducer.dir/AsyncProducer.cpp.o -o ../../bin/AsyncProducer -L/opt/rocketmq-client-cpp/bin/lib -rdynamic ../../bin/librocketmq.so ../../libs/signature/lib/libSignature.a ../../bin/lib/libjsoncpp.a ../../bin/lib/libevent.a ../../bin/lib/libevent_core.a ../../bin/lib/libevent_extra.a ../../bin/lib/libevent_pthreads.a ../../bin/lib/libboost_atomic.a ../../bin/lib/libboost_thread.a ../../bin/lib/libboost_system.a ../../bin/lib/libboost_chrono.a ../../bin/lib/libboost_date_time.a ../../bin/lib/libboost_log.a ../../bin/lib/libboost_log_setup.a ../../bin/lib/libboost_regex.a ../../bin/lib/libboost_serialization.a ../../bin/lib/libboost_filesystem.a ../../bin/lib/libboost_locale.a ../../bin/lib/libboost_iostreams.a -ldl -lpthread -lrt -lz -Wl,-rpath,/opt/rocketmq-client-cpp/bin/lib:/opt/rocketmq-client-cpp/bin > ../../bin/librocketmq.so: undefined reference to boost::iostreams::zlib::deflated' ../../bin/librocketmq.so: undefined reference to boost::iostreams::detail::zlib_base::before(char const*&, char const*, char*&, char*)' > ../../bin/librocketmq.so: undefined reference to boost::iostreams::zlib_error::check(int)' ../../bin/librocketmq.so: undefined reference to boost::iostreams::detail::zlib_base::xdeflate(int)' > ../../bin/librocketmq.so: undefined reference to boost::iostreams::detail::zlib_base::reset(bool, bool)' ../../bin/librocketmq.so: undefined reference to boost::iostreams::zlib::stream_end' > ../../bin/librocketmq.so: undefined reference to boost::iostreams::zlib::no_flush' ../../bin/librocketmq.so: undefined reference to boost::iostreams::detail::zlib_base::xinflate(int)' > ../../bin/librocketmq.so: 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*)' ../../bin/librocketmq.so: undefined reference to boost::iostreams::detail::zlib_base::zlib_base()' > ../../bin/librocketmq.so: undefined reference to boost::iostreams::detail::zlib_base::~zlib_base()' ../../bin/librocketmq.so: undefined reference to boost::iostreams::zlib::default_strategy' > ../../bin/librocketmq.so: undefined reference to boost::iostreams::zlib::sync_flush' ../../bin/librocketmq.so: undefined reference to boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)' > ../../bin/librocketmq.so: undefined reference to boost::iostreams::zlib::finish' ../../bin/librocketmq.so: undefined reference to boost::iostreams::zlib::default_compression' I met the same error before,that's because you have some errors when you build the boost_iostreams with lack of zlib.you can remove the boost libs and then rebuild them. i
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
