Hi,

Sorry for flooding the list...

I just looked at the source code for 5.2.2 draw.c and it looks like ther
is in fact a type difference.  

start is a parameter in the argument list and is of type 

const PointInfo start

while

p->point is of type PointInfo
(The struct is defined near the top of draw.c)

Try adding a type cast in front of start

p->pixel=p == primitive_info ? (PointInfo) start : (p-1)->pixel;

Tom

On Tue, 29 Aug 2000, Randy Polson wrote:

>
>Hello-
>I know this might now be the correct place to ask the following question, 
>but I also know there are may skilled people reading this list.
>
>My goal is to compile ImageMagick5.2.2 with AIX4.2 and compiler xlc.  In 
>the IM file draw.c the xlc compiler crashes at the following line(line 1439)
>   p->pixel=p == primitive_info ? start : (p-1)->pixel;  
>with the error message:
>"draw.c", line 1439.49: 1506-127 (S) The second and 
>third operands of the condit
>ional operator must have compatible struct or union types.
>make[1]: *** [draw.lo] Error 1  
>
>gcc compiles and builds the libraries and utilities correctly but adds the 
>symbol 
>"__eprintf".  This symbol hangs up the dx configure script when using 
>CC=xlc when checking for GetImageInfo() in the ImageMagick library.   
>
>Any sugestions would be greatly appreciated.
>Thanks,
>Randy
>

Reply via email to