title: g++ and boost linker error on Ubuntu oneiric
body: <p>I am getting the following errors after an upgrade.  I cannot figure what is wrong with it.  It should work as far as I can see.</p>
  
  <pre><code>$ make 2&gt;&amp;1 | head
  g++ -o prog -ansi -O2 -Wall -I/usr/include/boost -L/usr/lib -lboost_program_options -lboost_thread -lstdc++ ./YYY.o ./main.o ./myClass.o
  ./YYY.o: In function `void boost::call_once&lt;void (*)()&gt;(boost::once_flag&amp;, void (*)())':
  YYY.cc:(.text._ZN5boost9call_onceIPFvvEEEvRNS_9once_flagET_[void boost::call_once&lt;void (*)()&gt;(boost::once_flag&amp;, void (*)())]+0x14): undefined reference to `boost::detail::get_once_per_thread_epoch()'
  YYY.cc:(.text._ZN5boost9call_onceIPFvvEEEvRNS_9once_flagET_[void boost::call_once&lt;void (*)()&gt;(boost::once_flag&amp;, void (*)())]+0x2c): undefined reference to `boost::detail::once_epoch_mutex'
  YYY.cc:(.text._ZN5boost9call_onceIPFvvEEEvRNS_9once_flagET_[void boost::call_once&lt;void (*)()&gt;(boost::once_flag&amp;, void (*)())]+0x62): undefined reference to `boost::detail::once_epoch_mutex'
  YYY.cc:(.text._ZN5boost9call_onceIPFvvEEEvRNS_9once_flagET_[void boost::call_once&lt;void (*)()&gt;(boost::once_flag&amp;, void (*)())]+0x67): undefined reference to `boost::detail::once_epoch_cv'
  YYY.cc:(.text._ZN5boost9call_onceIPFvvEEEvRNS_9once_flagET_[void boost::call_once&lt;void (*)()&gt;(boost::once_flag&amp;, void (*)())]+0x95): undefined reference to `boost::detail::once_epoch_mutex'
  YYY.cc:(.text._ZN5boost9call_onceIPFvvEEEvRNS_9once_flagET_[void boost::call_once&lt;void (*)()&gt;(boost::once_flag&amp;, void (*)())]+0xa9): undefined reference to `boost::detail::once_epoch_mutex'
  YYY.cc:(.text._ZN5boost9call_onceIPFvvEEEvRNS_9once_flagET_[void boost::call_once&lt;void (*)()&gt;(boost::once_flag&amp;, void (*)())]+0xbd): undefined reference to `boost::detail::once_global_epoch'
  YYY.cc:(.text._ZN5boost9call_onceIPFvvEEEvRNS_9once_flagET_[void boost::call_once&lt;void (*)()&gt;(boost::once_flag&amp;, void (*)())]+0xc2): undefined reference to `boost::detail::once_epoch_cv'
  
  $ ls -l /usr/lib/*boost_threa*
     0 lrwxrwxrwx 1 root root   17 Jun  3 22:30 /usr/lib/libboost_thread-mt.a -&gt; libboost_thread.a
     0 lrwxrwxrwx 1 root root   25 Jun  3 22:30 /usr/lib/libboost_thread-mt.so -&gt; libboost_thread.so.1.46.1
  208K -rw-r--r-- 1 root root 208K Jun  3 22:30 /usr/lib/libboost_thread.a
     0 lrwxrwxrwx 1 root root   25 Jun  3 22:30 /usr/lib/libboost_thread.so -&gt; libboost_thread.so.1.46.1
   88K -rw-r--r-- 1 root root  87K Oct 21  2010 /usr/lib/libboost_thread.so.1.42.0
  100K -rw-r--r-- 1 root root  99K Jun  3 22:30 /usr/lib/libboost_thread.so.1.46.1
  
  $ ls -ld /usr/include/boost/*thread*
  4.0K drwxr-xr-x 5 root root 4.0K Oct 13 21:59 /usr/include/boost/thread/
  4.0K -rw-r--r-- 1 root root  839 Jun  3 22:18 /usr/include/boost/thread.hpp
  </code></pre>