Building IM 6 from SVN 6.8.9 branch fails on OSX 10.9.5

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
pipitas
Posts: 168
Joined: 2012-07-15T14:06:46-07:00
Authentication code: 15

Building IM 6 from SVN 6.8.9 branch fails on OSX 10.9.5

Post by pipitas »

(Note: I also posted a few minutes ago how building IM 7 from SVN trunk fails for me:

-- viewtopic.php?f=3&t=26749)

I checked out https://subversion.imagemagick.org/subv ... gick-6.8.9

This system is OS X 10.9.5. It has lots of current MacPorts packages installed. MacPorts install everything into '/opt/local'.

I ran a simple './configure' with no option what-so-ever, so it would use the defaults. This is the result:

Code: Select all

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=no		no
GNU ld            --with-gnu-ld=no		no
Quantum depth     --with-quantum-depth=16	16
High Dynamic Range Imagery
                  --enable-hdri=no		no

Install documentation:		yes

Delegate Configuration:
BZLIB             --with-bzlib=yes		yes
Autotrace         --with-autotrace=no		no
Dejavu fonts      --with-dejavu-font-dir=default	none
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
GhostPCL          None				pcl6 (unknown)
GhostXPS          None				gxps (unknown)
Ghostscript       None				gs (9.16)
Ghostscript fonts --with-gs-font-dir=default	/usr/local/share/ghostscript/fontsx/
Ghostscript lib   --with-gslib=no		no
Graphviz          --with-gvc=no		
JBIG              --with-jbig=yes		yes
JPEG v1           --with-jpeg=yes		yes
JPEG-2000         --with-jp2=		
LCMS v1           --with-lcms=no		no
LCMS v2           --with-lcms2=yes		yes
LQR               --with-lqr=yes		yes
LTDL              --with-ltdl=yes		no
LZMA              --with-lzma=yes		yes
Magick++          --with-magick-plus-plus=yes	yes
MUPDF             --with-mupdf=no		no
OpenEXR           --with-openexr=yes		yes
OpenJP2           --with-openjp2=yes		yes
PANGO             --with-pango=yes		yes
PERL              --with-perl=no		no
PNG               --with-png=yes		yes
RSVG              --with-rsvg=no		no
TIFF              --with-tiff=yes		yes
WEBP              --with-webp=yes		yes
Windows fonts     --with-windows-font-dir=	none
WMF               --with-wmf=no		no
X11               --with-x=			yes
XML               --with-xml=yes		yes
ZLIB              --with-zlib=yes		yes

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/local
  EXEC-PREFIX     = /usr/local
  VERSION         = 6.8.8
  CC              = gcc
  CFLAGS          = -D_THREAD_SAFE -I/opt/local/include/OpenEXR -I/opt/local/include/lqr-1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/openjpeg-2.1 -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -g -O2 -Wall -fexceptions -D_FORTIFY_SOURCE=0 -D_THREAD_SAFE -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
  CPPFLAGS        = -I/usr/local/include/ImageMagick-6
  PCFLAGS         = -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
  DEFS            = -DHAVE_CONFIG_H
  LDFLAGS         = -L/opt/local/lib -L/opt/local/lib
  MAGICK_LDFLAGS  = -L/usr/local/lib -L/opt/local/lib -L/opt/local/lib
  LIBS            = -ljbig -llcms2 -ltiff -L/opt/local/lib -lfreetype -ljpeg -L/opt/local/lib -llqr-1 -lglib-2.0 -lintl -lpng16 -ldjvulibre -lfftw3 -L/opt/local/lib -lfontconfig -lfreetype -lwebp -lXext -lXt -lSM -lICE -lX11 -L/opt/local/lib -llzma -lbz2 -L/opt/local/lib -lIlmImf -lz -lImath -lHalf -lIex -lIlmThread -L/opt/local/lib -lopenjp2 -L/opt/local/lib -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lm -lgobject-2.0 -lglib-2.0 -lintl -lfontconfig -lfreetype -lxml2 -lz -lm
  CXX             = g++
  CXXFLAGS        = -g -O2 -D_THREAD_SAFE -pthread
  FEATURES        = DPC
  DELEGATES       = bzlib djvu mpeg fftw fontconfig freetype jbig jng jpeg lcms lqr lzma openexr openjp2 pango png ps tiff webp x xml zlib
