[pkg-boost-devel] Bug#593876: Bug#593876: #593876 libboost-filesystem-dev: Undeclared indirect dependency of boost_filesystem on boost_system causes link failure

Hamish hamish_b at yahoo.com
Sat Jun 2 22:42:28 UTC 2012


Hamish wrote:
> > this affects me, and I have no idea how to route around
> > it.
> >    http://lists.debian.org/debian-gis/2012/06/msg00000.html

Steve wrote:
> The error message shown indicates you're building against boost
> 1.46.1.  I'm trying to remove that version from the archive [1].
> Could you build against the now-default 1.49 and let me know
> if there is an issue?  Thanks.

Hi,

actually that build log was for Ubuntu 12.04; the error in sid/1.49
was the same but different (and uglier!) as seen in a later post in the
ML thread:
  http://lists.debian.org/debian-gis/2012/06/msg00002.html

[...]
Linking CXX executable gpsdrive
/usr/bin/ld: CMakeFiles/gpsdrive.dir/mapnik.o: undefined reference to symbol '_ZTVN5boost6detail16thread_data_baseE'
/usr/bin/ld: note: '_ZTVN5boost6detail16thread_data_baseE' is defined in DSO /usr/lib/libboost_thread.so.1.49.0 so try adding it to the linker command line
/usr/lib/libboost_thread.so.1.49.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[3]: *** [src/gpsdrive] Error 1


> As I understand things, all you can do is build-depend on both
> libboost-filesystem-dev and libboost-system-dev and explicitly link
> against both ("-lboost_filesystem -lboost_system").

right, Aron on the debian-gis ML helped me figure out the way to get
that to happen forcibly from within cmake, so now it links successfully.


Thanks for reminding me about the build-depends too, I'd neglected that.

libboost-filesystem1.49-dev depends on libboost-system1.49-dev;
shouldn't one of them depend on libboost-thread1.49-dev too, if that
is in fact the case?


cheers,
Hamish





More information about the pkg-boost-devel mailing list