[Tile-serving] [osm2pgsql] Optionally enable C++11 (#332)

Dmitry Marakasov notifications at github.com
Thu Apr 16 06:33:04 UTC 2015


Strange, it builds fine in poudriere on 8.4, 9.3, 10.1 and recent -current. It doesn't link on i386 though:

```
./.libs/libosm2pgsql.a(osmdata.o): In function `boost::lockfree::queue<pending_job_t, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>::~queue()':
osmdata.cpp:(.text._ZN5boost8lockfree5queueI13pending_job_tNS_9parameter5void_ES4_S4_ED2Ev[_ZN5boost8lockfree5queueI13pending_job_tNS_9parameter5void_ES4_S4_ED2Ev]+0x54): undefined reference to `boost::atomics::detail::lockpool::get_lock_for(void const volatile*)'
osmdata.cpp:(.text._ZN5boost8lockfree5queueI13pending_job_tNS_9parameter5void_ES4_S4_ED2Ev[_ZN5boost8lockfree5queueI13pending_job_tNS_9parameter5void_ES4_S4_ED2Ev]+0x72): undefined reference to `boost::atomics::detail::lockpool::get_lock_for(void const volatile*)'
osmdata.cpp:(.text._ZN5boost8lockfree5queueI13pending_job_tNS_9parameter5void_ES4_S4_ED2Ev[_ZN5boost8lockfree5queueI13pending_job_tNS_9parameter5void_ES4_S4_ED2Ev]+0x9b): undefined reference to `boost::atomics::detail::lockpool::get_lock_for(void const volatile*)'
osmdata.cpp:(.text._ZN5boost8lockfree5queueI13pending_job_tNS_9parameter5void_ES4_S4_ED2Ev[_ZN5boost8lockfree5queueI13pending_job_tNS_9parameter5void_ES4_S4_ED2Ev]+0xb9): undefined reference to `boost::atomics::detail::lockpool::get_lock_for(void const volatile*)'
./.libs/libosm2pgsql.a(osmdata.o): In function `bool boost::lockfree::queue<pending_job_t, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>::pop<pending_job_t>(pending_job_t&)':
osmdata.cpp:(.text._ZN5boost8lockfree5queueI13pending_job_tNS_9parameter5void_ES4_S4_E3popIS2_EEbRT_[_ZN5boost8lockfree5queueI13pending_job_tNS_9parameter5void_ES4_S4_E3popIS2_EEbRT_]+0x44): undefined reference to `boost::atomics::detail::lockpool::get_lock_for(void const volatile*)'
./.libs/libosm2pgsql.a(osmdata.o):osmdata.cpp:(.text._ZN5boost8lockfree5queueI13pending_job_tNS_9parameter5void_ES4_S4_E3popIS2_EEbRT_[_ZN5boost8lockfree5queueI13pending_job_tNS_9parameter5void_ES4_S4_E3popIS2_EEbRT_]+0x74): more undefined references to `boost::atomics::detail::lockpool::get_lock_for(void const volatile*)' follow
c++: error: linker command failed with exit code 1 (use -v to see invocation)
```
but that seems unrelated and probably should be fixed by linking to libboost_atomic.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/332#issuecomment-93655783
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150415/7c93a5a5/attachment.html>


More information about the Tile-serving mailing list