Running 'make' results in this:

Code: Select all

[....]
  CC       coders/magick_libMagickCore_6_Q16_la-yuv.lo
  CC       coders/magick_libMagickCore_6_Q16_la-djvu.lo
coders/djvu.c:962:38: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
  entry->description=AcquireString("D<E9>j<E0> vu");
                                     ^~~~ ~~~~
1 warning generated.
  CC       coders/magick_libMagickCore_6_Q16_la-exr.lo
  CC       coders/magick_libMagickCore_6_Q16_la-jbig.lo
  CC       coders/magick_libMagickCore_6_Q16_la-jpeg.lo
  CC       coders/magick_libMagickCore_6_Q16_la-jp2.lo
coders/jp2.c:343:44: error: too few arguments to function call, expected 3, have 2
  opj_stream_set_user_data(jp2_stream,image);
  ~~~~~~~~~~~~~~~~~~~~~~~~                 ^
/opt/local/include/openjpeg-2.1/openjpeg.h:1154:1: note: 'opj_stream_set_user_data' declared here
OPJ_API void OPJ_CALLCONV opj_stream_set_user_data (opj_stream_t* p_stream, void * p_data, opj_stream_free_user_data_fn p_function);
^
/opt/local/include/openjpeg-2.1/openjpeg.h:82:20: note: expanded from macro 'OPJ_API'
#define OPJ_API    __attribute__ ((visibility ("default")))
                   ^
coders/jp2.c:347:47: error: too few arguments to function call, expected 3, have 2
      opj_stream_set_user_data(jp2_stream,NULL);
      ~~~~~~~~~~~~~~~~~~~~~~~~                ^
/opt/local/include/openjpeg-2.1/openjpeg.h:1154:1: note: 'opj_stream_set_user_data' declared here
OPJ_API void OPJ_CALLCONV opj_stream_set_user_data (opj_stream_t* p_stream, void * p_data, opj_stream_free_user_data_fn p_function);
^
/opt/local/include/openjpeg-2.1/openjpeg.h:82:20: note: expanded from macro 'OPJ_API'
#define OPJ_API    __attribute__ ((visibility ("default")))
                   ^
coders/jp2.c:348:7: warning: implicit declaration of function 'opj_stream_destroy_v3' is invalid in C99 [-Wimplicit-function-declaration]
      opj_stream_destroy_v3(jp2_stream);
      ^
coders/jp2.c:362:51: error: too few arguments to function call, expected 3, have 2
          opj_stream_set_user_data(jp2_stream,NULL);
          ~~~~~~~~~~~~~~~~~~~~~~~~                ^
/opt/local/include/openjpeg-2.1/openjpeg.h:1154:1: note: 'opj_stream_set_user_data' declared here
OPJ_API void OPJ_CALLCONV opj_stream_set_user_data (opj_stream_t* p_stream, void * p_data, opj_stream_free_user_data_fn p_function);
^
/opt/local/include/openjpeg-2.1/openjpeg.h:82:20: note: expanded from macro 'OPJ_API'
#define OPJ_API    __attribute__ ((visibility ("default")))
                   ^
coders/jp2.c:380:47: error: too few arguments to function call, expected 3, have 2
      opj_stream_set_user_data(jp2_stream,NULL);
      ~~~~~~~~~~~~~~~~~~~~~~~~                ^
/opt/local/include/openjpeg-2.1/openjpeg.h:1154:1: note: 'opj_stream_set_user_data' declared here
OPJ_API void OPJ_CALLCONV opj_stream_set_user_data (opj_stream_t* p_stream, void * p_data, opj_stream_free_user_data_fn p_function);
^
/opt/local/include/openjpeg-2.1/openjpeg.h:82:20: note: expanded from macro 'OPJ_API'
#define OPJ_API    __attribute__ ((visibility ("default")))
                   ^
