Comment 2 for bug 2012119

Revision history for this message
Rocko (rockorequin) wrote :

I tried to build imageinfo from source (using apt source imageinfo) but after installing the build-deps (sudo apt build-dep imageinfo) and also the extra package required for Magick-config so configure will succeed, it fails to build with the error "imageinfo.c:373:15: error: ‘Image’ has no member named ‘color_profile’":

$ make
gcc -c imageinfo.c -g -O2 -Wall -DARCH_IS_BIG_ENDIAN=0 -DIMINVERSION=\"0.04\" @MAGICK_CFLAGS@
imageinfo.c: In function ‘main’:
imageinfo.c:99:9: warning: variable ‘orientswitch’ set but not used [-Wunused-but-set-variable]
   99 | float orientswitch = 5.0;
      | ^~~~~~~~~~~~
imageinfo.c: In function ‘signature’:
imageinfo.c:239:9: warning: ‘GetIndexes’ is deprecated [-Wdeprecated-declarations]
  239 | ip = GetIndexes(image);
      | ^~
In file included from /usr/include/magick/enum_strings.h:23,
                 from /usr/include/magick/api.h:84,
                 from imageinfo.c:27:
/usr/include/magick/pixel_cache.h:105:4: note: declared here
  105 | *GetIndexes(const Image *image)
      | ^~~~~~~~~~
imageinfo.c: In function ‘piccmd5’:
imageinfo.c:373:15: error: ‘Image’ has no member named ‘color_profile’
  373 | pi = &(image->color_profile);
      | ^~
make: *** [Makefile:57: imageinfo.o] Error 1