Suggests libboost-serialization-dev instead of Recommends

Bug #57196 reported by Christophe Dumez
4
Affects Status Importance Assigned to Milestone
boost (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: libboost-dev

Hi,

I tried to compile libtorrent 0.10 (http://libtorrent.sf.net) on my Ubuntu Dapper with the following commands:
> ./configure --disable-debug
> make clean
> make
>

The compiler produces the fallowing error messages:
> /usr/include/boost/multi_index/detail/index_loader.hpp:21:39: error:
> boost/serialization/nvp.hpp: No such file or directory
> In file included from /usr/include/boost/multi_index_container.hpp:46,
> from storage.cpp:52:
> /usr/include/boost/multi_index/detail/archive_constructed.hpp:20:49:
> error: boost/serialization/serialization.hpp: No such file or directory
> In file included from storage.cpp:52:

On of my libboost header is asking for a header in libboost-serialization-dev but it wasn't installed as a dependency. This is a problem. I thought at first that the problem came from libtorrent but the error doesn't come from a libtorrent header. It comes from a boost header included by libtorrent.

Boost is now splitted in multiple small packages but I think you may have forgot some dependencies.

Related branches

Revision history for this message
Simon Law (sfllaw) wrote :

libboost-dev Suggests plenty of other -dev packages.

But they should probably be Recommends instead. Especially
since apt will install Recommends now.

Changed in boost:
importance: Untriaged → Low
status: Unconfirmed → Confirmed
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Why just a 'Recommends' and not a 'Depends' ? I think one of the libboost libraries lack a dependency to libboost-serialization-dev (the package that include /usr/include/boost/multi_index/detail/archive_constructed.hpp : I don't know which one it is).

Otherwise, the programs depdending on the package including archive_constructed.hpp won't compile if serialization is not installed...

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

localhost# dlocate /usr/include/boost/multi_index/detail/archive_constructed.hpp
libboost-dev: /usr/include/boost/multi_index/detail/archive_constructed.hpp

localhost# grep -r serialization.hpp /usr/include/boost/multi_index/detail/archive_constructed.hpp
#include <boost/serialization/serialization.hpp>

localhost# dlocate /usr/include/boost/serialization/serialization.hpp
libboost-serialization-dev: /usr/include/boost/serialization/serialization.hpp

You have an include in one of files included in libboost-dev that will fail if serialization is not installed. Hence, I think libboost-dev should depend on libboost-serialization-dev.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package boost - 1.34.1-15ubuntu1

---------------
boost (1.34.1-15ubuntu1) jaunty; urgency=low

  * Merge from debian unstable, remaining changes: LP: #321789
    - GCCXMLParser.py: Use ElementTree from the python2.5 standard
      library.
  * Closes LP: #57196

boost (1.34.1-15) unstable; urgency=low

  * patches/0001-boost.mpl-gcc-4.4-fixes.patch: New. Fixes preprocessor
    usage. Closes: #505597.

  * patches/pending-relaxed_heap.patch: New. Include <climits> to obtain
    CHAR_BIT; thanks to Charles Blundell for the patch. Closes: #495204.

 -- Bhavani Shankar <email address hidden> Tue, 27 Jan 2009 14:37:06 +0530

Changed in boost:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.