coders/jp2.c:386:43: error: too few arguments to function call, expected 3, have 2
  opj_stream_set_user_data(jp2_stream,NULL);
  ~~~~~~~~~~~~~~~~~~~~~~~~                ^
/opt/local/include/openjpeg-2.1/openjpeg.h:1154:1: note: 'opj_stream_set_user_data' declared here
OPJ_API void OPJ_CALLCONV opj_stream_set_user_data (opj_stream_t* p_stream, void * p_data, opj_stream_free_user_data_fn p_function);
^
/opt/local/include/openjpeg-2.1/openjpeg.h:82:20: note: expanded from macro 'OPJ_API'
#define OPJ_API    __attribute__ ((visibility ("default")))
                   ^
coders/jp2.c:392:49: error: too few arguments to function call, expected 3, have 2
        opj_stream_set_user_data(jp2_stream,NULL);
        ~~~~~~~~~~~~~~~~~~~~~~~~                ^
/opt/local/include/openjpeg-2.1/openjpeg.h:1154:1: note: 'opj_stream_set_user_data' declared here
OPJ_API void OPJ_CALLCONV opj_stream_set_user_data (opj_stream_t* p_stream, void * p_data, opj_stream_free_user_data_fn p_function);
^
/opt/local/include/openjpeg-2.1/openjpeg.h:82:20: note: expanded from macro 'OPJ_API'
#define OPJ_API    __attribute__ ((visibility ("default")))
                   ^
coders/jp2.c:1031:44: error: too few arguments to function call, expected 3, have 2
  opj_stream_set_user_data(jp2_stream,image);
  ~~~~~~~~~~~~~~~~~~~~~~~~                 ^
/opt/local/include/openjpeg-2.1/openjpeg.h:1154:1: note: 'opj_stream_set_user_data' declared here
OPJ_API void OPJ_CALLCONV opj_stream_set_user_data (opj_stream_t* p_stream, void * p_data, opj_stream_free_user_data_fn p_function);
^
/opt/local/include/openjpeg-2.1/openjpeg.h:82:20: note: expanded from macro 'OPJ_API'
#define OPJ_API    __attribute__ ((visibility ("default")))
                   ^
coders/jp2.c:1040:47: error: too few arguments to function call, expected 3, have 2
      opj_stream_set_user_data(jp2_stream,NULL);
      ~~~~~~~~~~~~~~~~~~~~~~~~                ^
/opt/local/include/openjpeg-2.1/openjpeg.h:1154:1: note: 'opj_stream_set_user_data' declared here
OPJ_API void OPJ_CALLCONV opj_stream_set_user_data (opj_stream_t* p_stream, void * p_data, opj_stream_free_user_data_fn p_function);
^
/opt/local/include/openjpeg-2.1/openjpeg.h:82:20: note: expanded from macro 'OPJ_API'
#define OPJ_API    __attribute__ ((visibility ("default")))
                   ^
coders/jp2.c:1049:43: error: too few arguments to function call, expected 3, have 2
  opj_stream_set_user_data(jp2_stream,NULL);
  ~~~~~~~~~~~~~~~~~~~~~~~~                ^
/opt/local/include/openjpeg-2.1/openjpeg.h:1154:1: note: 'opj_stream_set_user_data' declared here
OPJ_API void OPJ_CALLCONV opj_stream_set_user_data (opj_stream_t* p_stream, void * p_data, opj_stream_free_user_data_fn p_function);
^
/opt/local/include/openjpeg-2.1/openjpeg.h:82:20: note: expanded from macro 'OPJ_API'
#define OPJ_API    __attribute__ ((visibility ("default")))
                   ^
1 warning and 9 errors generated.
make[2]: *** [coders/magick_libMagickCore_6_Q16_la-jp2.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
This is my compiler:

Code: Select all

p@mbp:svn.imagemagick.trunk > gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
Comparing these error messages with the ones I get when compiling SVN trunk, it doesn't look like the exact same thing. However, it seems somehow 'jp2.lo' is involved here as well. But more I'm not able to figure out.

Is there, possibly, anything wrong with my version of JPEG or JPEG-2000 ?
Post Reply