[Pkg-gmagick-im-team] Compile pstoedit with ImageMagick from experimental

J.H.M. Dassen (Ray) jdassen at debian.org
Sun Jun 8 16:18:01 UTC 2008


On Mon, May 19, 2008 at 18:23:03 -0300, Nelson A. de Oliveira wrote:
> Is it possible to you test the building of your package with the new
> ImageMagick libraries and see if it builds and works as expected, please?

pstoedit does not build for me against the new ImageMagick packages on
amd64:

[tail of "debian/rules binary" build attempt]
if /bin/sh ../libtool --tag=CXX --mode=compile c++ -Wl,--as-needed -Wl,-O1 -DPACKAGE_NAME=\"pstoedit\" -DPACKAGE_TARNAME=\"pstoedit\" -DPACKAGE_VERSION=\"3.45\" -DPACKAGE_STRING=\"pstoedit\ 3.45\" -DPACKAGE_BUGREPORT=\"wglunz34_AT_pstoedit.net\" -DPACKAGE=\"pstoedit\" -DVERSION=\"3.45\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_DIRENT_H=1 -I. -I.  -DHAVE_LIBPLOTTER  -DHAVE_MKSTEMP -DHAVE_MAGIC -fopenmp -I/usr/include/ImageMagick    -DHAVE_LIBPNG -DDEFAULTGS=/usr/bin/gs -DPSTOEDITDATADIR="\"/usr/share/pstoedit\"" -DPSTOEDITLIBDIR="\"/usr/lib/pstoedit\"" -DBUGGYGPP -pedantic -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith  -D_LITTLE_ENDIAN  -g -MT drvmagick++.lo -MD -MP -MF ".deps/drvmagick++.Tpo" -c -o drvmagick++.lo drvmagick++.cpp; \
	then mv -f ".deps/drvmagick++.Tpo" ".deps/drvmagick++.Plo"; else rm -f ".deps/drvmagick++.Tpo"; exit 1; fi
 c++ -Wl,--as-needed -Wl,-O1 -DPACKAGE_NAME=\"pstoedit\" -DPACKAGE_TARNAME=\"pstoedit\" -DPACKAGE_VERSION=\"3.45\" "-DPACKAGE_STRING=\"pstoedit 3.45\"" -DPACKAGE_BUGREPORT=\"wglunz34_AT_pstoedit.net\" -DPACKAGE=\"pstoedit\" -DVERSION=\"3.45\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_DIRENT_H=1 -I. -I. -DHAVE_LIBPLOTTER -DHAVE_MKSTEMP -DHAVE_MAGIC -fopenmp -I/usr/include/ImageMagick -DHAVE_LIBPNG -DDEFAULTGS=/usr/bin/gs -DPSTOEDITDATADIR=\"/usr/share/pstoedit\" -DPSTOEDITLIBDIR=\"/usr/lib/pstoedit\" -DBUGGYGPP -pedantic -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -D_LITTLE_ENDIAN -g -MT drvmagick++.lo -MD -MP -MF .deps/drvmagick++.Tpo -c drvmagick++.cpp  -fPIC -DPIC -o .libs/drvmagick++.o
In file included from /usr/include/ImageMagick/magick/MagickCore.h:147,
                 from /usr/include/ImageMagick/Magick++/Include.h:47,
                 from /usr/include/ImageMagick/Magick++/Image.h:11,
                 from /usr/include/ImageMagick/Magick++.h:9,
                 from drvmagick++.h:35,
                 from drvmagick++.cpp:31:
/usr/include/ImageMagick/magick/magick-type.h:124: error: ISO C++ 1998 does not support 'long long'
/usr/include/ImageMagick/magick/magick-type.h:125: error: ISO C++ 1998 does not support 'long long'
In file included from /usr/include/ImageMagick/magick/MagickCore.h:166,
                 from /usr/include/ImageMagick/Magick++/Include.h:47,
                 from /usr/include/ImageMagick/Magick++/Image.h:11,
                 from /usr/include/ImageMagick/Magick++.h:9,
                 from drvmagick++.h:35,
                 from drvmagick++.cpp:31:
/usr/include/ImageMagick/magick/deprecate.h:75: error: ISO C++ 1998 does not support 'long long'
/usr/include/ImageMagick/magick/deprecate.h:76: error: ISO C++ 1998 does not support 'long long'
make[2]: *** [drvmagick++.lo] Error 1
make[2]: Leaving directory `/tmp/buildd/pstoedit-3.45/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/buildd/pstoedit-3.45'
make: *** [build-stamp] Error 2

After editing /usr/include/ImageMagick/magick/deprecate.h and
/usr/include/ImageMagick/magick/magick-type.h to use (u_)int64t instead of
(unsigned) long long, compilation succeeds.

This seems like an issue that should be discussed with ImageMagick upstream. 
-- 
Pinky, Are You Pondering What I'm Pondering?
I think so Brain, but who wants to see Snow White and the Seven Samuri? 
	Pinky and the Brain in "Big in Japan"



More information about the Pkg-gmagick-im-team mailing list