Page 1 of 1

error: 'MagickAddressType' undeclared

Posted: 2019-12-23T07:20:24-07:00
by ryandesign
Hello,

I'm the maintainer of the ImageMagick port in MacPorts. A user on an old Mac OS X 10.4 PowerPC system reported that ImageMagick 6.9.10-80 does not build for them. The error is:

Code: Select all

magick/memory.c: In function 'align_to_cache':
magick/memory.c:301: error: 'MagickAddressType' undeclared (first use in this function)
magick/memory.c:301: error: (Each undeclared identifier is reported only once
magick/memory.c:301: error: for each function it appears in.)
magick/memory.c:301: error: expected ')' before 'p'
Indeed, I can find no other occurrences of MagickAddressType anywhere in the source code. I do see MagickAddressType mentioned in ImageMagick 7. Was this code perhaps copied from 7 to 6 without accounting for this missing type?

Re: error: 'MagickAddressType' undeclared

Posted: 2019-12-23T16:35:27-07:00
by magick
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.