Bug#705601: libflac-dev conflicting with boost::shared_ptr

Fabian Greffrath fabian at greffrath.com
Fri Apr 19 07:52:06 UTC 2013


Hi,

well, that's an interesting bug, indeed. Especially, since `pkg-config
--cflags flac` does not add anything more than "-I/usr/include/FLAC" to
the command line.

Am Mittwoch, den 17.04.2013, 12:26 +0200 schrieb raphael:
> # mv /usr/include/FLAC/assert.h{,.bak}

I come to the same conclusion. It turns out that <boost/assert.hpp>,
included from <boost/smart_ptr/shared_ptr.hpp>, includes <assert.h> at
one point and the compiler decides to prefer <FLAC/assert.h>
over /usr/include/assert.h when "-I/usr/include/FLAC" is passed to its
command line.

I have no idea, though, why the compiler does this. Maybe because the .c
header is explicitely included. Changing <boost/assert.hpp> to include
<cassert> instead of <assert.h>, as discussed in the code comment,
should fix the issue as well. I have yet not tried this out, though.

 - Fabian



More information about the pkg-multimedia-maintainers mailing list