[Pkg-phototools-devel] Bug#966904: pfstools: FTBFS: array2d.h:173:9: error: ‘__assert_fail’ was not declared in this scope; did you mean ‘MagickCore::__assert_fail’?

peter green plugwash at p10link.net
Thu Sep 24 06:55:43 BST 2020


On 24/09/2020 06:25, Andreas Metzler wrote:
> On 2020-08-28 peter green <plugwash at p10link.net> wrote:
>> Tags 966904 +patch
>> thanks
> 
>> The issue is that Magick++.h (indirectly) includes assert.h inside a namespace.
> [...]
>> I would argue that is a bug in imagemagick and have filed bugs in both Debian and upstream as
>> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=969128 and https://github.com/ImageMagick/ImageMagick6/issues/95
> [...]
> 
> Hello Peter,
> 
> thanks for your help.
> 
> Did you note that the ImageMagick6 issue 95 has an comment ("We compiled
> your source under Fedora and Centos without complaint [...]  Perhaps
> there is a problem in the Debian tool chains.")
I did see it, but not sure how best to respond (and I don't really want to get deeply involved in this).

I still think it's imagemagick's fault for including assert.h inside a namespace and hence breaking other users of the
header, even if it happens to work on some other distros (which presumably have slightly different header interdependencies).



More information about the Pkg-phototools-devel mailing list