emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to resolve namespace issues between imagemagick and gif librarie


From: joakim
Subject: Re: how to resolve namespace issues between imagemagick and gif libraries?
Date: Sat, 01 Aug 2009 18:57:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> From: address@hidden
>> Date: Fri, 31 Jul 2009 20:02:32 +0200
>> 
>> In file included from /usr/include/ImageMagick/wand/deprecate.h:28,
>>                  from /usr/include/ImageMagick/wand/MagickWand.h:154,
>>                  from image.c:7865:
>> /usr/include/ImageMagick/wand/drawing-wand.h:172: error: conflicting types 
>> for ‘DrawRectangle’
>> /usr/include/gif_lib.h:324: note: previous declaration of ‘DrawRectangle’ 
>> was here
>> make[1]: *** [image.o] Error 1
>> make[1]: Leaving directory `/mnt/data/build/emacsnew/emacs/src'
>> make: *** [src] Error 2
>
> Can you show here the prototype of DrawRectangle from Imagemagick?

DrawRectangle(DrawingWand *,const double,const double,const double,
    const double)
    
> Is that the only conflict?  If not, please show the others as well.
>
>> Any hints how to fix this in a manner acceptable for Emacs code?
>
> Does Emacs use DrawRectangle, from any or both these libraries?  I
> guess at most one is used, or else you'd have problems in the Emacs
> sources as well, not just in the headers.  If we don't need to use
> both, you should be able to rename one of them with #define.

Emacs doesnt use the gif DrawRectangle AFAICS, and I dont plan to use
the one in the imagemagick library either.

> A better solution would be to lobby the maintainers of Imagemagick to
> use names specific to the package.
-- 
Joakim Verona




reply via email to

[Prev in Thread] Current Thread [Next in Thread]