[MacPorts] #16072: pstoedit build failure - error in distort.h from ImageMagick 6.4.2-4
MacPorts
noreply at macports.org
Tue Jul 22 22:07:21 PDT 2008
#16072: pstoedit build failure - error in distort.h from ImageMagick 6.4.2-4
-----------------------------------+----------------------------------------
Reporter: tim.lahey at gmail.com | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Keywords: pstoedit, ImageMagick |
-----------------------------------+----------------------------------------
In trying to build `pstoedit`, I ran into an error in the build process. I
get the following error:
{{{
/usr/bin/g++-4.0 -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 -DHAVE_LIBGD=1 -I. -I.
-DHAVE_LIBPLOTTER -DHAVE_MKSTEMP -DHAVE_MAGIC
-I/opt/local/include/ImageMagick -DHAVE_LIBPNG
-DDEFAULTGS=/opt/local/bin/gs
-DPSTOEDITDATADIR=\"/opt/local/share/pstoedit\"
-DPSTOEDITLIBDIR=\"/opt/local/lib/pstoedit\" -DBUGGYGPP -pedantic -Wall
-Wwrite-strings -Wcast-qual -Wpointer-arith -I/opt/local/include -Wno-
long-long -D_LITTLE_ENDIAN -g -MT drvmagick++.lo -MD -MP -MF
.deps/drvmagick++.Tpo -c drvmagick++.cpp -fno-common -DPIC -o
.libs/drvmagick++.o
/opt/local/include/ImageMagick/magick/distort.h:38: error: comma at end of
enumerator list
make[1]: *** [drvmagick++.lo] Error 1
make: *** [all-recursive] Error 1
Warning: the following items did not execute (for pstoedit):
org.macports.activate org.macports.build org.macports.destroot
org.macports.install
Error: Status 1 encountered during processing.
}}}
This is with the latest version of `ImageMagick` installed (6.4.2-4). The
particular offending line is:
{{{
typedef enum
{
UndefinedDistortion,
AffineDistortion,
AffineProjectionDistortion,
ArcDistortion,
BilinearDistortion,
PerspectiveDistortion,
PerspectiveProjectionDistortion,
PolynomialDistortion,
ScaleRotateTranslateDistortion,
ShepardsDistortion,
} DistortImageMethod;
}}}
and removing the final comma after `ShepardsDistortion` allows for a
successful build.
--
Ticket URL: <http://trac.macports.org/ticket/16072>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list