Page 1 of 1

Building IM 7 on OS X Mavericks fails with "make[1]: *** [coders/coders_aai_la-aai.lo] Error 1"

Posted: 2015-07-05T11:38:05-07:00
by pipitas
I'm building ImageMagick 7 (current SVN checkout r19059) on a Mac OS X Mavericks (10.9.5) system (with lots of MacPorts software). Up until a few days ago this worked on a regular basis. Since then I see this:

Code: Select all

kp@mbp:$> ./configure [...my options...] && make

[....]
==============================================================================
ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

  Host system type: x86_64-apple-darwin13.4.0
  Build system type: x86_64-apple-darwin13.4.0

                  Option                        Value
  ------------------------------------------------------------------------------
  Shared libraries  --enable-shared=yes		yes
  Static libraries  --enable-static=yes		yes
  Module support    --with-modules=yes		yes
  GNU ld            --with-gnu-ld=no		no
  Quantum depth     --with-quantum-depth=16	16
  High Dynamic Range Imagery
                    --enable-hdri=yes		yes

  Install documentation:    	yes

  Delegate Library Configuration:
  BZLIB             --with-bzlib=yes		yes
  Autotrace         --with-autotrace=yes		yes
  DJVU              --with-djvu=yes		yes
  DPS               --with-dps=yes		no
  FFTW              --with-fftw=yes		yes
  FlashPIX          --with-fpx=yes		no
  FontConfig        --with-fontconfig=yes	yes
  FreeType          --with-freetype=yes		yes
  Ghostscript lib   --with-gslib=yes		yes
  Graphviz          --with-gvc=yes		yes
  JBIG              --with-jbig=yes		yes
  JPEG v1           --with-jpeg=yes		yes
  LCMS              --with-lcms=yes		yes
  LIBJPEG2          --with-openjp2=yes		yes
  LQR               --with-lqr=yes		yes
  LTDL              --with-ltdl=yes		yes
  LZMA              --with-lzma=yes		yes
  Magick++          --with-magick-plus-plus=yes	yes
  OpenEXR           --with-openexr=yes		yes
  PANGO             --with-pango=yes		yes
  PERL              --with-perl=yes		/opt/local/bin/perl
  PNG               --with-png=yes		yes
  RSVG              --with-rsvg=yes		yes
  TIFF              --with-tiff=yes		yes
  WEBP              --with-webp=yes		yes
  WMF               --with-wmf=yes		yes
  X11               --with-x=			yes
  XML               --with-xml=yes		yes
  ZLIB              --with-zlib=yes		yes

  Delegate Program Configuration:
  GhostPCL          None				pcl6 (unknown)
  GhostXPS          None				gxps (unknown)
  Ghostscript       None				gs (9.18)

  Font Configuration:
  Apple fonts       --with-apple-font-dir=default	
  Dejavu fonts      --with-dejavu-font-dir=default	none
  Ghostscript fonts --with-gs-font-dir=default	/usr/local/share/ghostscript/fontsx/
  Windows fonts     --with-windows-font-dir=default	none

  X11 Configuration:
        X_CFLAGS        = -I/opt/local/include
        X_PRE_LIBS      =  -lSM -lICE
        X_LIBS          =  -L/opt/local/lib
        X_EXTRA_LIBS    = 

  Options used to compile and link:
    PREFIX          = /usr/local2
    EXEC-PREFIX     = /usr/local2
    VERSION         = 7.0.0
    CC              = gcc
    CFLAGS          = -I/opt/local/include/libxml2 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -D_REENTRANT -I/opt/local/include/librsvg-2.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -D_THREAD_SAFE -I/opt/local/include/OpenEXR -I/opt/local/include/lqr-1 -I/opt/local/include/openjpeg-2.1 -I/opt/local/include/graphviz -pthread -g -O2 -Wall -mtune=corei7-avx -fexceptions -D_FORTIFY_SOURCE=0 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
    CPPFLAGS        = -D_THREAD_SAFE -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/opt/local/include
    PCFLAGS         = 
    DEFS            = -DHAVE_CONFIG_H
    LDFLAGS         = -L/opt/local/lib
    LIBS            = 
    CXX             = g++
    CXXFLAGS        = -g -O2 -D_THREAD_SAFE -pthread
    FEATURES        = DPC HDRI Cipher OpenCL Modules
    DELEGATES       = autotrace bzlib djvu mpeg fftw fontconfig freetype gslib jbig jng jpeg lcms lqr lzma openexr openjp2 pango png ps rsvg tiff webp wmf x xml zlib
==============================================================================


/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
  CC       coders/coders_aai_la-aai.lo
coders/aai.c:129:35: error: use of undeclared identifier 'MagickCoreSignature'
  assert(image_info->signature == MagickCoreSignature);
                                  ^
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                        ^
coders/aai.c:134:34: error: use of undeclared identifier 'MagickCoreSignature'
  assert(exception->signature == MagickCoreSignature);
                                 ^
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                        ^
coders/aai.c:352:35: error: use of undeclared identifier 'MagickCoreSignature'
  assert(image_info->signature == MagickCoreSignature);
                                  ^
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                        ^
coders/aai.c:354:30: error: use of undeclared identifier 'MagickCoreSignature'
  assert(image->signature == MagickCoreSignature);
                             ^
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                        ^
coders/aai.c:358:34: error: use of undeclared identifier 'MagickCoreSignature'
  assert(exception->signature == MagickCoreSignature);
                                 ^
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                        ^
5 errors generated.
make[1]: *** [coders/coders_aai_la-aai.lo] Error 1
make: *** [all] Error 2

kp@mbp:$>
Is there anything *I* can do to make it build again?

Re: Building IM 7 on OS X Mavericks fails with "make[1]: *** [coders/coders_aai_la-aai.lo] Error 1"

Posted: 2015-07-05T11:58:03-07:00
by magick
Check MagickCore/method-attributes.h. Do you see the MagickCoreSignature define? If so, your build is picking up an older method-attributes.h file installed somewhere on your system. Note, you can expect some changes to the API / ABI since ImageMagick 7 is not released yet. When it is released, these sorts of changes will no longer occur.

Re: Building IM 7 on OS X Mavericks fails with "make[1]: *** [coders/coders_aai_la-aai.lo] Error 1"

Posted: 2015-07-09T12:35:15-07:00
by pipitas
magick wrote:Check MagickCore/method-attributes.h.
There is a file named method-attribute.h (not method-attributes.h).

An identically named file is in MagickWand/method-attribute.h.
magick wrote:Do you see the MagickCoreSignature define?
No, in neither of the above files.
magick wrote:If so, your build is picking up an older method-attributes.h file installed somewhere on your system. Note, you can expect some changes to the API / ABI since ImageMagick 7 is not released yet. When it is released, these sorts of changes will no longer occur.
Indeed, there are a few more method-attribute.h files on the system. But none of them has a MagickCoreSignature defined...

----

However, at the moment I cannot do an SVN update: there is an error returned, saying:

Code: Select all

svn: E130003: The XML response contains invalid XML

Re: Building IM 7 on OS X Mavericks fails with "make[1]: *** [coders/coders_aai_la-aai.lo] Error 1"

Posted: 2015-07-09T13:24:51-07:00
by pipitas
I checked out a fresh instance from SVN (old one would keep choking about the "invalid XML" -- I guess somehow my old checkout was corrupted).

This one does build flawlessly.