Re: [MacPorts] #68246: ImageMagick fails to build on 10.6: error: ‘struct jpeg_decompress_struct’ has no member named ‘process’

MacPorts noreply at macports.org
Tue Sep 26 09:59:09 UTC 2023


#68246: ImageMagick fails to build on 10.6: error: ‘struct jpeg_decompress_struct’
has no member named ‘process’
---------------------------+----------------------------------
  Reporter:  barracuda156  |      Owner:  ryandesign
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:  snowleopard, leopard
      Port:  ImageMagick   |
---------------------------+----------------------------------

Comment (by barracuda156):

 Replying to [comment:2 ryandesign]:
 > We had successful builds of this port on all systems 10.6 and newer on
 September 16, 2023 so I'm not sure what would have changed since then.
 Please attach the main.log and let's compare it with one from the
 buildbot.

 Unfortunately, it also fails with gcc12:
 {{{
 libtool: compile:  /opt/local/bin/gcc-mp-12 -DHAVE_CONFIG_H -I. -I./config
 -I. -I. -I/opt/local/include -DMAGICKCORE_HDRI_ENABLE=0
 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/opt/local/include
 -I/opt/local/include/libxml2 -I/opt/local/include/webp
 -I/opt/local/include/webp -I/opt/local/include/libraw
 -I/opt/local/include/libpng16 -pthread -I/opt/local/include/OpenEXR
 -I/opt/local/include/Imath -I/opt/local/include/openjpeg-2.5
 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16
 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -Wall -pipe
 -Os -arch ppc -fexceptions -D_FORTIFY_SOURCE=0 -pthread
 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -MT coders
 /jpeg_la-jpeg.lo -MD -MP -MF coders/.deps/jpeg_la-jpeg.Tpo -c
 coders/jpeg.c  -fno-common -DPIC -o coders/.libs/jpeg_la-jpeg.o
 coders/jpeg.c: In function 'ReadJPEGImage_':
 coders/jpeg.c:1263:31: error: 'struct jpeg_decompress_struct' has no
 member named 'process'; did you mean 'progress'?
  1263 |   image->interlace=jpeg_info->process == JPROC_PROGRESSIVE ?
       |                               ^~~~~~~
       |                               progress
 coders/jpeg.c:1263:42: error: 'JPROC_PROGRESSIVE' undeclared (first use in
 this function)
  1263 |   image->interlace=jpeg_info->process == JPROC_PROGRESSIVE ?
       |                                          ^~~~~~~~~~~~~~~~~
 coders/jpeg.c:1263:42: note: each undeclared identifier is reported only
 once for each function it appears in
 coders/jpeg.c:1265:33: error: 'struct jpeg_decompress_struct' has no
 member named 'process'; did you mean 'progress'?
  1265 |   image->compression=jpeg_info->process == JPROC_LOSSLESS ?
       |                                 ^~~~~~~
       |                                 progress
 coders/jpeg.c:1265:44: error: 'JPROC_LOSSLESS' undeclared (first use in
 this function)
  1265 |   image->compression=jpeg_info->process == JPROC_LOSSLESS ?
       |                                            ^~~~~~~~~~~~~~
 coders/jpeg.c: In function 'WriteJPEGImage_':
 coders/jpeg.c:2507:11: warning: implicit declaration of function
 'jpeg_simple_lossless'; did you mean 'jpeg_enable_lossless'? [-Wimplicit-
 function-declaration]
  2507 |
 jpeg_simple_lossless(jpeg_info,predictor,point_transform);
       |           ^~~~~~~~~~~~~~~~~~~~
       |           jpeg_enable_lossless
 mv -f coders/.deps/djvu_la-djvu.Tpo coders/.deps/djvu_la-djvu.Plo
 /bin/sh ./libtool  --tag=CC   --mode=compile /opt/local/bin/gcc-mp-12
 -DHAVE_CONFIG_H -I. -I./config  -I. -I.  -I/opt/local/include/openjpeg-2.5
 -I/opt/local/include -DMAGICKCORE_HDRI_ENABLE=0
 -DMAGICKCORE_QUANTUM_DEPTH=16  -I/opt/local/include
 -I/opt/local/include/libxml2 -I/opt/local/include/webp
 -I/opt/local/include/webp -I/opt/local/include/libraw
 -I/opt/local/include/libpng16 -pthread -I/opt/local/include/OpenEXR
 -I/opt/local/include/Imath  -I/opt/local/include/openjpeg-2.5
 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16
 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16     -Wall
 -pipe -Os -arch ppc -fexceptions -D_FORTIFY_SOURCE=0 -pthread
 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -MT coders
 /jp2_la-jp2.lo -MD -MP -MF coders/.deps/jp2_la-jp2.Tpo -c -o coders
 /jp2_la-jp2.lo `test -f 'coders/jp2.c' || echo './'`coders/jp2.c
 libtool: compile:  /opt/local/bin/gcc-mp-12 -DHAVE_CONFIG_H -I. -I./config
 -I/opt/local/include -DMAGICKCORE_HDRI_ENABLE=0
 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/opt/local/include
 -I/opt/local/include/libxml2 -I/opt/local/include/webp
 -I/opt/local/include/webp -I/opt/local/include/libraw
 -I/opt/local/include/libpng16 -pthread -I/opt/local/include/OpenEXR
 -I/opt/local/include/Imath -I/opt/local/include/openjpeg-2.5
 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16
 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -Wall -pipe
 -Os -arch ppc -fexceptions -D_FORTIFY_SOURCE=0 -pthread
 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -MT coders
 /heic_la-heic.lo -MD -MP -MF coders/.deps/heic_la-heic.Tpo -c
 coders/heic.c -o coders/heic_la-heic.o >/dev/null 2>&1
 make[1]: *** [coders/jpeg_la-jpeg.lo] Error 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/68246#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list