magick/morphology.c in 6.5.9-8

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
hson

magick/morphology.c in 6.5.9-8

Post by hson »

Compile error on Solaris using Sun Studio 11.
The problem is that the prototype for ScaleKernelInfo on line 112 is:
ScaleKernelInfo(KernelInfo *, const double, const MagickStatusType);

But the on 1998 the function definition is:
ScaleKernelInfo(KernelInfo *, const double, const GeometryFlags);


Compile output
libtool: compile: /opt/studio/SOS11/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I./config -I./ltdl -I./ltdl -I/opt/csw/include/freetype2 -I/opt/csw/include -I/opt/csw/X11/include -I/opt/csw/include -I/opt/csw/X11/include -I/opt/csw/include/libxml2 -xO3 -xarch=v8 -D_REENTRANT -c magick/morphology.c -KPIC -DPIC -o magick/.libs/magick_libMagickCore_la-morphology.o
"magick/morphology.c", line 1998: identifier redeclared: ScaleKernelInfo
current : static function(pointer to struct {enum {UserDefinedKernel(15), EuclideanKernel(14), ManhattenKernel(13), ChebyshevKernel(12), PlusKernel(11), DiskKernel(10), DiamondKernel(9), SquareKernel(8), RectangleKernel(7), DOGKernel(6), LOGKernel(5), LaplacianKernel(4), CometKernel(3), BlurKernel(2), GaussianKernel(1), UndefinedKernel(0)} type, unsigned long width, unsigned long height, long x, long y, pointer to double values, double minimum, double maximum, double negative_range, double positive_range, unsigned long signature}, const double, const enum {AllValues(2147483647), DecimalValue(262144), AreaValue(131072), CorrelateNormalizeValue(65536), MinimumValue(65536), GreaterValue(32768), LessValue(16384), NormalizeValue(8192), AspectValue(8192), PercentValue(4096), ChiNegative(128), YNegative(64), PsiNegative(64), XNegative(32), XiNegative(32), ChiValue(16), SigmaValue(8), HeightValue(8), RhoValue(4), WidthValue(4), PsiValue(2), YValue(2), XiValue(1), XValue(1), NoValue(0)}) returning void
previous: function(pointer to struct {enum {UserDefinedKernel(15), EuclideanKernel(14), ManhattenKernel(13), ChebyshevKernel(12), PlusKernel(11), DiskKernel(10), DiamondKernel(9), SquareKernel(8), RectangleKernel(7), DOGKernel(6), LOGKernel(5), LaplacianKernel(4), CometKernel(3), BlurKernel(2), GaussianKernel(1), UndefinedKernel(0)} type, unsigned long width, unsigned long height, long x, long y, pointer to double values, double minimum, double maximum, double negative_range, double positive_range, unsigned long signature}, const double, const unsigned int) returning void : "magick/morphology.c", line 112
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: magick/morphology.c in 6.5.9-8

Post by fmw42 »

I don't think -morphology is rock solid and ready for prime time. Anthony is still working on it and is changing or adding new things each release. But I am sure he will appreciate your report.
hson

Re: magick/morphology.c in 6.5.9-8

Post by hson »

Ready or not, it seems to be added to the build by default, which is why I end up with a compile error which breaks the build (however patching the prototype so that is matches the function definition takes me past that)
Last edited by hson on 2010-02-20T15:09:46-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: magick/morphology.c in 6.5.9-8

Post by magick »

We can reproduce the problem you reported and will have a new release to fix it by sometime tomorrow. Thanks.
Post Reply