Compile IM in mingw + msys

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
erketre

Compile IM in mingw + msys

Post by erketre »

hello

I have a weird error while compiling ImageMagick-6.4.9-2 under mingw

the configure:

Code: Select all

../configure \
  --prefix=/d/xdev/im \
  --disable-shared \
  --with-ltdl-include=D:/xdev/gnu_static/include \
  --with-ltdl-lib=D:/xdev/gnu_static/lib \
  --with-quantum-depth=8 \
  --without-magick-plus-plus \
  --without-perl \
  --without-bzlib \
  --without-dps \
  --without-djvu \
  --without-fpx \
  --without-fontconfig \
  --without-freetype \
  --without-gslib \
  --without-gvc \
  --without-jbig \
  --without-jpeg \
  --without-jp2 \
  --without-lcms \
  --without-lqr \
  --without-openexr \
  --without-rsvg \
  --without-tiff
the error:

Code: Select all

...
...
/bin/sh ./libtool --silent --tag=CC   --mode=link gcc -std=gnu99  -g -O2 -Wall -W -module -avoid-version  -o ltdl/loadlibrary.la  ltdl/loaders/loadlibrary.lo
copying selected object files to avoid basename conflicts...
/bin/sh ./libtool --silent --tag=CC   --mode=link gcc -std=gnu99  -g -O2 -Wall -W -no-undefined -dlpreopen ltdl/loadlibrary.la   -o ltdl/libltdlc.la  ltdl/loaders/ltdl_libltdlc_la-preopen.lo ltdl/ltdl_libltdlc_la-lt__alloc.lo ltdl/ltdl_libltdlc_la-lt_dlloader.lo ltdl/ltdl_libltdlc_la-lt_error.lo ltdl/ltdl_libltdlc_la-ltdl.lo ltdl/ltdl_libltdlc_la-slist.lo
+2The system cannot find the file specified.
libltdlcS.c:25: error: `loadlibrary_LTX_get_vtable' undeclared here (not in a function)
libltdlcS.c:25: error: initializer element is not constant
libltdlcS.c:25: error: (near initialization for `lt_libltdlc_LTX_preloaded_symbols[2].address')
libltdlcS.c:25: warning: missing initializer
libltdlcS.c:25: warning: (near initialization for `lt_libltdlc_LTX_preloaded_symbols[2].address')
libltdlcS.c:25: error: initializer element is not constant
libltdlcS.c:25: error: (near initialization for `lt_libltdlc_LTX_preloaded_symbols[2]')
libltdlcS.c:26: error: initializer element is not constant
libltdlcS.c:26: error: (near initialization for `lt_libltdlc_LTX_preloaded_symbols[3]')
csmake[1]: *** [ltdl/libltdlc.la] Error 1
csmake[1]: Leaving directory `/d/xdev/cvsroot/ImageMagick-6.4.9-2/build'
csmake: *** [all] Error 2
I have all needed libraries (png, zlib, ltdl etc) - they are all static archives, so I don't know what for loadlibrary is compiling... Do you know how to fix it? or how to disable ltdl build?
Last edited by erketre on 2009-02-12T12:53:53-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Compile IM in mingw + msys

Post by magick »

Grab ImageMagick-6.4.9-4 from ftp://magick.imagemagick.org/pub/ImageMagick/beta in about an hour. We patched the configure script to fix the problem you reported.
erketre

Re: Compile IM in mingw + msys

Post by erketre »

Compiling beta ImageMagick-6.4.9-5... no change, the same error.

Am I doing something wrong? Maybe some additional CPP flags are needed?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Compile IM in mingw + msys

Post by magick »

What happens if you remove
  • --with-ltdl-include=D:/xdev/gnu_static/include \
    --with-ltdl-lib=D:/xdev/gnu_static/lib \
from the configure command line?

Be sure to perform a clean to be safe:
  • ./configure ...
    make clean
    make
In the mean-time we'll set up a MinGW environment and see if we can reproduce the problem.
erketre

Re: Compile IM in mingw + msys

Post by erketre »

magick wrote:What happens if you remove
  • --with-ltdl-include=D:/xdev/gnu_static/include \
    --with-ltdl-lib=D:/xdev/gnu_static/lib \
from the configure command line?
Actually I added these options due to the error... OK I will try with new version, but I'm afraid It won't help
magick wrote:In the mean-time we'll set up a MinGW environment and see if we can reproduce the problem.
OO nice. I'm using gcc 3.4.5, latest mingw make (but also csmake and make from msys - they sometimes work better), latest winapi 3.13
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Compile IM in mingw + msys

Post by magick »

MinGW produced an error about not being about to copy MinGW-5.4.exe. MSYS installed but when we click on the icon, a window appears and exits with a message that goes by too fast to read. We have an XP system. Are there any special tricks to getting this environment working?
erketre

Re: Compile IM in mingw + msys

Post by erketre »

Well, I avoid use of installers if I can... The best is to download needed packages from http://sourceforge.net/project/showfile ... up_id=2435
and run:
# bash.exe -l -i

As I suspected:

Code: Select all

...
...
mv -f ltdl/.deps/ltdl_libltdlc_la-slist.Tpo ltdl/.deps/ltdl_libltdlc_la-slist.Plo
/bin/sh ./libtool --silent --tag=CC   --mode=link gcc -std=gnu99  -g -O2 -Wall -W -no-undefined -dlpreopen ltdl/loadlibrary.la   -o ltdl/libltdlc.la  ltdl/loaders/ltdl_libltdlc_la-preopen.lo ltdl/ltdl_libltdlc_la-lt__alloc.lo ltdl/ltdl_libltdlc_la-lt_dlloader.lo ltdl/ltdl_libltdlc_la-lt_error.lo ltdl/ltdl_libltdlc_la-ltdl.lo ltdl/ltdl_libltdlc_la-slist.lo
+2The system cannot find the file specified.
libltdlcS.c:25: error: `loadlibrary_LTX_get_vtable' undeclared here (not in a function)
libltdlcS.c:25: error: initializer element is not constant
libltdlcS.c:25: error: (near initialization for `lt_libltdlc_LTX_preloaded_symbols[2].address')
libltdlcS.c:25: warning: missing initializer
libltdlcS.c:25: warning: (near initialization for `lt_libltdlc_LTX_preloaded_symbols[2].address')
libltdlcS.c:25: error: initializer element is not constant
libltdlcS.c:25: error: (near initialization for `lt_libltdlc_LTX_preloaded_symbols[2]')
libltdlcS.c:26: error: initializer element is not constant
libltdlcS.c:26: error: (near initialization for `lt_libltdlc_LTX_preloaded_symbols[3]')
make_[1]: *** [ltdl/libltdlc.la] Error 1
make_[1]: Leaving directory `/d/xdev/cvsroot/ImageMagick-6.4.9-2/build'
make_: *** [all] Error 2
But what is the 5th line? Maybe it's causing the problem. mv is a command from msys...
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Compile IM in mingw + msys

Post by magick »

The libtool loader should not be built if the --disable-shared option is used. On our Fedora systems it does not get built as expected. What happens if you get beyond this error. Try
  • make -k -i
to ignore errors. Does the ImageMagick command line tools build properly?
erketre

Re: Compile IM in mingw + msys

Post by erketre »

more or less... no executable is created:

Code: Select all

        mv -f $depbase.Tpo $depbase.Po
/bin/sh ./libtool --silent --tag=CC   --mode=link gcc -std=gnu99  -g -O2 -Wall -W   -o utilities/montage.exe utilities/montage.o magick/libMagickCore.la wand/libMagickWand.la
ld: cannot find -lpng
csmake[1]: [utilities/montage.exe] Error 1 (ignored)
depbase=`echo utilities/stream.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I./config  -I. -I.. -DLT_CONFIG_H='<config/config.h>' -DLTDL -I. -I.. -Iltdl -I../ltdl -I../ltdl/libltdl -I../Magick++/lib -D_LIB -D_MT  -g -O2 -Wall -W -MT utilities/stream.o -MD -MP -MF $depbase.Tpo -c -o utilities/stream.o ../utilities/stream.c &&\
        mv -f $depbase.Tpo $depbase.Po
/bin/sh ./libtool --silent --tag=CC   --mode=link gcc -std=gnu99  -g -O2 -Wall -W   -o utilities/stream.exe utilities/stream.o magick/libMagickCore.la wand/libMagickWand.la
ld: cannot find -lpng
csmake[1]: [utilities/stream.exe] Error 1 (ignored)
csmake[1]: Leaving directory `/d/xdev/cvsroot/ImageMagick-6.4.9-2/build'
++> 20:25:45 /d/xdev/cvsroot/ImageMagick-6.4.9-2/build
$ echo $LIBRARY_PATH
D:\msys\mingw\lib;D:\xdev\w32api\lib;D:\xdev\gnu_static\lib
++> 20:28:14 /d/xdev/cvsroot/ImageMagick-6.4.9-2/build
$

Code: Select all

$ ls D:/xdev/gnu_static/lib
libcharset.a  libfontconfig.a  libgd.a     libjpeg.a  libltdl.dll.a  libpng.a   libz.a
libexpat.a    libfreetype.a    libiconv.a  libltdl.a  libltdl.la     libxml2.a  pkgconfig/
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Compile IM in mingw + msys

Post by magick »

Stand by. We have the MSYS environment up and we are trying to reproduce the problem now.
erketre

Re: Compile IM in mingw + msys

Post by erketre »

I hate this libtool, I'm sure it causes the error.

now it says:

Code: Select all

ld: cannot find -lpng
in configure it was OK! So how did he tested libpng?

Does it looks for libpng.a (archive) or this funny, useless libpng.la (witch I always delete...) or maybe it uses pkg-config settings?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Compile IM in mingw + msys

Post by magick »

Hmmm... the build worked for us. First we had to change the line at magick/utility.c/1079 to
  • #if !defined(MAGICKCORE_HAVE__WFOPEN) || defined(__MINGW32__)
then use these commands:
  • tar xvfz ImageMagick-6.4.9-4.tar.gz
    cd ImageMagick-6.4.9-4
    ./configure --disable-shared
    make
    make install
ImageMagick compiled, linked, and installed without complaint. We're using gcc 3.5.

See if these commands work for you before you integrate delegate libraries such as PNG.
erketre

Re: Compile IM in mingw + msys

Post by erketre »

No, it doesn't help me, still:`loadlibrary_LTX_get_vtable' undeclared.... and ld: cannot find -lgdi32 later

I give up :(
erketre

Re: Compile IM in mingw + msys

Post by erketre »

Maybe it's not so bad. libMagickCore.a and libMagickWand.a are created and still usable! I can link it in my app
olear
Posts: 58
Joined: 2015-05-24T10:56:42-07:00
Authentication code: 6789

Re: Compile IM in mingw + msys

Post by olear »

Been broken in MINGW/MSYS since 6.9:
==============================================================================
ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

Host system type: x86_64-pc-mingw64
Build system type: x86_64-pc-mingw64

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

Install documentation: yes

Delegate Library Configuration:
BZLIB --with-bzlib=yes yes
Autotrace --with-autotrace=no no
DJVU --with-djvu=yes no
DPS --with-dps=yes no
FFTW --with-fftw=yes no
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=yes yes
FreeType --with-freetype=yes yes
Ghostscript lib --with-gslib=no no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
LCMS --with-lcms=yes yes
LQR --with-lqr=yes no
LTDL --with-ltdl=yes no
LZMA --with-lzma=yes yes
Magick++ --with-magick-plus-plus=yes yes
OpenEXR --with-openexr=yes yes
OpenJP2 --with-openjp2=yes no
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
WMF --with-wmf=yes no
X11 --with-x= no
XML --with-xml=yes yes
ZLIB --with-zlib=yes yes

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

Font Configuration:
Apple fonts --with-apple-font-dir=default none
Dejavu fonts --with-dejavu-font-dir=default none
Ghostscript fonts --with-gs-font-dir=default none
Windows fonts --with-windows-font-dir=default none

X11 Configuration:
X_CFLAGS =
X_PRE_LIBS =
X_LIBS =
X_EXTRA_LIBS =

Options used to compile and link:
PREFIX = /mingw64
EXEC-PREFIX = /mingw64
VERSION = 6.9.1
CC = gcc
CFLAGS = -IC:/msys64/mingw64/include/libxml2 -IC:/msys64/mingw64/include/libpng16 -mms-bitfields -IC:/msys64/mingw64/include/pango-1.0 -IC:/msys64/mingw64/include/cairo -IC:/msys64/mingw64/include/pixman-1 -IC:/msys64/mingw64/include -I/mingw64/include/freetype2 -I/mingw64/include/libpng16 -I/mingw64/include/harfbuzz -I/mingw64/include/glib-2.0 -I/mingw64/lib/glib-2.0/include -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/freetype2 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/harfbuzz -IC:/msys64/mingw64/include/glib-2.0 -IC:/msys64/mingw64/lib/glib-2.0/include -IC:/msys64/mingw64/include/libpng16 -pthread -IC:/msys64/mingw64/include/OpenEXR -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include -mms-bitfields -IC:/msys64/mingw64/include/freetype2 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/libpng16 -IC:/msys64/mingw64/include/harfbuzz -IC:/msys64/mingw64/include/glib-2.0 -IC:/msys64/mingw64/lib/glib-2.0/include -mms-bitfields -IC:/msys64/mingw64/include -I/mingw64/include/freetype2 -I/mingw64/include/libpng16 -I/mingw64/include/harfbuzz -I/mingw64/include/glib-2.0 -I/mingw64/lib/glib-2.0/include -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/freetype2 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/libpng16 -IC:/msys64/mingw64/include/harfbuzz -IC:/msys64/mingw64/include/glib-2.0 -IC:/msys64/mingw64/lib/glib-2.0/include -IC:/msys64/mingw64/include -fopenmp -g -O2 -Wall -mtune=core2 -fexceptions -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
CPPFLAGS = -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -D_DLL -D_MT
PCFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS =
LIBS =
CXX = g++
CXXFLAGS = -g -O2
FEATURES = Cipher OpenMP
DELEGATES = bzlib mpeg fontconfig freetype jng jpeg lcms lzma openexr pango png ps tiff webp xml zlib
==============================================================================

make all-am
make[1]: Entering directory '/home/olear/Natron/tools/Windows/ImageMagick-6.9.1-10'
CC magick/magick_libMagickCore_6_Q16_la-accelerate.lo
CC magick/magick_libMagickCore_6_Q16_la-animate.lo
CC magick/magick_libMagickCore_6_Q16_la-annotate.lo
CC magick/magick_libMagickCore_6_Q16_la-artifact.lo
CC magick/magick_libMagickCore_6_Q16_la-attribute.lo
CC magick/magick_libMagickCore_6_Q16_la-blob.lo
CC magick/magick_libMagickCore_6_Q16_la-cache.lo
CC magick/magick_libMagickCore_6_Q16_la-cache-view.lo
CC magick/magick_libMagickCore_6_Q16_la-channel.lo
CC magick/magick_libMagickCore_6_Q16_la-cipher.lo
CC magick/magick_libMagickCore_6_Q16_la-client.lo
CC magick/magick_libMagickCore_6_Q16_la-coder.lo
CC magick/magick_libMagickCore_6_Q16_la-color.lo
CC magick/magick_libMagickCore_6_Q16_la-colormap.lo
CC magick/magick_libMagickCore_6_Q16_la-colorspace.lo
CC magick/magick_libMagickCore_6_Q16_la-compare.lo
CC magick/magick_libMagickCore_6_Q16_la-composite.lo
CC magick/magick_libMagickCore_6_Q16_la-compress.lo
CC magick/magick_libMagickCore_6_Q16_la-configure.lo
CC magick/magick_libMagickCore_6_Q16_la-constitute.lo
CC magick/magick_libMagickCore_6_Q16_la-decorate.lo
CC magick/magick_libMagickCore_6_Q16_la-distribute-cache.lo
magick/distribute-cache.c: In function 'dpc_read':
magick/distribute-cache.c:157:11: warning: implicit declaration of function 'recv' [-Wimplicit-function-declaration]
count=recv(file,CHAR_TYPE_CAST message+i,(size_t) MagickMin(length-i,
^
magick/distribute-cache.c: In function 'ConnectPixelCacheServer':
magick/distribute-cache.c:93:21: error: unknown type name 'SOCKET'
#define SOCKET_TYPE SOCKET
^
magick/distribute-cache.c:182:3: note: in expansion of macro 'SOCKET_TYPE'
SOCKET_TYPE
^
magick/distribute-cache.c:189:5: error: storage size of 'hint' isn't known
hint,
^
magick/distribute-cache.c:210:18: error: 'AF_INET' undeclared (first use in this function)
hint.ai_family=AF_INET;
^
magick/distribute-cache.c:210:18: note: each undeclared identifier is reported only once for each function it appears in
magick/distribute-cache.c:211:20: error: 'SOCK_STREAM' undeclared (first use in this function)
hint.ai_socktype=SOCK_STREAM;
^
magick/distribute-cache.c:212:17: error: 'AI_PASSIVE' undeclared (first use in this function)
hint.ai_flags=AI_PASSIVE;
^
magick/distribute-cache.c:214:10: warning: implicit declaration of function 'getaddrinfo' [-Wimplicit-function-declaration]
status=getaddrinfo(hostname,service,&hint,&result);
^
magick/distribute-cache.c:221:17: warning: implicit declaration of function 'socket' [-Wimplicit-function-declaration]
client_socket=socket(result->ai_family,result->ai_socktype,
^
magick/distribute-cache.c:221:30: error: dereferencing pointer to incomplete type 'struct addrinfo'
client_socket=socket(result->ai_family,result->ai_socktype,
^
magick/distribute-cache.c:225:7: warning: implicit declaration of function 'freeaddrinfo' [-Wimplicit-function-declaration]
freeaddrinfo(result);
^
magick/distribute-cache.c:230:10: warning: implicit declaration of function 'connect' [-Wimplicit-function-declaration]
status=connect(client_socket,result->ai_addr,result->ai_addrlen);
^
magick/distribute-cache.c:90:37: warning: implicit declaration of function 'closesocket' [-Wimplicit-function-declaration]
#define CLOSE_SOCKET(socket) (void) closesocket(socket)
^
magick/distribute-cache.c:233:7: note: in expansion of macro 'CLOSE_SOCKET'
CLOSE_SOCKET(client_socket);
^
magick/distribute-cache.c:93:21: error: 'SOCKET' undeclared (first use in this function)
#define SOCKET_TYPE SOCKET
^
magick/distribute-cache.c:253:22: note: in expansion of macro 'SOCKET_TYPE'
client_socket=(SOCKET_TYPE) (-1);
^
magick/distribute-cache.c:189:5: warning: unused variable 'hint' [-Wunused-variable]
hint,
^
magick/distribute-cache.c: In function 'dpc_send':
magick/distribute-cache.c:451:30: warning: implicit declaration of function 'send' [-Wimplicit-function-declaration]
count=(MagickOffsetType) send(file,CHAR_TYPE_CAST message+i,(size_t) MagickMin(length-i,
^
magick/distribute-cache.c: In function 'DistributePixelCacheClient':
magick/distribute-cache.c:93:21: error: unknown type name 'SOCKET'
#define SOCKET_TYPE SOCKET
^
magick/distribute-cache.c:776:3: note: in expansion of macro 'SOCKET_TYPE'
SOCKET_TYPE
^
magick/distribute-cache.c: In function 'DistributePixelCacheServer':
magick/distribute-cache.c:93:21: error: unknown type name 'SOCKET'
#define SOCKET_TYPE SOCKET
^
magick/distribute-cache.c:897:3: note: in expansion of macro 'SOCKET_TYPE'
SOCKET_TYPE
^
magick/distribute-cache.c:901:5: error: storage size of 'hint' isn't known
hint,
^
magick/distribute-cache.c:905:5: error: storage size of 'address' isn't known
address;
^
magick/distribute-cache.c:915:18: error: 'AF_INET' undeclared (first use in this function)
hint.ai_family=AF_INET;
^
magick/distribute-cache.c:916:20: error: 'SOCK_STREAM' undeclared (first use in this function)
hint.ai_socktype=SOCK_STREAM;
^
magick/distribute-cache.c:917:17: error: 'AI_PASSIVE' undeclared (first use in this function)
hint.ai_flags=AI_PASSIVE;
^
magick/distribute-cache.c:93:21: error: 'SOCKET' undeclared (first use in this function)
#define SOCKET_TYPE SOCKET
^
magick/distribute-cache.c:922:18: note: in expansion of macro 'SOCKET_TYPE'
server_socket=(SOCKET_TYPE) 0;
^
magick/distribute-cache.c:922:31: error: expected ';' before numeric constant
server_socket=(SOCKET_TYPE) 0;
^
magick/distribute-cache.c:923:52: error: dereferencing pointer to incomplete type 'struct addrinfo'
for (p=result; p != (struct addrinfo *) NULL; p=p->ai_next)
^
magick/distribute-cache.c:932:12: warning: implicit declaration of function 'setsockopt' [-Wimplicit-function-declaration]
status=setsockopt(server_socket,SOL_SOCKET,SO_REUSEADDR,
^
magick/distribute-cache.c:932:37: error: 'SOL_SOCKET' undeclared (first use in this function)
status=setsockopt(server_socket,SOL_SOCKET,SO_REUSEADDR,
^
magick/distribute-cache.c:932:48: error: 'SO_REUSEADDR' undeclared (first use in this function)
status=setsockopt(server_socket,SOL_SOCKET,SO_REUSEADDR,
^
magick/distribute-cache.c:933:28: error: 'socklen_t' undeclared (first use in this function)
CHAR_TYPE_CAST &one,(socklen_t) sizeof(one));
^
magick/distribute-cache.c:933:39: error: expected ')' before 'sizeof'
CHAR_TYPE_CAST &one,(socklen_t) sizeof(one));
^
magick/distribute-cache.c:939:12: warning: implicit declaration of function 'bind' [-Wimplicit-function-declaration]
status=bind(server_socket,p->ai_addr,p->ai_addrlen);
^
magick/distribute-cache.c:950:10: warning: implicit declaration of function 'listen' [-Wimplicit-function-declaration]
status=listen(server_socket,DPCPendingConnections);
^
magick/distribute-cache.c:959:7: error: expected ';' before 'client_socket'
client_socket;
^
magick/distribute-cache.c:962:7: error: expected ';' before 'length'
length;
^
magick/distribute-cache.c:964:5: error: 'length' undeclared (first use in this function)
length=(socklen_t) sizeof(address);
^
magick/distribute-cache.c:964:24: error: expected ';' before 'sizeof'
length=(socklen_t) sizeof(address);
^
magick/distribute-cache.c:965:5: error: 'client_socket' undeclared (first use in this function)
client_socket=accept(server_socket,(struct sockaddr *) &address,&length);
^
magick/distribute-cache.c:965:19: warning: implicit declaration of function 'accept' [-Wimplicit-function-declaration]
client_socket=accept(server_socket,(struct sockaddr *) &address,&length);
^
magick/distribute-cache.c:969:48: warning: passing argument 3 of 'pthread_create' from incompatible pointer type [-Wincompatible-pointer-types]
status=pthread_create(&threads,&attributes,DistributePixelCacheClient,
^
In file included from ./magick/studio.h:121:0,
from magick/distribute-cache.c:54:
C:/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:314:26: note: expected 'void * (*)(void *)' but argument is of type 'DWORD (*)(void *) {aka long unsigned int (*)(void *)}'
int WINPTHREAD_API pthread_create(pthread_t *th, const pthread_attr_t *attr, void *(* func)(void *), void *arg);
^
magick/distribute-cache.c:905:5: warning: unused variable 'address' [-Wunused-variable]
address;
^
magick/distribute-cache.c:901:5: warning: unused variable 'hint' [-Wunused-variable]
hint,
^
Makefile:8534: recipe for target 'magick/magick_libMagickCore_6_Q16_la-distribute-cache.lo' failed
make[1]: *** [magick/magick_libMagickCore_6_Q16_la-distribute-cache.lo] Error 1
make[1]: Leaving directory '/home/olear/Natron/tools/Windows/ImageMagick-6.9.1-10'
Makefile:5198: recipe for target 'all' failed
make: *** [all] Error 2


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

Host system type: x86_64-pc-mingw64
Build system type: x86_64-pc-mingw64

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

Install documentation: yes

Delegate Library Configuration:
BZLIB --with-bzlib=yes yes
Autotrace --with-autotrace=no no
DJVU --with-djvu=yes no
DPS --with-dps=yes no
FFTW --with-fftw=yes no
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=yes yes
FreeType --with-freetype=yes yes
Ghostscript lib --with-gslib=no no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
LCMS --with-lcms=yes yes
LQR --with-lqr=yes no
LTDL --with-ltdl=yes no
LZMA --with-lzma=yes yes
Magick++ --with-magick-plus-plus=yes yes
OpenEXR --with-openexr=yes yes
OpenJP2 --with-openjp2=yes no
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
WMF --with-wmf=yes no
X11 --with-x= no
XML --with-xml=yes yes
ZLIB --with-zlib=yes yes

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

Font Configuration:
Apple fonts --with-apple-font-dir=default none
Dejavu fonts --with-dejavu-font-dir=default none
Ghostscript fonts --with-gs-font-dir=default none
Windows fonts --with-windows-font-dir=default none

X11 Configuration:
X_CFLAGS =
X_PRE_LIBS =
X_LIBS =
X_EXTRA_LIBS =

Options used to compile and link:
PREFIX = /mingw64
EXEC-PREFIX = /mingw64
VERSION = 6.9.2
CC = gcc
CFLAGS = -IC:/msys64/mingw64/include/libxml2 -IC:/msys64/mingw64/include/libpng16 -mms-bitfields -IC:/msys64/mingw64/include/pango-1.0 -IC:/msys64/mingw64/include/cairo -IC:/msys64/mingw64/include/pixman-1 -IC:/msys64/mingw64/include -I/mingw64/include/freetype2 -I/mingw64/include/libpng16 -I/mingw64/include/harfbuzz -I/mingw64/include/glib-2.0 -I/mingw64/lib/glib-2.0/include -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/freetype2 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/harfbuzz -IC:/msys64/mingw64/include/glib-2.0 -IC:/msys64/mingw64/lib/glib-2.0/include -IC:/msys64/mingw64/include/libpng16 -pthread -IC:/msys64/mingw64/include/OpenEXR -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include -mms-bitfields -IC:/msys64/mingw64/include/freetype2 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/libpng16 -IC:/msys64/mingw64/include/harfbuzz -IC:/msys64/mingw64/include/glib-2.0 -IC:/msys64/mingw64/lib/glib-2.0/include -mms-bitfields -IC:/msys64/mingw64/include -I/mingw64/include/freetype2 -I/mingw64/include/libpng16 -I/mingw64/include/harfbuzz -I/mingw64/include/glib-2.0 -I/mingw64/lib/glib-2.0/include -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/freetype2 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/libpng16 -IC:/msys64/mingw64/include/harfbuzz -IC:/msys64/mingw64/include/glib-2.0 -IC:/msys64/mingw64/lib/glib-2.0/include -IC:/msys64/mingw64/include -fopenmp -g -O2 -Wall -mtune=core2 -fexceptions -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
CPPFLAGS = -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -D_DLL -D_MT
PCFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS =
LIBS =
CXX = g++
CXXFLAGS = -g -O2
FEATURES = Cipher OpenMP
DELEGATES = bzlib mpeg fontconfig freetype jng jpeg lcms lzma openexr pango png ps tiff webp xml zlib
==============================================================================

make all-am
make[1]: Entering directory '/home/olear/Natron/tools/Windows/ImageMagick-6.9.2-8'
CC magick/magick_libMagickCore_6_Q16_la-accelerate.lo
CC magick/magick_libMagickCore_6_Q16_la-animate.lo
CC magick/magick_libMagickCore_6_Q16_la-annotate.lo
CC magick/magick_libMagickCore_6_Q16_la-artifact.lo
CC magick/magick_libMagickCore_6_Q16_la-attribute.lo
CC magick/magick_libMagickCore_6_Q16_la-blob.lo
CC magick/magick_libMagickCore_6_Q16_la-cache.lo
CC magick/magick_libMagickCore_6_Q16_la-cache-view.lo
CC magick/magick_libMagickCore_6_Q16_la-channel.lo
CC magick/magick_libMagickCore_6_Q16_la-cipher.lo
CC magick/magick_libMagickCore_6_Q16_la-client.lo
CC magick/magick_libMagickCore_6_Q16_la-coder.lo
CC magick/magick_libMagickCore_6_Q16_la-color.lo
CC magick/magick_libMagickCore_6_Q16_la-colormap.lo
CC magick/magick_libMagickCore_6_Q16_la-colorspace.lo
CC magick/magick_libMagickCore_6_Q16_la-compare.lo
CC magick/magick_libMagickCore_6_Q16_la-composite.lo
CC magick/magick_libMagickCore_6_Q16_la-compress.lo
CC magick/magick_libMagickCore_6_Q16_la-configure.lo
CC magick/magick_libMagickCore_6_Q16_la-constitute.lo
CC magick/magick_libMagickCore_6_Q16_la-decorate.lo
CC magick/magick_libMagickCore_6_Q16_la-distribute-cache.lo
magick/distribute-cache.c: In function 'dpc_read':
magick/distribute-cache.c:164:11: warning: implicit declaration of function 'recv' [-Wimplicit-function-declaration]
count=recv(file,CHAR_TYPE_CAST message+i,(LENGTH_TYPE) MagickMin(length-i,
^
magick/distribute-cache.c: In function 'ConnectPixelCacheServer':
magick/distribute-cache.c:94:21: error: unknown type name 'SOCKET'
#define SOCKET_TYPE SOCKET
^
magick/distribute-cache.c:189:3: note: in expansion of macro 'SOCKET_TYPE'
SOCKET_TYPE
^
magick/distribute-cache.c:196:5: error: storage size of 'hint' isn't known
hint,
^
magick/distribute-cache.c:217:18: error: 'AF_INET' undeclared (first use in this function)
hint.ai_family=AF_INET;
^
magick/distribute-cache.c:217:18: note: each undeclared identifier is reported only once for each function it appears in
magick/distribute-cache.c:218:20: error: 'SOCK_STREAM' undeclared (first use in this function)
hint.ai_socktype=SOCK_STREAM;
^
magick/distribute-cache.c:219:17: error: 'AI_PASSIVE' undeclared (first use in this function)
hint.ai_flags=AI_PASSIVE;
^
magick/distribute-cache.c:221:10: warning: implicit declaration of function 'getaddrinfo' [-Wimplicit-function-declaration]
status=getaddrinfo(hostname,service,&hint,&result);
^
magick/distribute-cache.c:228:17: warning: implicit declaration of function 'socket' [-Wimplicit-function-declaration]
client_socket=socket(result->ai_family,result->ai_socktype,
^
magick/distribute-cache.c:228:30: error: dereferencing pointer to incomplete type 'struct addrinfo'
client_socket=socket(result->ai_family,result->ai_socktype,
^
magick/distribute-cache.c:232:7: warning: implicit declaration of function 'freeaddrinfo' [-Wimplicit-function-declaration]
freeaddrinfo(result);
^
magick/distribute-cache.c:237:10: warning: implicit declaration of function 'connect' [-Wimplicit-function-declaration]
status=connect(client_socket,result->ai_addr,(socklen_t) result->ai_addrlen);
^
magick/distribute-cache.c:237:49: error: 'socklen_t' undeclared (first use in this function)
status=connect(client_socket,result->ai_addr,(socklen_t) result->ai_addrlen);
^
magick/distribute-cache.c:237:60: error: expected ')' before 'result'
status=connect(client_socket,result->ai_addr,(socklen_t) result->ai_addrlen);
^
magick/distribute-cache.c:91:37: warning: implicit declaration of function 'closesocket' [-Wimplicit-function-declaration]
#define CLOSE_SOCKET(socket) (void) closesocket(socket)
^
magick/distribute-cache.c:240:7: note: in expansion of macro 'CLOSE_SOCKET'
CLOSE_SOCKET(client_socket);
^
magick/distribute-cache.c:94:21: error: 'SOCKET' undeclared (first use in this function)
#define SOCKET_TYPE SOCKET
^
magick/distribute-cache.c:260:22: note: in expansion of macro 'SOCKET_TYPE'
client_socket=(SOCKET_TYPE) (-1);
^
magick/distribute-cache.c:196:5: warning: unused variable 'hint' [-Wunused-variable]
hint,
^
magick/distribute-cache.c: In function 'dpc_send':
magick/distribute-cache.c:458:30: warning: implicit declaration of function 'send' [-Wimplicit-function-declaration]
count=(MagickOffsetType) send(file,CHAR_TYPE_CAST message+i,(LENGTH_TYPE)
^
magick/distribute-cache.c: In function 'DistributePixelCacheClient':
magick/distribute-cache.c:94:21: error: unknown type name 'SOCKET'
#define SOCKET_TYPE SOCKET
^
magick/distribute-cache.c:783:3: note: in expansion of macro 'SOCKET_TYPE'
SOCKET_TYPE
^
magick/distribute-cache.c: In function 'DistributePixelCacheServer':
magick/distribute-cache.c:94:21: error: unknown type name 'SOCKET'
#define SOCKET_TYPE SOCKET
^
magick/distribute-cache.c:904:3: note: in expansion of macro 'SOCKET_TYPE'
SOCKET_TYPE
^
magick/distribute-cache.c:908:5: error: storage size of 'hint' isn't known
hint,
^
magick/distribute-cache.c:912:5: error: storage size of 'address' isn't known
address;
^
magick/distribute-cache.c:922:18: error: 'AF_INET' undeclared (first use in this function)
hint.ai_family=AF_INET;
^
magick/distribute-cache.c:923:20: error: 'SOCK_STREAM' undeclared (first use in this function)
hint.ai_socktype=SOCK_STREAM;
^
magick/distribute-cache.c:924:17: error: 'AI_PASSIVE' undeclared (first use in this function)
hint.ai_flags=AI_PASSIVE;
^
magick/distribute-cache.c:94:21: error: 'SOCKET' undeclared (first use in this function)
#define SOCKET_TYPE SOCKET
^
magick/distribute-cache.c:929:18: note: in expansion of macro 'SOCKET_TYPE'
server_socket=(SOCKET_TYPE) 0;
^
magick/distribute-cache.c:929:31: error: expected ';' before numeric constant
server_socket=(SOCKET_TYPE) 0;
^
magick/distribute-cache.c:930:52: error: dereferencing pointer to incomplete type 'struct addrinfo'
for (p=result; p != (struct addrinfo *) NULL; p=p->ai_next)
^
magick/distribute-cache.c:939:12: warning: implicit declaration of function 'setsockopt' [-Wimplicit-function-declaration]
status=setsockopt(server_socket,SOL_SOCKET,SO_REUSEADDR,
^
magick/distribute-cache.c:939:37: error: 'SOL_SOCKET' undeclared (first use in this function)
status=setsockopt(server_socket,SOL_SOCKET,SO_REUSEADDR,
^
magick/distribute-cache.c:939:48: error: 'SO_REUSEADDR' undeclared (first use in this function)
status=setsockopt(server_socket,SOL_SOCKET,SO_REUSEADDR,
^
magick/distribute-cache.c:940:28: error: 'socklen_t' undeclared (first use in this function)
CHAR_TYPE_CAST &one,(socklen_t) sizeof(one));
^
magick/distribute-cache.c:940:39: error: expected ')' before 'sizeof'
CHAR_TYPE_CAST &one,(socklen_t) sizeof(one));
^
magick/distribute-cache.c:946:12: warning: implicit declaration of function 'bind' [-Wimplicit-function-declaration]
status=bind(server_socket,p->ai_addr,(socklen_t) p->ai_addrlen);
^
magick/distribute-cache.c:946:54: error: expected ')' before 'p'
status=bind(server_socket,p->ai_addr,(socklen_t) p->ai_addrlen);
^
magick/distribute-cache.c:957:10: warning: implicit declaration of function 'listen' [-Wimplicit-function-declaration]
status=listen(server_socket,DPCPendingConnections);
^
magick/distribute-cache.c:966:7: error: expected ';' before 'client_socket'
client_socket;
^
magick/distribute-cache.c:969:7: error: expected ';' before 'length'
length;
^
magick/distribute-cache.c:971:5: error: 'length' undeclared (first use in this function)
length=(socklen_t) sizeof(address);
^
magick/distribute-cache.c:971:24: error: expected ';' before 'sizeof'
length=(socklen_t) sizeof(address);
^
magick/distribute-cache.c:972:5: error: 'client_socket' undeclared (first use in this function)
client_socket=accept(server_socket,(struct sockaddr *) &address,&length);
^
magick/distribute-cache.c:972:19: warning: implicit declaration of function 'accept' [-Wimplicit-function-declaration]
client_socket=accept(server_socket,(struct sockaddr *) &address,&length);
^
magick/distribute-cache.c:976:48: warning: passing argument 3 of 'pthread_create' from incompatible pointer type [-Wincompatible-pointer-types]
status=pthread_create(&threads,&attributes,DistributePixelCacheClient,
^
In file included from ./magick/studio.h:125:0,
from magick/distribute-cache.c:54:
C:/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:314:26: note: expected 'void * (*)(void *)' but argument is of type 'DWORD (*)(void *) {aka long unsigned int (*)(void *)}'
int WINPTHREAD_API pthread_create(pthread_t *th, const pthread_attr_t *attr, void *(* func)(void *), void *arg);
^
magick/distribute-cache.c:912:5: warning: unused variable 'address' [-Wunused-variable]
address;
^
magick/distribute-cache.c:908:5: warning: unused variable 'hint' [-Wunused-variable]
hint,
^
Makefile:8514: recipe for target 'magick/magick_libMagickCore_6_Q16_la-distribute-cache.lo' failed
make[1]: *** [magick/magick_libMagickCore_6_Q16_la-distribute-cache.lo] Error 1
make[1]: Leaving directory '/home/olear/Natron/tools/Windows/ImageMagick-6.9.2-8'
Makefile:5180: recipe for target 'all' failed
make: *** [all] Error 2
6.8.9-10 is the last working version here.
Post Reply