[Tile-serving] [osm2pgsql] cannot compile osm2pgsql having a non-thread boost lib on the system (#256)

thbeutin notifications at github.com
Sun Jan 18 11:28:28 UTC 2015


configure option "--with-boost=no" results in:

checking whether the Boost::System library is available... yes
configure: error: Could not find a version of the library!

configure options "--with-boost=yes --without-boost-thread" let's configure run smoothly, but the compile fails:
./.libs/libosm2pgsql.a(osmdata.o): In function `boost::thread::start_thread()':
/usr/include/boost/thread/detail/thread.hpp:180: undefined reference to `boost::thread::start_thread_noexcept()'
./.libs/libosm2pgsql.a(osmdata.o): In function `boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, output_t>, boost::_bi::list1<boost::_bi::value<output_t*> > > >::~thread_data()':
/usr/include/boost/thread/detail/thread.hpp:91: undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
./.libs/libosm2pgsql.a(osmdata.o): In function `~thread_data':
/usr/include/boost/thread/detail/thread.hpp:91: undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
./.libs/libosm2pgsql.a(osmdata.o): In function `boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, middle_t>, boost::_bi::list1<boost::_bi::value<middle_t*> > > >::~thread_data()':
/usr/include/boost/thread/detail/thread.hpp:91: undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
./.libs/libosm2pgsql.a(osmdata.o): In function `~thread_data':
/usr/include/boost/thread/detail/thread.hpp:91: undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
./.libs/libosm2pgsql.a(osmdata.o): In function `boost::detail::thread_data<boost::_bi::bind_t<void, void (*)(std::vector<boost::shared_ptr<output_t>, std::allocator<boost::shared_ptr<output_t> > > const&, boost::lockfree::queue<std::pair<long, unsigned long>, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>&, boost::atomic<unsigned long>&, int, bool), boost::_bi::list5<boost::reference_wrapper<std::vector<boost::shared_ptr<output_t>, std::allocator<boost::shared_ptr<output_t> > > const>, boost::reference_wrapper<boost::lockfree::queue<std::pair<long, unsigned long>, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_> >, boost::reference_wrapper<boost::atomic<unsigned long> >, boost::_bi::value<int>, boost::_bi::value<bool> > > >::~thread_data()':
/usr/include/boost/thread/detail/thread.hpp:91: undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
./.libs/libosm2pgsql.a(osmdata.o):/usr/include/boost/thread/detail/thread.hpp:91: more undefined references to `boost::detail::thread_data_base::~thread_data_base()' follow
...

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/256
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150118/4a42e3c7/attachment.html>


More information about the Tile-serving mailing list